mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
Fix ZTS issues.
This commit is contained in:
parent
94d1d69569
commit
4e8661438d
@ -94,7 +94,7 @@ static int ps_files_valid_key(const char *key)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, const char *key)
|
||||
static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, const char *key TSRMLS_DC)
|
||||
{
|
||||
size_t key_len;
|
||||
const char *p;
|
||||
@ -180,7 +180,7 @@ static void ps_files_open(ps_files *data, const char *key TSRMLS_DC)
|
||||
PS(invalid_session_id) = 1;
|
||||
return;
|
||||
}
|
||||
if (!ps_files_path_create(buf, sizeof(buf), data, key)) {
|
||||
if (!ps_files_path_create(buf, sizeof(buf), data, key TSRMLS_CC)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -430,7 +430,7 @@ PS_DESTROY_FUNC(files)
|
||||
char buf[MAXPATHLEN];
|
||||
PS_FILES_DATA;
|
||||
|
||||
if (!ps_files_path_create(buf, sizeof(buf), data, key)) {
|
||||
if (!ps_files_path_create(buf, sizeof(buf), data, key TSRMLS_CC)) {
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
|
@ -1546,7 +1546,7 @@ static PHP_FUNCTION(session_id)
|
||||
int id_len;
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
|
||||
zend_unicode_to_string_ex(ZEND_U_CONVERTER(UG(runtime_encoding_conv)), &id, &id_len, name.u, name_len, &status TSRMLS_CC);
|
||||
zend_unicode_to_string_ex(ZEND_U_CONVERTER(UG(runtime_encoding_conv)), &id, &id_len, name.u, name_len, &status);
|
||||
|
||||
if (U_SUCCESS(status) && id) {
|
||||
PS(id) = id;
|
||||
|
Loading…
Reference in New Issue
Block a user