php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #76213
Patch yaf_dispatcher.patch revision 2018-04-12 09:45 UTC by fanjiapeng at 126 dot com

Patch yaf_dispatcher.patch for yaf Bug #76213

Patch version 2018-04-12 09:45 UTC

Return to Bug #76213 | Download this patch
Patch Revisions:

Developer: fanjiapeng@126.com

diff --git a/yaf_dispatcher.c b/yaf_dispatcher.c
index f20b40a..83901d8 100644
--- a/yaf_dispatcher.c
+++ b/yaf_dispatcher.c
@@ -667,6 +667,7 @@ int yaf_dispatcher_handle(yaf_dispatcher_t *dispatcher, yaf_request_t *request,
 			} else {
 				zend_string_release(func_name);
 				zval_ptr_dtor(&icontroller);
+				zval_ptr_dtor(&action);
 				return 0;
 			}
 
@@ -792,7 +793,7 @@ void yaf_dispatcher_exception_handler(yaf_dispatcher_t *dispatcher, yaf_request_
 					dispatcher, ZEND_STRL(YAF_DISPATCHER_PROPERTY_NAME_MODULE), 1, NULL);
 			/* failover to default module error catcher */
 			zend_update_property(yaf_request_ce, request, ZEND_STRL(YAF_REQUEST_PROPERTY_NAME_MODULE), m);
-			EG(exception) = NULL;
+			zend_clear_exception();
 			(void)yaf_dispatcher_handle(dispatcher, request, response, view);
 		}
 	}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 02:01:29 2024 UTC