ID: 17542 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Open Bug Type: Unknown/Other Function Operating System: redhat 6.2 PHP Version: 4.2.1 New Comment:
ahhhh, i see. sorry about that, it was actually the first time i used the recommended version. didn't know about that diplay_errors directive. i figured 'error_reporting(E_ALL);' would simply display any error encountered. this explains it. my apologies. Previous Comments: ------------------------------------------------------------------------ [2002-06-01 09:26:03] [EMAIL PROTECTED] Try this one: <?php error_reporting(E_ALL); ?> thank you <?php echo $test; error_log ("You messed up!", 3, "/tmp/my-errors.log"); ?> Parse errors don't get in that log file since the script is never run as it can't be compiled at all.. Also, in php.ini you most likely have 'display_errors=off' if you really are using the php.ini-recommended. And to get all the erorrs in some file, you need to edit the php.ini file a bit.. --Jani ------------------------------------------------------------------------ [2002-05-31 09:47:49] [EMAIL PROTECTED] just upgraded php-4.0.6 to 4.2.1 on my linux box with apache 1.3.24 i also used the 4.2.1 ini-recommended. config: './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-imap' '--with-mysql' '--enable-track-vars' '--with-openssl=/usr/local/ssl' '--enable-sockets' '--with-xml' '--with-zlib' '--with-java=/usr/local/j2sdk1.4.0' problem is that whenever an error occures nothing happens, no warnings, no errors. the browser actually doesnt receive any data at all. code example: ------------------------------ <? error_reporting(E_ALL); ?> thank you <? errrrrrrrroooorrrrrrr error_log ("You messed up!", 3, "/var/tmp/my-errors.log"); ?> you're welcome --------------------------- this code also logs nothing to file, error_reporting(E_ALL) doesnt matter either. i also have exactly the same problem on my local win2000 box running php4.3.0-dev from some time ago with apache 1.3.24, it just sends nothing to the browser or to the my errors file. so, if the code is correct, php seems to be running fine but if there are errors in the code nothing happens. ..... i just ran a test on another win2000 box with IIS 5 and php-4.2.1 CGI version and that seems to work like it is suppost to: Parse error: parse error, unexpected T_STRING in C:\Inetpub\www.xxxxx.com\wwwroot\untitled.php on line 11 (pffff, the first time i was glad to see an error) has this maybe something to do with apache 1.3.24?? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17542&edit=1