From: Operating system: Ubuntu PHP version: 5.3.3 Package: Scripting Engine problem Bug Type: Bug Bug description:Notice message when executing __halt_compiler() more than once in same file
Description: ------------ This is not the same with http://bugs.php.net/bug.php?id=39903 ! (Reported about fix, but problem is still here) When running file containing __halt_compiler() second (third, etc) time, PHP displays a message saying: PHP Notice: Constant already defined in .../b.php (see code) Also notice that constant name is not shown. Test script: --------------- a.php: <?php echo __FILE__ . "\n"; include('./b.php'); include('./b.php'); b.php: <?php echo __FILE__ . "\n"; __halt_compiler(); data data data Expected result: ---------------- /.../a.php /.../b.php /.../b.php Actual result: -------------- /.../a.php /.../b.php PHP Notice: Constant already defined in /.../b.php on line 3 /.../b.php -- Edit bug report at http://bugs.php.net/bug.php?id=53260&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53260&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53260&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53260&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53260&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53260&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53260&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53260&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53260&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53260&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53260&r=support Expected behavior: http://bugs.php.net/fix.php?id=53260&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53260&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53260&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53260&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53260&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53260&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53260&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53260&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53260&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53260&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53260&r=mysqlcfg
