php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59593 Different bytecode versions across OSs/PHP version
Submitted: 2011-01-26 12:10 UTC Modified: 2011-09-05 07:11 UTC
From: me at jacobbudin dot com Assigned:
Status: Not a bug Package: bcompiler (PECL)
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: me at jacobbudin dot com
New email:
PHP Version: OS:

 

 [2011-01-26 12:10 UTC] me at jacobbudin dot com
Description:
------------
I installed bcompiler on my CentOS 5 machine and Mac OS X 
10.6 machine yesterday. They can't run one another's 
compiled files because the different bytecode versions 
installed. There's nothing in the documentation that 
addresses this issue (and possibly how to fix it).

Additionally, is there a way to force the compiler to use a 
certain (older) version?


CentOS 5.5, PHP 5.2.10, Apache 2.2.3, x86_64
----
bcompiler version	0.9.3-devs
current bytecode version	0.21
can parse bytecode version	0.7, 0.9, 0.11, 0.12, 0.14, 
0.18, 0.21



Mac OS X 10.6, PHP 5.3.3, Apache 2.2.15, i386
----
bcompiler version	0.9.3-devs
current bytecode version	0.22
can parse bytecode version	0.20, 0.22


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-26 22:09 UTC] alan at akbkhome dot com
This sounds partly correct

PHP5.3 will produce bytecodes that are not compatible with 
other versions. due to the extra features in the lanuguage

Val might know 5.3/0.9.3-dev can not read older bytecodes 
though.
 [2011-09-05 07:11 UTC] val@php.net
Thank you for taking the time to write to us, but this is not
a bug.

Right, bcompiled code is typically incompatible between PHP versions due to changes in Zend engine internals. So you can only run a bytecode with the same PHP version that was used to compile it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC