Re: cvs: pear /Image_Graph/Graph Common.php
| From: | Lukas Kahwe Smith | Date: | Wed, 22 Mar 2006 22:11:51 +0000 |
| Subject: | Re: cvs: pear /Image_Graph/Graph Common.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-39255@lists.php.net to get a copy of this message | ||
Jesper Veggerby Hansen wrote:
nosey Wed Mar 22 22:03:43 2006 UTCModified files: /pear/Image_Graph/Graph Common.php Log:Fixed a PHP5 Notice (Only variable references should be returned by reference)
@@ -124,7 +124,8 @@
$keys = array_keys($this->_elements);
foreach ($keys as $key) {
if (is_object($this->_elements[$key])) {
- $this->_elements[$key]->_setParent($this);
+ $this_ =& $this;
+ $this->_elements[$key]->_setParent($this_);
$result =& $this->_elements[$key]->_reset();
if (PEAR::isError($result)) {
return $result;
this looks like an incredibly ugly hack ..
itsnt there a cleaner way to do what you need?
regards,
Lukas