ID: 31419 User updated by: mfoxx at hotmail dot com Reported By: mfoxx at hotmail dot com -Status: Closed +Status: Open Bug Type: PHP options/info functions -Operating System: Debian 3.x +Operating System: Debian 3.0 -PHP Version: 5.0.3 +PHP Version: 5.0.4 New Comment:
I just upgraded to the latest Apache 2.0.54, and PHP 5.0.4, and again, I am still having the same problem. I go into my php.ini file, and I comment out the setting for the php error_log. I then create a script like this: <?php ini_set("error_log","/path/to/logs/php-err.txt"); phpinfo(); nonexistent(); ?> When I examine the output of phpinfo(), i see the value set in the ini_set() call. However, the error that occurs when I call the nonexistent() function does NOT get logged to that file (nor does the file even get created). It however does get logged to the virtual-host specific apache error log (error.log) that is set to be in the same directory. I even tried creating an empty file (thinking maybe it was the creation of the file that wasn't working) in the logs directory, and then restarting apache. Reran the script, and still, the error gets logged to the apache log for that virtual-host, not to the value set by ini_set(). Previous Comments: ------------------------------------------------------------------------ [2005-04-08 21:25:08] [EMAIL PROTECTED] works fine for me with latest CVS. ------------------------------------------------------------------------ [2005-04-06 23:27:02] mfoxx at hotmail dot com I do not have 4.3.10 or 4.3.11 on a server, so I can't answer that question. My question pertains to v5. Has this issue been corrected in 5.0.4? I didn't see this bug listed in the changelog. ------------------------------------------------------------------------ [2005-03-14 01:00:31] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2005-03-06 18:06:24] [EMAIL PROTECTED] Does this happen with PHP 4.3.10 ? ------------------------------------------------------------------------ [2005-02-28 23:24:39] mfoxx at hotmail dot com I just installed the new CVS snapshot of this, and I am now seeing a different behavior, but still not the correct one. Now, no matter whether I specify an error_log in php.ini or not, ALL php errors are going to the each virtual-host specific apache error log. I can't override it with a valid error_log setting in php.ini, nor can I override it in code, as my original bug report submitted that I had tried. ------------------------------------------------------------------------ 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/31419 -- Edit this bug report at http://bugs.php.net/?id=31419&edit=1