php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17542 error reporting is dead
Submitted: 2002-05-31 09:47 UTC Modified: 2002-06-01 18:44 UTC
From: giluxxx at hotmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.2.1 OS: redhat 6.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: giluxxx at hotmail dot com
New email:
PHP Version: OS:

 

 [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??

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-01 09:26 UTC] sniper@php.net
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-06-01 11:28 UTC] giluxxx at hotmail dot com
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.
 [2002-06-01 18:44 UTC] sniper@php.net
bogus it is then..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 26 21:01:30 2024 UTC