From:             ion at in-dev dot de
Operating system: Linux/Windows
PHP version:      5.0.3
PHP Bug Type:     Scripting Engine problem
Bug description:  error_reporting turned off in php.ini and on by ini_set give 
no error output

Description:
------------
Ok starting,
hope you can understand my bad english :)

Take a script like:
<?php
echo "bogus line;
?>

With enabled error_reporting and display_errors by php.ini PHP gives a
parse error. Turn those two configuration vars off gives you no output. So
far so good...
Change the script to:

<?php
ini_set('display_errors',1);
ini_set('error_reporting',E_ALL);

echo "bogus line;
?>

Now PHP should give a parse error, too. Right?!
But PHP give no output. Only with the command line cgi version and the
parameter -l it tells about a parsing error.
I have reproduce this on Linux and Windows with PHP 5.0.3 .

Regards Kai


Reproduce code:
---------------
<?php
// turn error_reporting and display_errors off in php.ini
// php should give a error reporting to, enabled by the
// following lines
ini_set('display_errors',1);
ini_set('error_reporting',E_ALL);

echo "bogus line;
?>

Expected result:
----------------
Parse error: parse error, unexpected $ in /root/phptest/bogus.php on line
9


Actual result:
--------------
no output

-- 
Edit bug report at http://bugs.php.net/?id=32707&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32707&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32707&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32707&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32707&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32707&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32707&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32707&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32707&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32707&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32707&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32707&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32707&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32707&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32707&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32707&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32707&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32707&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32707&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32707&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32707&r=mysqlcfg

Reply via email to