|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-02-01 20:52 UTC] alecgorge at gmail dot com
Description:
------------
I am using bcompiler v 0.9.2 and any sort of class definition causes the file not to run and have it output a strange symbol. Adding methods to the class doesn't help. This also occurred on v0.9.1. I am using PHP 5.3.1.
Reproduce code:
---------------
<?php
class Foo {
}
?>
Expected result:
----------------
Nothing
Actual result:
--------------
►
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 04:00:01 2025 UTC |
I am creating the bcompiled file using: <?php $fhandle = fopen('test.php', 'w'); bcompiler_write_header($fhandle); bcompiler_write_file($fhandle, 'test.phb'); bcompiler_write_footer($fhandle); fclose($fhandle); ?>If the source file is test.php, and bytecodes are to be written to test.phb, you need to use it as follows: <?php $fhandle = fopen('test.phb', 'w'); // here comes the bytecode file name bcompiler_write_header($fhandle); bcompiler_write_file($fhandle, 'test.php'); // here comes the source file name bcompiler_write_footer($fhandle); fclose($fhandle); ?>