#43358 [Com]: 500 HTTP response even on not blank pages

From: Date: Wed, 21 Nov 2007 10:23:42 +0000
Subject: #43358 [Com]: 500 HTTP response even on not blank pages
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-119918@lists.php.net to get a copy of this message
 ID:               43358
 Comment by:       andrea at spacca dot org
 Reported By:      andrea dot spacca at gmail dot com
 Status:           Open
 Bug Type:         *General Issues
 Operating System: Gentoo
 PHP Version:      5.2.5
 New Comment:

from our httpd.conf:
LoadModule php5_module etc etc
AddType application/x-httpd-php .php .cgi


Previous Comments:
------------------------------------------------------------------------

[2007-11-21 10:13:12] andrea dot spacca at gmail dot com

Description:
------------
When E_NOTICE or E_WARNING happen in eval'd code the script return 500
HTTP respons even on not blank pages

PS: third time i have to open the bug, 'cause jani@php.net continue to
close it as bogus without wait my reply to his comments. i'll put, as
soon as possibile, a script online on our server so you could test the
behaviour on the enviroment where we reproduce the bug

Reproduce code:
---------------
<?php
    eval('$pluto = "test ".UNDEFINED_CONST." test";');

    echo 'AFTER';
?>


Expected result:
----------------
Apache Access Log:
192.168.1.1 - - [20/Nov/2007:16:09:23 +0100] "GET /testBug.cgi
HTTP/1.1"
200 25

Actual result:
--------------
Apache Access Log:
192.168.1.1 - - [20/Nov/2007:16:09:23 +0100] "GET /testBug.cgi
HTTP/1.1"
500 25


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43358&edit=1


Thread (9 messages)

« previous php.bugs (#119918) next »