From: r dot j dot day753 at gmail dot com
Operating system: Unknown, Probably Linux
PHP version: 5.2.10
PHP Bug Type: Scripting Engine problem
Bug description: Internal Server 500 when I have a syntax error in my php code
etc
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 bug report at http://bugs.php.net/?id=49552&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=49552&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=49552&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=49552&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=49552&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=49552&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=49552&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=49552&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=49552&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=49552&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=49552&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=49552&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=49552&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=49552&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=49552&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49552&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49552&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=49552&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=49552&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=49552&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=49552&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=49552&r=mysqlcfg