Bug #70164 [Opn->Ver]: __COMPILER_HALT_OFFSET__ under namespace is not defined.

From: Date: Wed, 29 Jul 2015 15:19:31 +0000
Subject: Bug #70164 [Opn->Ver]: __COMPILER_HALT_OFFSET__ under namespace is not defined.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194819@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: cmb@php.net Reported by: mai7star at gmail dot com Summary: __COMPILER_HALT_OFFSET__ under namespace is not defined. -Status: Open +Status: Verified Type: Bug Package: *General Issues -Operating System: linux +Operating System: * PHP Version: 7.0.0beta2 Block user comment: N Private report: N New Comment: Confirmed: <http://3v4l.org/WoRha>. Same on Windows. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#194819) next »