#33637 [Opn->Bgs]: include fails on parse error
| From: | derick@php.net | Date: | Sun, 10 Jul 2005 21:49:08 +0000 |
| Subject: | #33637 [Opn->Bgs]: include fails on parse error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81648@lists.php.net to get a copy of this message | ||
ID: 33637
Updated by: derick@php.net
Reported By: michal at cihar dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.3.10
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
.
Previous Comments:
------------------------------------------------------------------------
[2005-07-10 23:39:28] michal at cihar dot com
Description:
------------
While including file which has a parse error, php stops further
processing. As I understand documentation, this should happen only for
required files. This is also way it worked in previous php versions.
We use such code in phpMyAdmin for including config file, what allows
us to display friendly message when there is some error, however in
latest PHP version user gets just empty page.
Reproduce code:
---------------
file1.php:
<?php
error_reporting(0);
include('./file2.php');
echo 'Test';
?>
file2.php:
<?php
if (
?>
Expected result:
----------------
Test
Actual result:
--------------
empty
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33637&edit=1