summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/lang/bug17882.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lang/bug17882.phpt b/tests/lang/bug17882.phpt
new file mode 100644
index 0000000000..2369fa3564
--- /dev/null
+++ b/tests/lang/bug17882.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Bug #17882 (case sensitivity of functions in classes)
+--FILE--
+<?php
+class X {
+ function a() {}
+ function A() {}
+}
+class Y {
+ function A() {}
+ function A() {}
+}
+?>
+--EXPECTF--
+Fatal error: Cannot redeclare a() in %s/bug17882.php on line %d