From: rickard at punbb dot org Operating system: Linux 2.4 PHP version: 5CVS-2004-02-03 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: Including a missing file leads to parse error
Description: ------------ When including a non-existant file with include(), PHP halts execution claiming there is a parse error in the included file. "Fatal error: Parse error inside included file. in /path/to/file.php on line 3" This makes it impossible to "attempt" inclusion of a file without halting the script if it can't be found. The behaviour only applies to include() and not include_once(), require() or require_once(). Maybe this is related to #26814. Reproduce code: --------------- <?php @include 'missing-file.php'; echo 'Test'; ?> Expected result: ---------------- The script should output "Test". Actual result: -------------- There is no output (a blank page). -- Edit bug report at http://bugs.php.net/?id=27136&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27136&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27136&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27136&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27136&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27136&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27136&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27136&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27136&r=support Expected behavior: http://bugs.php.net/fix.php?id=27136&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27136&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27136&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27136&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27136&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27136&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27136&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27136&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27136&r=float
