Edit report at http://bugs.php.net/bug.php?id=53260&edit=1
ID: 53260
User updated by: offshore at aopdg dot ru
Reported by: offshore at aopdg dot ru
-Summary: Notice message when executing __halt_compiler() more
than once in same file
+Summary: Notice message when running file containing
__halt_compiler() more than once
Status: Open
Type: Bug
Package: Scripting Engine problem
Operating System: Ubuntu
PHP Version: 5.3.3
Block user comment: N
New Comment:
Summary updated
Previous Comments:
------------------------------------------------------------------------
[2010-11-08 02:06:18] offshore at aopdg dot ru
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 this bug report at http://bugs.php.net/bug.php?id=53260&edit=1