On Thu, 26 Feb 2004 14:02:38 +0100
[EMAIL PROTECTED] (Pierre-Alain Joye) wrote:
> Here it is.
>
> I put it in tests/lang/foreach_with_new_object_001.phpt
take #2, .txt :)
--TEST--
foreach() with foreach($o->mthd()->arr)
--FILE--
<?php
class Test {
public $a = array(1,2,3,4,5); // removed, crash too
function c() {
return new Test();
}
}
$obj = new Test();
foreach ($obj->c()->a as $value) {
print "$value\n";
}
--EXPECT--
1
2
3
4
5
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php