2011-12-27 16:38:18 +08:00
|
|
|
--TEST--
|
|
|
|
Bug #60611 (Segmentation fault with Cls::{expr}() syntax)
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
class Cls {
|
2020-02-04 05:52:20 +08:00
|
|
|
function __call($name, $arg) {
|
|
|
|
}
|
|
|
|
static function __callStatic($name, $arg) {
|
|
|
|
}
|
2011-12-27 16:38:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
$cls = new Cls;
|
|
|
|
$cls->{0}();
|
|
|
|
$cls->{1.0}();
|
|
|
|
$cls->{true}();
|
|
|
|
$cls->{false}();
|
|
|
|
$cls->{null}();
|
|
|
|
|
2011-12-28 14:46:12 +08:00
|
|
|
Cls::{0}();
|
|
|
|
Cls::{1.0}();
|
|
|
|
Cls::{true}();
|
|
|
|
Cls::{false}();
|
|
|
|
Cls::{null}();
|
|
|
|
|
2011-12-27 16:38:18 +08:00
|
|
|
?>
|
2011-12-28 14:46:12 +08:00
|
|
|
--EXPECTF--
|
|
|
|
Fatal error: Method name must be a string in %sbug60611.php on line %d
|