Added a test case for bug #17882

This commit is contained in:
Moriyoshi Koizumi 2002-11-10 18:43:19 +00:00
parent 705a4e251c
commit b8d56f5ec2

15
tests/lang/bug17882.phpt Normal file
View File

@ -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