error_log issue in php.ini

php.internals

Walt Boring

23 years ago
Howdy, I have found something that I find a bug in php. If I have log_errors = on in the php.ini and don't set the error_log entry, I can never set it in a php script. I have the error_log commented out in the php.ini, because I have it set in my httpd.conf file for all of my virtual hosts. But when I run php from the command line, I want to set the error_log to a file, and ini_set() always returns false, simply because error_log is commented out in the php.ini. I should be able to set this at runtime. Walt

(Michael Mauch)

23 years ago
Walt Boring <waboring@3gstech.com> wrote:
> I have found something that I find a bug in php. If I have log_errors > = on in the php.ini and don't set the error_log entry, I can never set > it in a php script. > I have the error_log commented out in the php.ini, because I have it > set in my httpd.conf file for all of my virtual hosts. But when I run > php from the command line, I want to set the error_log to a file, and > ini_set() always returns false, simply because error_log is commented > out in the php.ini. I should be able to set this at runtime.
You can use a separate php-cli.ini for your command line php. Regards... Michael

Marshall A. Greenblatt

23 years ago
[Please CC me if you are responding from the phpdoc list, as I am not currently subscribed] Hi guys, ----- Original Message ----- From: "Michael Mauch" <michael.mauch@gmx.de> To: <internals@lists.php.net> Sent: Tuesday, April 29, 2003 5:31 PM Subject: [PHP-DEV] Re: error_log issue in php.ini <snip>
> > You can use a separate php-cli.ini for your command line php. >
What are the semantics for the automatic loading of `php-cli.ini' and `php-cgi.ini' files? For instance, will only `php-cli.ini' be loaded by a command-line instance of PHP, similar to using the `-c' command-line switch, or will `php.ini' be loaded and then modified by the `php-cli.ini' settings? The scanty details that I've been able to locate, and the application of a liberal dose of common sense, seem to indicate the former. Also, any chance that we could see a mention of the additional PHP ini files on the "configuration" manual page? I've cc'd the phpdoc list for that purpose, maybe unnecessarily, as it was mentioned briefly in bug report #21783 filed back in January :-). Other than a short user comment on the "features.commandline" page, however, it doesn't seem to be mentioned anywhere "official" (i.e., generally accessible to the average PHP user).
> Regards... > Michael >
Thanks, Marshall

Preston L. Bannister

23 years ago
Have some time to track down a persistent PHP crash I'm seeing on Win32, so grabbed the current sources from CVS. I'm assuming the current PHP 4.3.x Win32 version is built off a checkout of the "php4" module, the "PHP_4_3" tag, and from the workspace "php4/win32/php4ts.dsw". Is this correct?
-- Preston L. Bannister pbannister on Yahoo Messenger http://members.cox.net/preston.bannister

Edin Kadribasic

23 years ago
On Friday, May 2, 2003, at 11:35 Europe/Copenhagen, Preston L. Bannister wrote:
> Have some time to track down a persistent PHP crash I'm seeing on > Win32, so > grabbed the current sources from CVS. > > I'm assuming the current PHP 4.3.x Win32 version is built off a > checkout of > the "php4" module, the "PHP_4_3" tag, and from the workspace > "php4/win32/php4ts.dsw". Is this correct?
All of you assumptions are correct :) Edin