Bug #53260 [Opn->Csd]: Notice message when running file containing __halt_compiler() more than once
| From: | felipe@php.net | Date: | Sat, 13 Nov 2010 18:47:53 +0000 |
| Subject: | Bug #53260 [Opn->Csd]: 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-156001@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
+Status: Closed
Type: Bug
Package: Scripting Engine problem
Operating System: Ubuntu
PHP Version: 5.3.3
-Assigned To:
+Assigned To: felipe
Block user comment: N
New Comment:
I've fixed the issue related to __COMPILER_HALT_OFFSET__ is not being
shown in the E_NOTICE message and other issue related on bug #53305
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2010-11-13 19:46:14] felipe@php.net
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=305327
Log: - Fixed bug #53305 (E_NOTICE when defining a constant starts with
__COMPILER_HALT_OFFSET__)
- Fixed a part of bug #53260 (the __COMPILER_HALT_OFFSET__ name is not
shown in the E_NOTICE)
------------------------------------------------------------------------
[2010-11-13 18:34:01] felipe@php.net
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.
------------------------------------------------------------------------
[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