summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-11-20 09:51:12 +0000
committerDmitry Stogov <dmitry@php.net>2007-11-20 09:51:12 +0000
commitc3ab6bd09164bd17f9dab09da47a045247210e34 (patch)
treeecd302f2b2e96d4286f6304ef56a9d3c68bc7749 /ext/com_dotnet
parent9f230a0d794e13fce699df9fd1187b55ff83bc35 (diff)
downloadphp-git-c3ab6bd09164bd17f9dab09da47a045247210e34.tar.gz
Fixed bug #43136 (possible crash on script execution timeout. The EG(function_state_ptr) is completely removed, EG(current_execute_data)->function_state must be used instead)
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_com.c2
-rw-r--r--ext/com_dotnet/com_handlers.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/com_dotnet/com_com.c b/ext/com_dotnet/com_com.c
index 60bccd96bb..cf6cf8d283 100644
--- a/ext/com_dotnet/com_com.c
+++ b/ext/com_dotnet/com_com.c
@@ -469,7 +469,7 @@ int php_com_do_invoke_byref(php_com_dotnet_object *obj, char *name, int namelen,
HRESULT hr;
VARIANT *vargs = NULL, *byref_vals = NULL;
int i, byref_count = 0, j;
- zend_internal_function *f = (zend_internal_function*)EG(function_state_ptr)->function;
+ zend_internal_function *f = (zend_internal_function*)EG(current_execute_data)->function_state.function;
/* assumption: that the active function (f) is the function we generated for the engine */
if (!f || f->arg_info == NULL) {
diff --git a/ext/com_dotnet/com_handlers.c b/ext/com_dotnet/com_handlers.c
index 113e8b02f4..3bb5756977 100644
--- a/ext/com_dotnet/com_handlers.c
+++ b/ext/com_dotnet/com_handlers.c
@@ -255,7 +255,7 @@ static void function_dtor(void *pDest)
static PHP_FUNCTION(com_method_handler)
{
Z_OBJ_HANDLER_P(getThis(), call_method)(
- ((zend_internal_function*)EG(function_state_ptr)->function)->function_name,
+ ((zend_internal_function*)EG(current_execute_data)->function_state.function)->function_name,
INTERNAL_FUNCTION_PARAM_PASSTHRU);
}