mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
Added a test case for bug #17882
This commit is contained in:
parent
705a4e251c
commit
b8d56f5ec2
15
tests/lang/bug17882.phpt
Normal file
15
tests/lang/bug17882.phpt
Normal 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
|
Loading…
Reference in New Issue
Block a user