Re: Re: cvs: php4 / run-tests.php

From: Date: Mon, 28 Oct 2002 06:57:06 +0000
Subject: Re: Re: cvs: php4 / run-tests.php
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-90173@lists.php.net to get a copy of this message
On Mon, 28 Oct 2002, Melvyn Sopacua wrote: > At 01:27 28-10-2002, Ilia A. wrote: > > >I am curios as to your reasoning behind turning on html_errors by default, > >why > >would the tests need HTML data? > >Logging of errors occurred during the tests seems pointless to me. As I've > >mentioned before if a test needs to check if a certain type of error is > >generated the track_errors & $php_errormsg facility can be used to capture > >this error reliably. Logging of errors is unreliable since the actual error > >message can go anywhere, stderr,syslog, user specified file, etc... It is > >highly likely that you may not even see the error message because it is not > >sent to stderr. Data sent to the error log is also 'variable', because it > >contains fluid data which different from system to system due to file paths, > >so we must do all kinds of hackery if we are to use it when confirming the > >output of a test. > >I for one, would like to see that setting go away. > > +1. > Try this: > /install/target/php.ini: log_errors=On, error_log=/var/log/www/php_errors > > /var/log/www/php_errors: owner=nobody, group=nobody, mode=644 > > Think about how many tests that will break. Indeed, log_errors=1 should IMO not be used. Derick -- --------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --------------[ if you hold a unix shell to your ear, do you hear the c? ]-

« previous php.dev (#90173) next »