Edit report at http://bugs.php.net/bug.php?id=53260&edit=1

 ID:                 53260
 Updated by:         [email protected]
 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] [email protected]

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] [email protected]

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

Reply via email to