]> granicus.if.org Git - php/commitdiff
Previously fix is not right
authorXinchen Hui <laruence@php.net>
Tue, 28 Jul 2015 06:54:53 +0000 (14:54 +0800)
committerXinchen Hui <laruence@php.net>
Tue, 28 Jul 2015 06:54:53 +0000 (14:54 +0800)
Zend/zend_vm_def.h
Zend/zend_vm_execute.h

index ce5d520aa2d242678fb6b52120a3f9590f1b0a00..0d0eee16289147a62d42a8a5590cf851db658dd0 100644 (file)
@@ -3089,6 +3089,9 @@ ZEND_VM_HANDLER(113, ZEND_INIT_STATIC_METHOD_CALL, CONST|VAR, CONST|TMPVAR|UNUSE
                                        E_DEPRECATED,
                                        "Non-static method %s::%s() should not be called statically",
                                        ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
+                               if (UNEXPECTED(EG(exception) != NULL)) {
+                                       HANDLE_EXCEPTION();
+                               }
                        } else {
                                /* An internal function assumes $this is present and won't check that.
                                 * So PHP would crash by allowing the call. */
index da2eeada1369d7731480fb8221b65180fb9cee7d..36578da670d45426a3fa150b159f684228ec4eaa 100644 (file)
@@ -5656,6 +5656,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_C
                                        E_DEPRECATED,
                                        "Non-static method %s::%s() should not be called statically",
                                        ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
+                               if (UNEXPECTED(EG(exception) != NULL)) {
+                                       HANDLE_EXCEPTION();
+                               }
                        } else {
                                /* An internal function assumes $this is present and won't check that.
                                 * So PHP would crash by allowing the call. */
@@ -7666,6 +7669,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_C
                                        E_DEPRECATED,
                                        "Non-static method %s::%s() should not be called statically",
                                        ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
+                               if (UNEXPECTED(EG(exception) != NULL)) {
+                                       HANDLE_EXCEPTION();
+                               }
                        } else {
                                /* An internal function assumes $this is present and won't check that.
                                 * So PHP would crash by allowing the call. */
@@ -9397,6 +9403,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_C
                                        E_DEPRECATED,
                                        "Non-static method %s::%s() should not be called statically",
                                        ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
+                               if (UNEXPECTED(EG(exception) != NULL)) {
+                                       HANDLE_EXCEPTION();
+                               }
                        } else {
                                /* An internal function assumes $this is present and won't check that.
                                 * So PHP would crash by allowing the call. */
@@ -11201,6 +11210,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_C
                                        E_DEPRECATED,
                                        "Non-static method %s::%s() should not be called statically",
                                        ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
+                               if (UNEXPECTED(EG(exception) != NULL)) {
+                                       HANDLE_EXCEPTION();
+                               }
                        } else {
                                /* An internal function assumes $this is present and won't check that.
                                 * So PHP would crash by allowing the call. */
@@ -17536,6 +17548,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_V
                                        E_DEPRECATED,
                                        "Non-static method %s::%s() should not be called statically",
                                        ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
+                               if (UNEXPECTED(EG(exception) != NULL)) {
+                                       HANDLE_EXCEPTION();
+                               }
                        } else {
                                /* An internal function assumes $this is present and won't check that.
                                 * So PHP would crash by allowing the call. */
@@ -19160,6 +19175,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_V
                                        E_DEPRECATED,
                                        "Non-static method %s::%s() should not be called statically",
                                        ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
+                               if (UNEXPECTED(EG(exception) != NULL)) {
+                                       HANDLE_EXCEPTION();
+                               }
                        } else {
                                /* An internal function assumes $this is present and won't check that.
                                 * So PHP would crash by allowing the call. */
@@ -20761,6 +20779,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_V
                                        E_DEPRECATED,
                                        "Non-static method %s::%s() should not be called statically",
                                        ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
+                               if (UNEXPECTED(EG(exception) != NULL)) {
+                                       HANDLE_EXCEPTION();
+                               }
                        } else {
                                /* An internal function assumes $this is present and won't check that.
                                 * So PHP would crash by allowing the call. */
@@ -22314,6 +22335,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_STATIC_METHOD_CALL_SPEC_V
                                        E_DEPRECATED,
                                        "Non-static method %s::%s() should not be called statically",
                                        ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
+                               if (UNEXPECTED(EG(exception) != NULL)) {
+                                       HANDLE_EXCEPTION();
+                               }
                        } else {
                                /* An internal function assumes $this is present and won't check that.
                                 * So PHP would crash by allowing the call. */