com gtk/php-gtk: ZTS fixes: main/php_gtk_util.c

[email protected] (David Soria Parra)
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    ce0689e9e91e6279dbb43c1a2d69914068760883
Author:    Steph Fox <[email protected]>         Fri, 16 Jun 2006 19:02:51 +0000
Parents:   6fc6b056e8ef7d0ef73c9dfa594a9b35921c81f6
Branches:  master

Link:       http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=ce0689e9e91e6279dbb43c1a2d69914068760883

Log:
ZTS fixes

Changed paths:
  M  main/php_gtk_util.c


Diff:
ce0689e9e91e6279dbb43c1a2d69914068760883
diff --git a/main/php_gtk_util.c b/main/php_gtk_util.c
index f623570..bf0bd0c 100644
--- a/main/php_gtk_util.c
+++ b/main/php_gtk_util.c
@@ -569,10 +569,12 @@ PHP_GTK_API int php_gtk_parse_args_hash_quiet(zval *hash, char *format, ...)
 
 PHP_GTK_API int php_gtk_check_class(zval *wrapper, zend_class_entry *expected_ce)
 {
+	TSRMLS_FETCH();
+
 	if (Z_TYPE_P(wrapper) != IS_OBJECT)
 		return 0;
 
-	if (instanceof_function(Z_OBJCE_P(wrapper), expected_ce))
+	if (instanceof_function(Z_OBJCE_P(wrapper), expected_ce TSRMLS_CC))
 		return 1;
 	else
 		return 0;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.