Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.0

Bug #9682 only variables can be returned by reference
Submitted: 2006-12-22 20:07 UTC
From: cellog Assigned: cellog
Status: Closed Package: Structures_Graph (version 1.0.1)
PHP Version: 5.1.4 OS: n/a
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 47 - 4 = ?

 
 [2006-12-22 20:07 UTC] cellog (Greg Beaver)
Description: ------------ Index: Node.php =================================================================== RCS file: /repository/pear/Structures_Graph/Structures/Graph/Node.php,v retrieving revision 1.2 diff -u -r1.2 Node.php --- Node.php 9 Dec 2005 12:12:19 -0000 1.2 +++ Node.php 22 Dec 2006 20:06:46 -0000 @@ -173,9 +173,11 @@ return $this->_metadata[$key]; } else { if ($nullIfNonexistent) { - return null; + $a = null; + return $a; } else { - return Pear::raiseError('Structures_Graph_Node::getMetadata: Requested key does not exist', STRUCTURES_GRAPH_ERROR_GENERIC); + $a = Pear::raiseError('Structures_Graph_Node::getMetadata: Requested key does not exist', STRUCTURES_GRAPH_ERROR_GENERIC); + return $a; } } }

Comments

 [2007-01-07 06:17 UTC] cellog (Greg Beaver)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.