2
Bug #27439 (foreach() with $this segfaults)
13
public $array = array(1,2,3);
14
public $string = "string";
16
public function __construct() {
17
$this->object = new test_props;
20
public function getArray() {
24
public function getString() {
28
public function case1() {
29
foreach ($this->array as $foo) {
34
public function case2() {
35
foreach ($this->foobar as $foo);
38
public function case3() {
39
foreach ($this->string as $foo);
42
public function case4() {
43
foreach ($this->getArray() as $foo);
46
public function case5() {
47
foreach ($this->getString() as $foo);
50
public function case6() {
51
foreach ($this->object as $foo) {
68
Warning: Invalid argument supplied for foreach() in %s on line %d
70
Warning: Invalid argument supplied for foreach() in %s on line %d
72
Warning: Invalid argument supplied for foreach() in %s on line %d