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

search for in the

Introducere> <rename_function
[edit] Last updated: Fri, 25 May 2012

view this page in

PHP bytecode Compiler



add a note add a note User Contributed Notes bcompiler
rustushki 29-Dec-2010 11:05
It looks like as of bcompiler 0.9.3 geoff's code above works correctly with the output:

static
construct
testOut
geoff at spacevs dot com 08-Apr-2010 05:08
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 | sitemap | contact | advertising | mirror sites