php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49552 Internal Server 500 when I have a syntax error in my php code etc
Submitted: 2009-09-14 09:42 UTC Modified: 2009-09-14 13:45 UTC
From: r dot j dot day753 at gmail dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.10 OS: Linux
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: r dot j dot day753 at gmail dot com
New email:
PHP Version: OS:

 

 [2009-09-14 09:42 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-14 09:42 UTC] r dot j dot day753 at gmail dot com
"due" my bad :)
 [2009-09-14 09:48 UTC] jani@php.net
Please don't report bugs hwhen you don't even know the OS..
 [2009-09-14 11:52 UTC] r dot j dot day753 at gmail dot com
OS Changed to Linux
 [2009-09-14 13:45 UTC] jani@php.net
This is misconfiguration. Try replace the php.ini you have with php.ini-dist from the release package.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 09:01:33 2025 UTC