summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2001-08-06 03:50:52 +0000
committerSascha Schumann <sas@php.net>2001-08-06 03:50:52 +0000
commit23b9300fd1c854371f0f9b95dce5e259cef653d9 (patch)
tree4575b72c19b61cee38bbec58ba104faeb325b271 /main
parente6697297b6bea4a158ced5da05393bee92a8e14f (diff)
downloadphp-git-23b9300fd1c854371f0f9b95dce5e259cef653d9.tar.gz
more tsrm cleanup
Diffstat (limited to 'main')
-rw-r--r--main/php_variables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index 4a9c834d38..59cb4d7cad 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -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;
}