Is that a new problem related to your CVS update?

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 {
>     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. *

--
Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to