|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57281 uppercase in class names damages bytecode
Submitted: 2006-10-05 17:15 UTC Modified: 2006-12-17 06:00 UTC
From: t0nni at gmx dot net Assigned: val (profile)
Status: Closed Package: bcompiler (PECL)
PHP Version: 5.1.6 OS: Windows XP Pro SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
10 + 38 = ?
Subscribe to this entry?

 [2006-10-05 17:15 UTC] t0nni at gmx dot net
I use PHP5.1.6 as an Apache2.2.3 module with the bcompiler extension (version 0.8s) installed.
I get the error if there is any uppercase character in the class declaration. It does not matter if the classname is written with uppercase letters at useage or as parameter for bcompiler_write_class.

Reproduce code:
class fooBar {}

$h=fopen('bytecode.php', 'w');
bcompiler_write_class($h, 'fooBar');

include 'bytecode.php';
$instance=new fooBar();

Expected result:
I expected run.php to run without an error.

Actual result:
Fatal error: Class 'fooBar' not found in run.php on line 3


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-13 14:58 UTC]
try to use bcompiler_write_file(), it's now prefered way of doing things with bcompiler. and it works fine with your example

but I will fix older bcompiler_write_class() asap...
 [2006-12-17 06:00 UTC]
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.

fixed for classes written with bcompiler_write_class() on CVS in bcompiler.c revision 1.108
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Nov 26 15:05:54 2022 UTC