summaryrefslogtreecommitdiff
path: root/Zend/tests/bug27669.phpt
blob: 9cd845e337f2ef0208068074ed2dedb7a2983e2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #27669 (PHP 5 didn't support all possibilities for calling static methods dynamically)
--FILE--
<?php
    class A {
        static function hello() {
            echo "Hello World\n";
        }
    }
    $y[0] = 'hello';
    A::{$y[0]}();
?>
--EXPECT--
Hello World