php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56917 __halt_compiler support
Submitted: 2006-03-27 01:32 UTC Modified: 2006-10-16 17:10 UTC
From: fabien dot potencier at gmail dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.1.1 OS: irrelevant
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: fabien dot potencier at gmail dot com
New email:
PHP Version: OS:

 

 [2006-03-27 01:32 UTC] fabien dot potencier at gmail dot com
Description:
------------
PHP 5.1 introduced a new function __halt_compiler() with a constant __COMPILER_HALT_OFFSET__.

(http://fr.php.net/manual/en/function.halt-compiler.php).

This constant is not recognized by APC version 3.0.10.


Reproduce code:
---------------
<?php echo file_get_contents(__FILE__, NULL, NULL,  __COMPILER_HALT_OFFSET__) ?>
<?php __HALT_COMPILER();
Hello World!


Expected result:
----------------
Hello World!

Actual result:
--------------
Notice: Use of undefined constant __COMPILER_HALT_OFFSET__ - assumed '__COMPILER_HALT_OFFSET__' in /.../hello_world.php on line 1

Warning: file_get_contents() expects parameter 4 to be long, string given in /.../hello_world.php on line 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-16 17:10 UTC] ilia at prohost dot org
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 13:01:33 2025 UTC