Re: [PHP4BETA] zend engine does not provide full variable reference for variable functions

From: Date: Fri, 12 May 2000 11:30:51 +0000
Subject: Re: [PHP4BETA] zend engine does not provide full variable reference for variable functions
References: 1 2 3  Groups: php.version4 
Request: Send a blank email to php-version4+get-14902@lists.php.net to get a copy of this message
| I did know the eval way, but eval() is slow and I tried avoid using it. | I did know too that 'db->query' was considered to be a single token in | PHP3, I thought it has changed... I was wrong. | I think I really do have to call eval(), but if allowing $this->$a->$b | (), why not $this->$str() too with a slight change in syntax to allow | it... is the § sign in use already? :) $str would return "db->query", which is a single token, its not evaluated and the '->' in "db->query" coming from $str is not treated as a class member pointer. And that is the expected behaviour. BTW, eval() isn't slow as you think. Perhaps the manual could use some extended eval() examples! Faisal

« previous php.version4 (#14902) next »