# [PATCH} ZTS fix for zend_execute_API.c

- Thread: https://externals.io/message/8540
- Original archive: https://news-web.php.net/php.internals/8540
- Started by Frank M. Kromann on 2004-03-16T17:39:29+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #8540 — Frank M. Kromann — 2004-03-16T17:39:29+00:00

URL: https://externals.io/message/8540#8540

Hello,

Here is a diff for zend_execute_API.c, fixing ZTS builds.

- Frank

Index: zend_execute_API.c
===================================================================
RCS file: /repository/ZendEngine2/zend_execute_API.c,v
retrieving revision 1.280
diff -u -r1.280 zend_execute_API.c
--- zend_execute_API.c	16 Mar 2004 14:59:06 -0000	1.280
+++ zend_execute_API.c	16 Mar 2004 17:40:37 -0000
@@ -652,8 +652,8 @@
 						zend_error(E_ERROR, "Class '%s' not found",
Z_STRVAL_PP(fci->object_pp));
 					}
 					if (EG(This) && 
-						instanceof_function(Z_OBJCE_P(EG(This)), scope) &&
-						instanceof_function(scope, *ce)) {
+						instanceof_function(Z_OBJCE_P(EG(This)), scope TSRMLS_CC) &&
+						instanceof_function(scope, *ce TSRMLS_CC)) {
 						fci->object_pp = &EG(This);
 					} else {
 						fci->object_pp = NULL;

---

## #8541 — Steph — 2004-03-16T19:07:25+00:00

URL: https://externals.io/message/8540#8541 · In reply to: #8540

Thanks Frank, I thought it was just me!

> -----Original Message-----
> From: Frank M. Kromann [mailto:frank@kromann.info]
> Sent: 16 March 2004 17:39
> To: internals@lists.php.net
> Subject: [PHP-DEV] [PATCH} ZTS fix for zend_execute_API.c
> 
> 
> Hello,
> 
> Here is a diff for zend_execute_API.c, fixing ZTS builds.
> 
> - Frank
> 
> Index: zend_execute_API.c
> ===================================================================
> RCS file: /repository/ZendEngine2/zend_execute_API.c,v
> retrieving revision 1.280
> diff -u -r1.280 zend_execute_API.c
> --- zend_execute_API.c	16 Mar 2004 14:59:06 -0000	1.280
> +++ zend_execute_API.c	16 Mar 2004 17:40:37 -0000
> @@ -652,8 +652,8 @@
>  						zend_error(E_ERROR, 
> "Class '%s' not found",
> Z_STRVAL_PP(fci->object_pp));
>  					}
>  					if (EG(This) && 
> -						
> instanceof_function(Z_OBJCE_P(EG(This)), scope) &&
> -						
> instanceof_function(scope, *ce)) {
> +						
> instanceof_function(Z_OBJCE_P(EG(This)), scope TSRMLS_CC) &&
> +						
> instanceof_function(scope, *ce TSRMLS_CC)) {
>  						fci->object_pp = &EG(This);
>  					} else {
>  						fci->object_pp = NULL;
