in reply to Re: unreachable memory with a non-zero reference count
in thread unreachable memory with a non-zero reference count
The objetc's method does return a string, I need a reference to that string, therefore I overwrite the variable with a reference to it's former value just to not need to declare another variable. I found it more readable than the following, which would work, too: $retVal = \$someObject->bar()->doSomething();Your code makes no sense:
...
You overwrite $retVal immediately. Maybe you meant:
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: unreachable memory with a non-zero reference count
by Corion (Patriarch) on Jun 21, 2010 at 13:26 UTC | |
by Pickwick (Beadle) on Jun 21, 2010 at 13:45 UTC |