mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
more tsrm cleanup
This commit is contained in:
parent
e6697297b6
commit
23b9300fd1
23 changed files with 98 additions and 109 deletions
|
@ -42,7 +42,7 @@ PHPAPI void php_register_variable_safe(char *var, char *strval, int str_len, zva
|
|||
/* Prepare value */
|
||||
new_entry.value.str.len = str_len;
|
||||
if (PG(magic_quotes_gpc)) {
|
||||
new_entry.value.str.val = php_addslashes(strval, new_entry.value.str.len, &new_entry.value.str.len, 0);
|
||||
new_entry.value.str.val = php_addslashes(strval, new_entry.value.str.len, &new_entry.value.str.len, 0 TSRMLS_CC);
|
||||
} else {
|
||||
new_entry.value.str.val = estrndup(strval, new_entry.value.str.len);
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ PHPAPI void php_register_variable_ex(char *var, zval *val, pval *track_vars_arra
|
|||
} else {
|
||||
if (PG(magic_quotes_gpc) && (index!=var)) {
|
||||
/* no need to addslashes() the index if it's the main variable name */
|
||||
escaped_index = php_addslashes(index, index_len, &index_len, 0);
|
||||
escaped_index = php_addslashes(index, index_len, &index_len, 0 TSRMLS_CC);
|
||||
} else {
|
||||
escaped_index = index;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue