summaryrefslogtreecommitdiff
path: root/Zend/tests/dynamic_call_002.phpt
blob: a0908622583aa49474089bd068ec5967e3525db7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Testing dynamic call with invalid value for method name
--FILE--
<?php

$a = new stdClass;

$a::$a();

?>
--EXPECTF--
Fatal error: Uncaught Error: Function name must be a string in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d