You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
456 B

--TEST--
Bug #34873 (Segmentation Fault on foreach in object)
--FILE--
<?php
class pwa {
public $var;
function __construct(){
$this->var = array();
}
function test (){
$cont = array();
$cont["mykey"] = "myvalue";
foreach ($cont as $this->var['key'] => $this->var['value'])
var_dump($this->var['value']);
}
}
$myPwa = new Pwa();
$myPwa->test();
echo "Done\n";
?>
--EXPECT--
string(7) "myvalue"
Done
--UEXPECT--
unicode(7) "myvalue"
Done