php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32299 The errors aren't shown at all
Submitted: 2005-03-14 12:42 UTC Modified: 2005-03-23 15:01 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: poison at telenet dot be Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.3.10 OS: Linux
Private report: No CVE-ID: None
 [2005-03-14 12:42 UTC] poison at telenet dot be
Description:
------------
When I run a script as <?php error (); ?> I don't see anything. Error outputting doesn't work at all.
Although everything in my php.ini is set as appropriate and I recompiled the whole php with new downloaded tarballs and with ./configure --with-apxs2=/usr/local/apache2/bin/apxs --disable-all
I replaced my php.ini by the php.ini-dist and still got the problem.

The strange thing is that it works in the CLI but not with apache


Output from browser:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
<BODY></BODY></HTML>

Output from CLI:
toolserver@control:~/ToolServer$ php -f error.php

Fatal error: Call to undefined function:  error() in /home/toolserver/ToolServer/error.php on line 3


Reproduce code:
---------------
./configure --with-apxs2=/usr/local/apache2/bin/apxs --disable-all
make
make install
cp php.ini-dist /usr/local/lib/php.ini
/usr/local/apache2/bin/apachectl restart

Expected result:
----------------
Fatal error: Call to undefined function:  error() in /home/toolserver/ToolServer/error.php on line 3


Actual result:
--------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
<BODY></BODY></HTML>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-14 21:17 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Even if you think it is not a bug, we often know better than you,
please consult the support channels first before even considering
to reopen this report.

Thank you for your interest in PHP.


 [2005-03-15 10:44 UTC] poison at telenet dot be
I asked for support in the #PHP channel on FreeNode and they suggested to submit a bug. We've tried everything and I get no error messages.
 [2005-03-15 11:08 UTC] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


Works fine here...
 [2005-03-21 17:43 UTC] poison at telenet dot be
What other info should I provide?

I've recompiled apache and php and I still get no errors :s
What should I do?
 [2005-03-21 22:33 UTC] sniper@php.net
Stop bugging us about it, it's not any bug as we can't reproduce it. Just something you're doing wrong.

 [2005-03-22 10:50 UTC] poison at telenet dot be
It's not that I'm a newbie, there's just nobody who can help me.
I've 4 identical systems and it's just on one machine that I get no error messages. I've tried almost everything and on the support channels they've told me that it might be a bug. A few people checked my configuration and there's nothing wrong with it...

I understand that you guys have a lot of work to do but I think seriously that this might a rare condition that some bug comes out.
 [2005-03-22 18:29 UTC] sniper@php.net
As long as we (or anybody else than you) can reproduce it 
-> not bug but configuration/compiler issue on that single system.

 [2005-03-23 14:47 UTC] poison at telenet dot be
I think I found something:

I have in my .htaccess file the following:
php_value error_reporting E_ALL

If I comment this line and set in in my php.ini it works fine but if I set in my php.ini error_reporting = E_ALL & ~E_NOTICE and I want to override it in my .htaccess file with error_reporting E_ALL than I get no errors at all.
 [2005-03-23 15:01 UTC] tony2001@php.net
Obviously you need to write there numerical value of E_ALL instead of the name of PHP constant, because Apache knows nothing about PHP constants.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 15:01:33 2024 UTC