From: microcamers at hotmail dot com
Operating system: Windows XP
PHP version: 5CVS-2004-05-09 (dev)
PHP Bug Type: *General Issues
Bug description: include with parse error kills script
Description:
------------
I just upgraded to the latest snapshot and now find that Parse Errors stop
the excecution of the script with an error.
So now i have the choice between displaying no error as to whats happened
and a blank page coming up, or displaying an ugly php error telling the
user things about my files, because i cannot catch parse errors with php's
error handling functions.
Reproduce code:
---------------
if([EMAIL PROTECTED]("file_with_parse_error.php"){
die("There has been a problem generating this page");
}
Expected result:
----------------
If the file had a parse error or didnt exist, it would die with that
error. Or even better i could have it email me.
Actual result:
--------------
Now it just prints "Parse error: parse error, unexpected ..." even though
i have put the @ symbol before it. It also gets through output buffering.
--
Edit bug report at http://bugs.php.net/?id=28330&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28330&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28330&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28330&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28330&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28330&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28330&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28330&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28330&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28330&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28330&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28330&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28330&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28330&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28330&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28330&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28330&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28330&r=float