downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Introduction> <rename_function
[edit] Last updated: Fri, 26 Apr 2013

view this page in

PHP bytecode Compiler



add a note add a note User Contributed Notes bcompiler - [2 notes]
up
1
rustushki
2 years ago
It looks like as of bcompiler 0.9.3 geoff's code above works correctly with the output:

static
construct
testOut
up
0
geoff at spacevs dot com
3 years ago
static vars on classes do not work with bcompiler, eg.

<?PHP
       
class testClass {
                static public
$i;

                static public function
testStatic() {
                        echo
"static\n";
                       
testClass::$i = new testClass();
                }

                public function
__construct() {
                        echo
"construct\n";
                }

                public function
testOut() {
                        echo
"testOut\n";
                }
        }

       
testClass::testStatic();
       
testClass::$i->testOut();
?>

the call to "testOut" will silently fail.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites