Re: foreach() broken
| From: | Wez Furlong | Date: | Sun, 14 Sep 2003 08:58:08 +0000 |
| Subject: | Re: foreach() broken | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4468@lists.php.net to get a copy of this message | ||
> 7 public function __construct() {
> 8 $this->foo = array(new Foo, new Foo);
> 9 foreach ($foo as $bar) {}
$this->foo ?
> Warning: Invalid argument supplied for foreach()
> in E:\test.php on line 9