summaryrefslogtreecommitdiff
path: root/Zend/zend_inheritance.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2016-04-07 00:59:21 +0300
committerDmitry Stogov <dmitry@zend.com>2016-04-07 00:59:21 +0300
commit088f55ae74d8cd316fd33f1828f28472409cfb21 (patch)
tree1d1e70fcaa190c612b5b230fd03d50c8bb12461a /Zend/zend_inheritance.c
parent6489edb9585112835f1dcbbd68140b2e9e3de1c5 (diff)
downloadphp-git-088f55ae74d8cd316fd33f1828f28472409cfb21.tar.gz
Fixed build
Diffstat (limited to 'Zend/zend_inheritance.c')
-rw-r--r--Zend/zend_inheritance.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c
index e6721879ee..9042b2f0a2 100644
--- a/Zend/zend_inheritance.c
+++ b/Zend/zend_inheritance.c
@@ -577,6 +577,8 @@ static void do_inheritance_check_on_method(zend_function *child, zend_function *
if (UNEXPECTED(!zend_do_perform_implementation_check(child, parent))) {
int error_level;
const char *error_verb;
+ zend_string *method_prototype = zend_get_function_declaration(parent);
+ zend_string *child_prototype = zend_get_function_declaration(child);
if (child->common.prototype && (
child->common.prototype->common.fn_flags & ZEND_ACC_ABSTRACT
@@ -592,8 +594,6 @@ static void do_inheritance_check_on_method(zend_function *child, zend_function *
error_level = E_WARNING;
error_verb = "should";
}
- zend_string *method_prototype = zend_get_function_declaration(parent);
- zend_string *child_prototype = zend_get_function_declaration(child);
zend_error(error_level, "Declaration of %s %s be compatible with %s", ZSTR_VAL(child_prototype), error_verb, ZSTR_VAL(method_prototype));
zend_string_free(child_prototype);
zend_string_free(method_prototype);