diff options
| author | Felipe Pena <felipe@php.net> | 2009-04-04 17:19:29 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2009-04-04 17:19:29 +0000 |
| commit | e595ebf5e557ebd47e1e3ba0e67f14c84db3d0fe (patch) | |
| tree | 9919afb08558c1eb9a57943c4ff42abb24756b5e | |
| parent | 4624a5b9ae396964f0027d1e4123a63bacce2459 (diff) | |
| download | php-git-e595ebf5e557ebd47e1e3ba0e67f14c84db3d0fe.tar.gz | |
- Synced old changes
| -rw-r--r-- | Zend/tests/objects_002.phpt | 3 | ||||
| -rw-r--r-- | Zend/tests/objects_003.phpt | 3 | ||||
| -rw-r--r-- | Zend/tests/objects_004.phpt | 3 | ||||
| -rw-r--r-- | Zend/tests/objects_005.phpt | 3 | ||||
| -rw-r--r-- | Zend/tests/objects_006.phpt | 3 | ||||
| -rw-r--r-- | Zend/tests/objects_007.phpt | 3 | ||||
| -rw-r--r-- | Zend/tests/objects_008.phpt | 3 | ||||
| -rw-r--r-- | Zend/tests/objects_009.phpt | 3 | ||||
| -rw-r--r-- | Zend/zend_compile.c | 2 |
9 files changed, 17 insertions, 9 deletions
diff --git a/Zend/tests/objects_002.phpt b/Zend/tests/objects_002.phpt index b130097d6a..7f26236f99 100644 --- a/Zend/tests/objects_002.phpt +++ b/Zend/tests/objects_002.phpt @@ -20,4 +20,5 @@ class test3 extends test { echo "Done\n"; ?> --EXPECTF-- -Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/tests/objects_003.phpt b/Zend/tests/objects_003.phpt index ec1e7d701c..3c47808b88 100644 --- a/Zend/tests/objects_003.phpt +++ b/Zend/tests/objects_003.phpt @@ -20,4 +20,5 @@ class test3 extends test { echo "Done\n"; ?> --EXPECTF-- -Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/tests/objects_004.phpt b/Zend/tests/objects_004.phpt index 182ca8ec29..346a964312 100644 --- a/Zend/tests/objects_004.phpt +++ b/Zend/tests/objects_004.phpt @@ -20,4 +20,5 @@ class test3 extends test { echo "Done\n"; ?> --EXPECTF-- -Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/tests/objects_005.phpt b/Zend/tests/objects_005.phpt index 9f8c2b9f99..2b7b3b26db 100644 --- a/Zend/tests/objects_005.phpt +++ b/Zend/tests/objects_005.phpt @@ -20,4 +20,5 @@ class test3 extends test { echo "Done\n"; ?> --EXPECTF-- -Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/tests/objects_006.phpt b/Zend/tests/objects_006.phpt index adb0e8826d..33444871bc 100644 --- a/Zend/tests/objects_006.phpt +++ b/Zend/tests/objects_006.phpt @@ -20,4 +20,5 @@ class test3 extends test { echo "Done\n"; ?> --EXPECTF-- -Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/tests/objects_007.phpt b/Zend/tests/objects_007.phpt index 5b6b68bd22..ebf3c16c11 100644 --- a/Zend/tests/objects_007.phpt +++ b/Zend/tests/objects_007.phpt @@ -20,4 +20,5 @@ class test3 extends test { echo "Done\n"; ?> --EXPECTF-- -Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/tests/objects_008.phpt b/Zend/tests/objects_008.phpt index e0bba4c756..b33270454a 100644 --- a/Zend/tests/objects_008.phpt +++ b/Zend/tests/objects_008.phpt @@ -20,4 +20,5 @@ class test3 extends test { echo "Done\n"; ?> --EXPECTF-- -Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/tests/objects_009.phpt b/Zend/tests/objects_009.phpt index d3de6b5630..8e09a72f56 100644 --- a/Zend/tests/objects_009.phpt +++ b/Zend/tests/objects_009.phpt @@ -20,4 +20,5 @@ class test3 extends test { echo "Done\n"; ?> --EXPECTF-- -Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 4b75d58083..4f9c62f3ec 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2727,7 +2727,7 @@ static zend_bool do_inherit_method_check(HashTable *child_function_table, zend_f child->common.prototype = parent->common.prototype ? parent->common.prototype : parent; } - if (child->common.prototype) { + if (child->common.prototype && (child->common.prototype->common.fn_flags & ZEND_ACC_ABSTRACT)) { if (!zend_do_perform_implementation_check(child, child->common.prototype TSRMLS_CC)) { zend_error(E_COMPILE_ERROR, "Declaration of %v::%v() must be compatible with that of %v::%v()", ZEND_FN_SCOPE_NAME(child), child->common.function_name, ZEND_FN_SCOPE_NAME(child->common.prototype), child->common.prototype->common.function_name); } |
