Bug #70164 [Ver->Csd]: __COMPILER_HALT_OFFSET__ under namespace is not defined.
| From: | bwoebi@php.net | Date: | Wed, 29 Jul 2015 17:18:37 +0000 |
| Subject: | Bug #70164 [Ver->Csd]: __COMPILER_HALT_OFFSET__ under namespace is not defined. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194821@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70164&edit=1
ID: 70164
Updated by: bwoebi@php.net
Reported by: mai7star at gmail dot com
Summary: __COMPILER_HALT_OFFSET__ under namespace is not
defined.
-Status: Verified
+Status: Closed
Type: Bug
Package: *General Issues
Operating System: *
PHP Version: 7.0.0beta2
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of bobwei9@hotmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d45d5271f7802add887b08595eedc41a4012d9e9
Log: Fix bug #70164 (__COMPILER_HALT_OFFSET__ under namespace is not defined)
Previous Comments:
------------------------------------------------------------------------
[2015-07-29 15:19:30] cmb@php.net
Confirmed: <http://3v4l.org/WoRha>. Same on Windows.
------------------------------------------------------------------------
[2015-07-29 11:24:29] mai7star at gmail dot com
Description:
------------
don't defined __COMPILER_HALT_OFFSET__ under namespace.
PHP 5.6 works fine.
Test script:
---------------
<?php
namespace A;
echo __COMPILER_HALT_OFFSET__;
__halt_compiler();
Expected result:
----------------
70
Actual result:
--------------
PHP Notice: Use of undefined constant __COMPILER_HALT_OFFSET__ - assumed
'__COMPILER_HALT_OFFSET__' in /root/test.php on line 3
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70164&edit=1