mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
- Get rid of ELS_*(), and use TSRMLS_*() instead.
- Move to the new ts_allocate_id() API This patch is *bound* to break some files, as I must have had typos somewhere. If you use any uncommon extension, please try to build it...
This commit is contained in:
parent
2c254ba762
commit
fe6f8712a4
70 changed files with 392 additions and 381 deletions
|
@ -599,7 +599,7 @@ static void _php_java_destructor(zend_rsrc_list_entry *rsrc)
|
|||
}
|
||||
|
||||
#ifdef ZTS
|
||||
static void alloc_java_globals_ctor(php_java_globals *java_globals) {
|
||||
static void alloc_java_globals_ctor(php_java_globals *java_globals TSRMLS_DC) {
|
||||
memset(java_globals, 0, sizeof(php_java_globals));
|
||||
}
|
||||
#endif
|
||||
|
@ -624,7 +624,7 @@ PHP_MINIT_FUNCTION(java) {
|
|||
}
|
||||
|
||||
#ifdef ZTS
|
||||
java_globals_id = ts_allocate_id(sizeof(php_java_globals),
|
||||
ts_allocate_id(&java_globals_id, sizeof(php_java_globals),
|
||||
(ts_allocate_ctor)alloc_java_globals_ctor, NULL);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue