php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57667 bcompiled script make failed apache
Submitted: 2007-05-13 21:32 UTC Modified: 2009-11-23 12:45 UTC
From: acrozes at hotmail dot com Assigned:
Status: Suspended Package: bcompiler (PECL)
PHP Version: 5.2.1 OS: WIN XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-05-13 21:32 UTC] acrozes at hotmail dot com
Description:
------------
The src file is :
<?php
echo "teste un truc";
?>

And the bcompiled file of this file make failed apache http server 
(using wampserver 1.7.1)



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-13 22:10 UTC] acrozes at hotmail dot com
It seems to be a compatibility problem with Zend Optimizer.
Disable Zend and apache don t fail:

;zend_extension_manager.optimizer_ts="C:/wamp\optimizer\lib\Optimizer-3.2.8"
;zend_extension_ts="C:/wamp\optimizer\lib\ZendExtensionManager.dll"
 [2007-10-12 09:57 UTC] kmb at kai-m-becker dot de
Confirmed with WinXP
PHP Version => 5.2.3 (May 31 2007 09:36:39)
PHP Extension => 20060613
Zend Extension => 220060519 
(i.e. xampp 1.6.3a for Windows)

Test class 'a.php':
<? class A { public function b() { print "a!\n"; } } ?>

Test file:
$fh = fopen('a.phb', 'wb');
bcompiler_write_header($fh);
bcompiler_write_file($fh, "a.php");
bcompiler_write_footer($fh);
fclose($fh);
print "compiled.\n";

bcompiler_load_exe('a.phb');
print "loaded\n";

$x = new A();
print "constructed\n";

$x->b(); // <-- Windows: Access Violation
// Debugger says: 
// Unhandled exception in zendoptimizer.dll, 0227e7be

Disabling 
"zend_extension_ts = "C:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll""
in php.ini makes the above work.
 [2009-11-23 12:45 UTC] val@php.net
I'm pretty sure bcompiler won't work with Zend Optimizer.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 04:01:29 2024 UTC