PHP Doku:: PHP bytecode Compiler - book.bcompiler.html

Verlauf / Chronik / History: (18) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDas Verhalten von PHP beeinflussenPHP bytecode Compiler

Ein Service von Reinhard Neidl - Webprogrammierung.

Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
Das Verhalten von PHP beeinflussen

<<rename_function

Einführung>>


UnterSeiten:

PHP bytecode Compiler


Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
2 BenutzerBeiträge:
- Beiträge aktualisieren...
rustushki
29.12.2010 19: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
8.04.2010 12: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.



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)