note 97204 added to book.bcompiler
| From: | geoff at spacevs dot com | Date: | Thu, 08 Apr 2010 10:08:32 +0000 |
| Subject: | note 97204 added to book.bcompiler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168006@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 69.147.83.197
Probable Submitter: 210.11.27.171
----
Manual Page -- http://www.php.net/manual/en/book.bcompiler.php
Edit -- https://master.php.net/note/edit/97204
Del: integrated -- https://master.php.net/note/delete/97204/integrated
Del: useless -- https://master.php.net/note/delete/97204/useless
Del: bad code -- https://master.php.net/note/delete/97204/bad+code
Del: spam -- https://master.php.net/note/delete/97204/spam
Del: non-english -- https://master.php.net/note/delete/97204/non-english
Del: in docs -- https://master.php.net/note/delete/97204/in+docs
Del: other reasons-- https://master.php.net/note/delete/97204
Reject -- https://master.php.net/note/reject/97204
Search -- https://master.php.net/manage/user-notes.php