xref: /PHP-8.2/Zend/tests/bug60611.phpt (revision f8d79582)
1--TEST--
2Bug #60611 (Segmentation fault with Cls::{expr}() syntax)
3--FILE--
4<?php
5class Cls {
6    function __call($name, $arg) {
7    }
8    static function __callStatic($name, $arg) {
9    }
10}
11
12$cls = new Cls;
13$cls->{0}();
14$cls->{1.0}();
15$cls->{true}();
16$cls->{false}();
17$cls->{null}();
18
19Cls::{0}();
20Cls::{1.0}();
21Cls::{true}();
22Cls::{false}();
23Cls::{null}();
24
25?>
26--EXPECTF--
27Fatal error: Method name must be a string in %sbug60611.php on line %d
28