|  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
 [2006-03-27 01:32 UTC] fabien dot potencier at gmail dot com
PHP 5.1 introduced a new function __halt_compiler() with a constant __COMPILER_HALT_OFFSET__.


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


Add a Patch

Pull Requests

Add a Pull Request


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

In case this was a 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-2020 The PHP Group
All rights reserved.
Last updated: Fri Jun 05 21:01:23 2020 UTC