php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43349 500 HTTP respons even on not blank pages
Submitted: 2007-11-20 15:14 UTC Modified: 2007-11-20 16:38 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: andrea dot spacca at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.5 OS: Gentoo (probably all)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andrea dot spacca at gmail dot com
New email:
PHP Version: OS:

 

 [2007-11-20 15:14 UTC] 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

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-20 16:38 UTC] jani@php.net
There's a parse error in your code, of course this happens.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 05:01:34 2025 UTC