summaryrefslogtreecommitdiff
path: root/Zend/tests/objects_007.phpt
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-05-31 14:54:52 +0000
committerAntony Dovgal <tony2001@php.net>2006-05-31 14:54:52 +0000
commit8f78a2727b34e7586de966b6202cfb5e9cc25b8c (patch)
tree817499eccbea9b04f73126cf4984041783897a61 /Zend/tests/objects_007.phpt
parent8df40bdb313d84bf606ce0052954b8031bc5a91f (diff)
downloadphp-git-8f78a2727b34e7586de966b6202cfb5e9cc25b8c.tar.gz
add tests for E_STRICT that will become E_FATAL in PHP 6
Diffstat (limited to 'Zend/tests/objects_007.phpt')
-rw-r--r--Zend/tests/objects_007.phpt24
1 files changed, 24 insertions, 0 deletions
diff --git a/Zend/tests/objects_007.phpt b/Zend/tests/objects_007.phpt
new file mode 100644
index 0000000000..2fce04a17d
--- /dev/null
+++ b/Zend/tests/objects_007.phpt
@@ -0,0 +1,24 @@
+--TEST--
+method overloading with different method signature
+--INI--
+error_reporting=8191
+--FILE--
+<?php
+
+class test {
+ function foo($arg, &$arg2 = NULL) {}
+}
+
+class test2 extends test {
+ function foo($arg, &$arg2 = NULL) {}
+}
+
+class test3 extends test {
+ function foo($arg, &$arg2) {}
+}
+
+echo "Done\n";
+?>
+--EXPECTF--
+Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d
+Done