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

$a = new stdClass;
$b = 1;

$a::$b();

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