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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Mon Sep 22 08:00:02 2025 UTC