xref: /PHP-5.5/Zend/tests/bug60613.phpt (revision 6e3f7b80)
1--TEST--
2Bug #60613 (Segmentation fault with $cls->{expr}() syntax)
3--FILE--
4<?php
5class Cls {
6    function __call($name, $arg) {
7    }
8}
9
10$cls = new Cls();
11$cls->{0}();
12$cls->{1.0}();
13$cls->{true}();
14$cls->{false}();
15$cls->{null}();
16echo "ok\n";
17--EXPECTF--
18Fatal error: Method name must be a string in %sbug60613.php on line %d
19