#40367 [Opn->Bgs]: __COMPILER_HALT_OFFSET__ 2 bytes off in some cases

From: Date: Mon, 05 Feb 2007 21:13:36 +0000
Subject: #40367 [Opn->Bgs]: __COMPILER_HALT_OFFSET__ 2 bytes off in some cases
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108450@lists.php.net to get a copy of this message
ID: 40367 Updated by: cellog@php.net Reported By: cellog@php.net -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Linux (Ubuntu 6.10 64-bit) PHP Version: 5CVS-2007-02-05 (CVS) New Comment: this is bogus, due to two mistakes: 1) I misread the output of the script when running from shell with php.ini disabled 2) The actual bug is in Zend Debugger Previous Comments: ------------------------------------------------------------------------ [2007-02-05 20:48:33] cellog@php.net Description: ------------ These test script outputs 94 when there is no content after __HALT_COMPILER(); (which is accurate) and 96 when there is (remove "hi" to see the difference). This is true with PHP 5.1-PHP 5.2 current CVS Reproduce code: --------------- <?php $f = filesize(__FILE__); echo $f."\n"; echo __COMPILER_HALT_OFFSET__; __HALT_COMPILER();hi Expected result: ---------------- 94 Actual result: -------------- 96 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40367&edit=1

« previous php.bugs (#108450) next »