ID:               27136
 Updated by:       [EMAIL PROTECTED]
 Reported By:      rickard at punbb dot org
-Status:           Open
+Status:           Closed
 Bug Type:         Zend Engine 2 problem
 Operating System: Linux 2.4
 PHP Version:      5CVS-2004-02-03 (dev)
 New Comment:

Already fixed..



Previous Comments:
------------------------------------------------------------------------

[2004-02-03 19:10:16] rickard at punbb dot org

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 this bug report at http://bugs.php.net/?id=27136&edit=1

Reply via email to