summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2004-09-16 19:36:56 +0000
committerAndi Gutmans <andi@php.net>2004-09-16 19:36:56 +0000
commit16d79b79d6c69b1631421a989c694b66aaf64085 (patch)
tree904fe1194cbb9e299caec4ca3faab116fb00fb5b
parent7a149080d85440af05f5c1344edec7685725423b (diff)
downloadphp-git-16d79b79d6c69b1631421a989c694b66aaf64085.tar.gz
- Add test for bug #27669
-rwxr-xr-xZend/tests/bug27669.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/bug27669.phpt b/Zend/tests/bug27669.phpt
new file mode 100755
index 0000000000..4d513e91aa
--- /dev/null
+++ b/Zend/tests/bug27669.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Bug #27669 (PHP 5 didn't support all possibilities for calling static methods dynamically)
+--FILE--
+<?php
+ error_reporting(E_ALL & !E_STRICT);
+
+ class A {
+ function hello() {
+ echo "Hello World\n";
+ }
+ }
+ $y[0] = 'hello';
+ A::$y[0]();
+?>
+===DONE===
+--EXPECTF--
+Hello World
+===DONE===