ID: 28349
Comment by: gsiebrecht at win-4-u dot com
Reported By: jonathan at nationaldirect dot net
Status: Feedback
Bug Type: Output Control
Operating System: Win2k
PHP Version: 4.3.6
New Comment:
I had the same problem i changed display_errors = 0 and it worked with
php 5, then i changed it back to display_errors = Off and that worked
also, strange. maybe it was missing some kind of carriage return at the
end of the line or something.
Previous Comments:
------------------------------------------------------------------------
[2004-05-28 15:59:31] iliaa@php.net
Do you have error logging enabled, if so can the log file
be written to?
------------------------------------------------------------------------
[2004-05-13 20:31:12] jonathan at nationaldirect dot net
Yes, it is using the correct php.ini file. I even did a search of the
entire hard-drive to see if there was another php.ini file but there
was not. I have since setup a second computer with just win2k, iis5
and php 4.3.6 to test this and it is happening there too.
------------------------------------------------------------------------
[2004-05-13 19:20:32] edink@php.net
Is phpinfo() showing thar the correct php.ini being used?
------------------------------------------------------------------------
[2004-05-10 16:56:40] jonathan at nationaldirect dot net
Description:
------------
Since upgrading to 4.3.6 in PHP.ini the display_errors = off is
ignored. I also have set error_reporting = E_ALL and log_errors = On
so that any errors or notices will be sent to a file instead of being
displayed on-screen and messing up the webpage. If I set
error_reporting = ~E_ALL then I do not get any error mesages displayed
or in the error log file. I have reverted back to 4.3.2 with the same
php.ini file and it fixes the issue. I am using Win2k and IIS5 with
PHP 4.3.6. When I use phpinfo() to view how it is running is shows
display_errors = off.
Reproduce code:
---------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
The date refunded is: <?php echo $row_orderinfo['date_refunded']; ?>
</body>
</html>
Expected result:
----------------
The date refunded is:
Actual result:
--------------
The date refunded is: PHP Notice: Undefined variable: row_orderinfo in
C:\www\trial\test_2.php on line 9
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28349&edit=1