php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40367 __COMPILER_HALT_OFFSET__ 2 bytes off in some cases
Submitted: 2007-02-05 20:48 UTC Modified: 2007-02-05 21:13 UTC
From: cellog@php.net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5CVS-2007-02-05 (CVS) OS: Linux (Ubuntu 6.10 64-bit)
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cellog@php.net
New email:
PHP Version: OS:

 

 [2007-02-05 20:48 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-05 21:13 UTC] cellog@php.net
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
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 05:01:37 2025 UTC