#49552 [Bgs]: Internal Server 500 when I have a syntax error in my php code etc
| From: | jani@php.net | Date: | Mon, 14 Sep 2009 13:45:22 +0000 |
| Subject: | #49552 [Bgs]: Internal Server 500 when I have a syntax error in my php code etc | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-142351@lists.php.net to get a copy of this message | ||
ID: 49552
Updated by: jani@php.net
Reported By: r dot j dot day753 at gmail dot com
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 5.2.10
New Comment:
This is misconfiguration. Try replace the php.ini you have with
php.ini-dist from the release package.
Previous Comments:
------------------------------------------------------------------------
[2009-09-14 11:52:24] r dot j dot day753 at gmail dot com
OS Changed to Linux
------------------------------------------------------------------------
[2009-09-14 09:48:13] jani@php.net
Please don't report bugs hwhen you don't even know the OS..
------------------------------------------------------------------------
[2009-09-14 09:42:53] r dot j dot day753 at gmail dot com
"due" my bad :)
------------------------------------------------------------------------
[2009-09-14 09:42:07] r dot j dot day753 at gmail dot com
Description:
------------
I was developing my php code under version 4.3.x, bue to problems with
JSON I switch to php 5.2.10 on my webhost site.
Everything works fine, but if I have a syntax error in my code all I am
getting is an internal server error 500.
I have searched various articals and tried disabling output buffering
using ini_set('output_buffering','0'); But this doesnt seem to fix the
problem, I have also enabled error reporting.
Any clues?
Reproduce code:
---------------
Sample code that will produce the error
<?php
// Just forget the semi-colon and I get the internal server error 500
echo "Hello"
?>
Expected result:
----------------
Internal server error 500 thrown from a web browser
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49552&edit=1