xref: /PHP-5.6/Zend/tests/strict_002.phpt (revision c188ec09)
1--TEST--
2assigning static property as non static
3--INI--
4error_reporting=8191
5--FILE--
6<?php
7
8class test {
9	static $foo = 1;
10}
11
12$t = new test;
13$t->foo = 5;
14
15$fp = fopen(__FILE__, 'r');
16
17var_dump($t);
18
19echo "Done\n";
20?>
21--EXPECTF--
22Strict Standards: Accessing static property test::$foo as non static in %s on line %d
23object(test)#%d (1) {
24  ["foo"]=>
25  int(5)
26}
27Done
28