[PHP-DEV] Re: Bug #10682 Updated: php -l display the same errors From: Yasuo Ohgaki (yohgaki <email protected>)
Date: 05/06/01

If I disable one of display_errors and log_errors in php.ini, then it prints 2
errors.
If I disable both them in php.ini, it does not display any errors.
I thought there might be a problem. I guess this is the way it is.

php -d display_errors=off -d log_errors=off [-l | -f]
works *perfectly* while they are set "On" in php.ini.

Thanks for letting me know.

--
Yasuo Ohgaki

----- Original Message ----- From: "Bug Database" <php-dev <email protected>> To: <yohgaki <email protected>> Sent: Sunday, May 06, 2001 9:22 AM Subject: Bug #10682 Updated: php -l display the same errors

> ID: 10682 > Updated by: zeev > Reported By: yohgaki <email protected> > Old-Status: Open > Status: Closed > Bug Type: Scripting Engine problem > PHP Version: 4.0 Latest CVS (05/05/2001) > Assigned To: > Comments: > > As funny as it may sound, it's the intended behavior, if: > - You have a debug build (an error goes to stderr) > - You have display_errors set to on (an error goes to the standard output, HTML format) > - You have error logging enabled (default goes to stderr) > > > Previous Comments: > --------------------------------------------------------------------------- > > [2001-05-05 19:44:01] yohgaki <email protected> > If I execute CGI php binary with "-l" option, I see the same error message 3 times in different formats. > > =================== > PHP Parse error: parse error, expecting `T_VARIABLE' or `'$'' in php_lint.php on line 5 > <br> > <b>Parse error</b>: parse error, expecting `T_VARIABLE' or `'$'' in <b>php_lint.php</b> on line <b>5</b><br> > php_lint.php(5) : Parse error - parse error, expecting `T_VARIABLE' or `'$'' > [www <email protected> language]$ php -ql php_lint.php > PHP Parse error: parse error, expecting `T_VARIABLE' or `'$'' in php_lint.php on line 5 > <br> > <b>Parse error</b>: parse error, expecting `T_VARIABLE' or `'$'' in <b>php_lint.php</b> on line <b>5</b><br> > php_lint.php(5) : Parse error - parse error, expecting `T_VARIABLE' or `'$'' > ===================== > > ./configure > --disable-short-tags > --disable-mysql > --without-pear > --without-mysql > --enable-debug > --enable-bcmath > --enable-ftp > --enable-shmop > --enable-sysvsem > --enable-sysvshm > --enable-sockets > --enable-mbstring > --enable-mbstr-enc-trans > --enable-debug > --enable-memory-limit > --with-regex=system > --with-openssl > --with-iconv > --with-imap > --with-mhash > --with-mcrypt > --with-pgsql > --with-swf > --with-zlib > --with-bz2 > --with-gd > --with-jpeg-dir=/usr > --with-xpm-dir=/usr/X11R6 > > > > --------------------------------------------------------------------------- > > > > ATTENTION! Do NOT reply to this email! > To reply, use the web interface found at http://bugs.php.net/?id=10682&edit=2 > >

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>