Bug #53260 [Opn]: Notice message when running file containing __halt_compiler() more than once
| From: | felipe@php.net | Date: | Sat, 13 Nov 2010 17:34:04 +0000 |
| Subject: | Bug #53260 [Opn]: Notice message when running file containing __halt_compiler() more than once | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-155997@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53260&edit=1
ID: 53260
Updated by: felipe@php.net
Reported by: offshore at aopdg dot ru
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:
The notice is expected, whereas you are including a same file.
But about the constant name not being displayed in the message, this
will be fixed and other issue I've discovered.
Previous Comments:
------------------------------------------------------------------------
[2010-11-08 02:10:20] offshore at aopdg dot ru
Summary updated
------------------------------------------------------------------------
[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