Re: Engine problem
| From: | Zeev Suraski | Date: | Tue, 17 Jul 2001 22:27:34 +0000 |
| Subject: | Re: Engine problem | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60190@lists.php.net to get a copy of this message | ||
I found the problem, trying to figure out a fix.
Zeev
At 22:16 17/07/2001, Andrei Zmievski wrote:
I updated from Zend CVS today, and recompiled everything freshly. Ran into a problem with the following: <?php class matcher {-- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/var $arg_types = array();function &get($type) { return $this->arg_types[$type]; }} $matcher = new matcher(); $matcher->get('foo'); var_dump($matcher->arg_types); ?> This produces: array(1) { ["foo"]=> &UNKNOWN:0 } If function doesn't return by reference, then it's fine. -Andrei * Non-volatile, random-access, analog memory store... a book. *