mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
More TSRMLS_FETCH annihilation
This commit is contained in:
parent
57507b4ea6
commit
aa1772ca72
59 changed files with 219 additions and 183 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue