note 56108 rejected from migration5.oop by aidan

From: Date: Wed, 24 Aug 2005 02:56:33 +0000
Subject: note 56108 rejected from migration5.oop by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-94107@lists.php.net to get a copy of this message
Note Submitter: beebop at mail dot ru ---- I making some efficient library load in my site engenie. The idea was to load small "function Declararation class" and if one of functions is accesed load full functions from file. SO i bumped in redefine class var from same class fnc :) PHP5 <? function wap(&$txt) { var_dump ($txt);$txt=new cAction_Full();var_dump ($txt); } class cAction_Full extends cAction{ function say() { echo "\nDO AS YOU PLEASE";}}; class cAction { function say() { echo "\nNO !!!!";} function say2() { GLOBAL $cAction_Full; wap($this); // heh partial workaround :) var_dump($this); } }; $bar=new cAction(); $bar->say(); $bar->say2(); $bar->say(); ?> and output C:\PHP>php.exe ttes.php NO!!! object(cAction)#1 (0) { } object(cAction_Full)#2 (0) { <-YEPP!! } object(cAction_Full)#2 (0) { <-YEPP!!C'Mon } NO!!! <- You B$@#$$#@H!!!! Any workaround would make me very HaPPy please send any notes to beebop@mail.ru :)

« previous php.notes (#94107) next »