Re: foreach() broken
| From: | Sebastian Bergmann | Date: | Sun, 14 Sep 2003 09:56:08 +0000 |
| Subject: | Re: foreach() broken | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4472@lists.php.net to get a copy of this message | ||
Sebastian Bergmann wrote:
> That means I have to dig deeper into the application I spotted the
> issue I wanted to report.
A print_r($this); in the method that accesses the member array yielded
a surprising result: $this does not point to the object on which the
method is called but rather to the object that called the method.
I was not able to strip the application I'm seeing this in down to a
small, reproducing snippet, yet.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/