summaryrefslogtreecommitdiff
path: root/Zend/tests/property_guard_hash_val.phpt
blob: 69f1959a03b260086cfbfa98834705c4cc27f3b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Test property guard hash value assumption
--FILE--
<?php
class Test {
    function __get($var) {
        return $this->{$var.''};
    }
}

$test = new Test;
var_dump($test->x);
?>
--EXPECTF--
Warning: Undefined property: Test::$x in %s on line %d
NULL