From:             [EMAIL PROTECTED]
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

Reply via email to