summaryrefslogtreecommitdiff
path: root/Zend/tests/026.phpt
blob: 784b12c69ba8bc45005d4d65fd8811a33f67e1b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Trying assign value to property when an object is not returned in a function
--FILE--
<?php

class foo {
	public function a() {
	}
}

$test = new foo;

$test->a()->a;
print "ok\n";

$test->a()->a = 1;
print "ok\n";

?>
--EXPECTF--
Notice: Trying to get property of non-object in %s on line %d
ok

Strict Standards: Creating default object from empty value in %s on line %d
ok