|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-05-31 09:47 UTC] giluxxx at hotmail dot com
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??
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 01 23:00:01 2026 UTC |
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