#33637 [NEW]: include fails on parse error

From: Date: Sun, 10 Jul 2005 21:39:29 +0000
Subject: #33637 [NEW]: include fails on parse error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81646@lists.php.net to get a copy of this message
From: michal at cihar dot com Operating system: Linux PHP version: 4.3.10 PHP Bug Type: Scripting Engine problem Bug description: include fails on parse error 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 bug report at http://bugs.php.net/?id=33637&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33637&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33637&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33637&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33637&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33637&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33637&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33637&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33637&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33637&r=support Expected behavior: http://bugs.php.net/fix.php?id=33637&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33637&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33637&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33637&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33637&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33637&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33637&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33637&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33637&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33637&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33637&r=mysqlcfg

« previous php.bugs (#81646) next »