xref: /PHP-8.2/Zend/tests/bug60613.phpt (revision 7aacc705)
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?>
18--EXPECTF--
19Fatal error: Method name must be a string in %sbug60613.php on line %d
20