#40367 [NEW]: __COMPILER_HALT_OFFSET__ 2 bytes off in some cases
| From: | cellog@php.net | Date: | Mon, 05 Feb 2007 20:48:33 +0000 |
| Subject: | #40367 [NEW]: __COMPILER_HALT_OFFSET__ 2 bytes off in some cases | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-108449@lists.php.net to get a copy of this message | ||
From: cellog@php.net
Operating system: Linux (Ubuntu 6.10 64-bit)
PHP version: 5CVS-2007-02-05 (CVS)
PHP Bug Type: Scripting Engine problem
Bug description: __COMPILER_HALT_OFFSET__ 2 bytes off in some cases
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 bug report at http://bugs.php.net/?id=40367&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40367&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40367&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40367&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40367&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40367&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40367&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40367&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40367&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40367&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40367&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40367&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40367&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40367&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40367&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40367&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40367&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40367&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40367&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40367&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40367&r=mysqlcfg