php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70164 __COMPILER_HALT_OFFSET__ under namespace is not defined.
Submitted: 2015-07-29 11:24 UTC Modified: 2015-07-29 15:19 UTC
From: mai7star at gmail dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 7.0.0beta2 OS: *
Private report: No CVE-ID: None
 [2015-07-29 11:24 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-07-29 15:19 UTC] cmb@php.net
-Status: Open +Status: Verified -Operating System: linux +Operating System: *
 [2015-07-29 15:19 UTC] cmb@php.net
Confirmed: <http://3v4l.org/WoRha>. Same on Windows.
 [2015-07-29 17:18 UTC] bwoebi@php.net
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)
 [2015-07-29 17:18 UTC] bwoebi@php.net
-Status: Verified +Status: Closed
 [2015-08-04 20:54 UTC] ab@php.net
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)
 [2016-07-20 11:37 UTC] davey@php.net
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)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC