ID: 21569 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Unknown/Other Function Operating System: Windows PHP Version: 4.3.0 New Comment:
no it is not. The default in E_ALL ~E_NOTICE (see php.ini-dist). If you use php.ini-recommended, than the default is E_ALL, but also, the default is display_errors Off. Whichever way you look at it, it is a configuration error envoked by changing something to a non-default. There's really no justification for the errors in your ways :) Previous Comments: ------------------------------------------------------------------------ [2003-01-14 06:50:25] [EMAIL PROTECTED] Since PHP returns a notice when an unset variable is invoked, E_NOTICE should be disabled from error_reporting to make scripts work in given conditions: error_reporting = E_ALL & ~E_NOTICE Note that since PHP v4.2.2 (?) error_reporting = E_ALL is the default ------------------------------------------------------------------------ [2003-01-14 03:49:32] [EMAIL PROTECTED] I've restored the old php.ini from the previous PHP 4.2.1 installation and the script works fine. Not a PHP bug, after all, but a configuration issue. However, since the problem arose I think it deserved to be discussed and solved, even as a "bogus" bug. ------------------------------------------------------------------------ [2003-01-14 03:31:15] [EMAIL PROTECTED] error log: [Tue Jan 14 10:25:13 2003] [error] [client 127.0.0.1] PHP Notice: Undefined variable: test in C:\Data\htdocs\cbtest\index.php on line 4 [Tue Jan 14 10:25:13 2003] [error] [client 127.0.0.1] PHP Warning: Cannot modify header information - headers already sent in C:\Data\htdocs\cbtest\index.php on line 4 [Tue Jan 14 10:25:13 2003] [error] [client 127.0.0.1] PHP Warning: Cannot modify header information - headers already sent in C:\Data\htdocs\cbtest\index.php on line 5 ------------------------------------------------------------------------ [2003-01-14 03:29:43] [EMAIL PROTECTED] I'm very sorry. I've checked the Windows 98 configuration and it turned out to have PHP 4.2.1 installed. When I've upgraded to PHP 4.3.0 the problem occurred. May be it started from v4.2.2 More info to come. ------------------------------------------------------------------------ [2003-01-14 02:53:40] [EMAIL PROTECTED] [EMAIL PROTECTED]: I'm not the only one who experienced this problem. Actually I've started to investigate when two different persons told me they couldn't keep users logged in that web engine. It has been reproduced on Windows 2000 with Apache 1.3.27, 2.0.35, 2.0.43 and PHP 4.2.2, 4.2.3, 4.3.0 However I'll provide more detailed information about ini files and possible error logs. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/21569 -- Edit this bug report at http://bugs.php.net/?id=21569&edit=1