Hi
Here is my code snippet:
<?php
error_reporting (E_ERROR | E_PARSE);
?>
<html>
<body>
<form action = "<?php$_SER VER['php_self']?>" method = "GET" >
<?php
echo "adasd";
?>
</form>
</body>
</html>
if you see form action of the above lines, semicolon wont be there and
also the word 'echo'. If i execute this, it supposed to throw an
parser error and script should get terminated at that point.
It is happening in my production/staging environment but it not the
case in development server.
So I compared the error_reporting , display_html_er rors, etc values of
both the environments and it is same interms of error level mechanism.
Is there any constants in php.ini which tells php interpreter not able
to produce parse error in my development server?
Thx in advance
Here is my code snippet:
<?php
error_reporting (E_ERROR | E_PARSE);
?>
<html>
<body>
<form action = "<?php$_SER VER['php_self']?>" method = "GET" >
<?php
echo "adasd";
?>
</form>
</body>
</html>
if you see form action of the above lines, semicolon wont be there and
also the word 'echo'. If i execute this, it supposed to throw an
parser error and script should get terminated at that point.
It is happening in my production/staging environment but it not the
case in development server.
So I compared the error_reporting , display_html_er rors, etc values of
both the environments and it is same interms of error level mechanism.
Is there any constants in php.ini which tells php interpreter not able
to produce parse error in my development server?
Thx in advance
Comment