Bug #12172: Failure to bind a variable to an object's method that returns a reference
| From: | mubarmej at muvix dot com | Date: | Sun, 15 Jul 2001 01:45:30 +0000 |
| Subject: | Bug #12172: Failure to bind a variable to an object's method that returns a reference | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-60042@lists.php.net to get a copy of this message | ||
From: mubarmej@muvix.com
Operating system: Windows 2000
PHP version: 4.0.6
PHP Bug Type: *Compile Issues
Bug description: Failure to bind a variable to an object's method that returns a reference
The following line will give a compilation error:
$arr = array( $stuff, &$this->refAll() );
refAll() is a method of the class that returnes a reference.
This work around works:
$ref = &$this->refAll();
$this->stack[] = array( $stuff, &$ref );
But i think that the one line solution should work too.
--
Edit bug report at: http://bugs.php.net/?id=12172&edit=1