mirror of
https://github.com/php/php-src.git
synced 2026-03-26 01:02:25 +01:00
More TSRMLS_FETCH annihilation
This commit is contained in:
@@ -592,15 +592,17 @@ int java_set_property_handler
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
static void _php_java_destructor(zend_rsrc_list_entry *rsrc)
|
||||
static void _php_java_destructor(zend_rsrc_list_entry *rsrc TSRMLS_DC)
|
||||
{
|
||||
void *jobject = (void *)rsrc->ptr;
|
||||
JG_FETCH();
|
||||
if (JG(jenv)) (*JG(jenv))->DeleteGlobalRef(JG(jenv), jobject);
|
||||
|
||||
JG_FETCH();
|
||||
if (JG(jenv)) (*JG(jenv))->DeleteGlobalRef(JG(jenv), jobject);
|
||||
}
|
||||
|
||||
#ifdef ZTS
|
||||
static void alloc_java_globals_ctor(php_java_globals *java_globals TSRMLS_DC) {
|
||||
static void alloc_java_globals_ctor(php_java_globals *java_globals TSRMLS_DC)
|
||||
{
|
||||
memset(java_globals, 0, sizeof(php_java_globals));
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user