diff options
| author | Antony Dovgal <tony2001@php.net> | 2006-05-31 14:55:16 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2006-05-31 14:55:16 +0000 |
| commit | 1fdb25459111ef9a81c4f52a5d2f400c3a875791 (patch) | |
| tree | a079a04769d438721c6e8a61683ec00e0c06e6e4 /Zend/tests/objects_009.phpt | |
| parent | 4e662470f77957e6edf0ca867a9e73888ec5fbb7 (diff) | |
| download | php-git-1fdb25459111ef9a81c4f52a5d2f400c3a875791.tar.gz | |
add tests for new E_FATALs
Diffstat (limited to 'Zend/tests/objects_009.phpt')
| -rw-r--r-- | Zend/tests/objects_009.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/objects_009.phpt b/Zend/tests/objects_009.phpt new file mode 100644 index 0000000000..67611f14e2 --- /dev/null +++ b/Zend/tests/objects_009.phpt @@ -0,0 +1,23 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- +<?php + +class test { + function foo(Test $arg) {} +} + +class test2 extends test { + function foo(Test $arg) {} +} + +class test3 extends test { + function foo($arg) {} +} + +echo "Done\n"; +?> +--EXPECTF-- +Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d |
