php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43350 500 HTTP response even on not blank pages (totally bogus)
Submitted: 2007-11-20 18:08 UTC Modified: 2007-11-21 10:04 UTC
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
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: andrea dot spacca at gmail dot com
New email:
PHP Version: OS:

 

 [2007-11-20 18:08 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


PS: i'm sorry i have to report this bug twice, but jani@php.net decided to change the status to bogus with too much hurry

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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-21 04:53 UTC] carsten_sttgt at gmx dot de
Hello,

I can't reproduce this behaviour on Windwows/FreeBSD with a "normal" PHP script (testBug.php).

BTW:
How have you setup your Apache to recognize "*.cgi" as a PHP-Script? Because a normal *.cgi script should have a shebang.
 [2007-11-21 07:05 UTC] jani@php.net
What in "your script has parse error" you didn't understand?
 [2007-11-21 10:04 UTC] jani@php.net
And when there is no parse error, there's no 500 error either. 

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 08:01:32 2024 UTC