diff options
author | Sascha Schumann <sas@php.net> | 2001-08-06 03:50:52 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2001-08-06 03:50:52 +0000 |
commit | 23b9300fd1c854371f0f9b95dce5e259cef653d9 (patch) | |
tree | 4575b72c19b61cee38bbec58ba104faeb325b271 /ext/db | |
parent | e6697297b6bea4a158ced5da05393bee92a8e14f (diff) | |
download | php-git-23b9300fd1c854371f0f9b95dce5e259cef653d9.tar.gz |
more tsrm cleanup
Diffstat (limited to 'ext/db')
-rw-r--r-- | ext/db/db.c | 16 | ||||
-rw-r--r-- | ext/db/php_db.h | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/ext/db/db.c b/ext/db/db.c index 522e3b6466..9d2f8c10bc 100644 --- a/ext/db/db.c +++ b/ext/db/db.c @@ -497,7 +497,7 @@ PHP_FUNCTION(dbminsert) RETURN_FALSE; } - ret = php_dbm_insert(info, Z_STRVAL_P(key), Z_STRVAL_P(value)); + ret = php_dbm_insert(info, Z_STRVAL_P(key), Z_STRVAL_P(value) TSRMLS_CC); RETURN_LONG(ret); } /* }}} */ @@ -505,13 +505,13 @@ PHP_FUNCTION(dbminsert) /* {{{ php_dbm_insert */ -int php_dbm_insert(dbm_info *info, char *key, char *value) { +int php_dbm_insert(dbm_info *info, char *key, char *value TSRMLS_DC) { datum key_datum, value_datum; int ret; DBM_TYPE dbf; - php_stripslashes(key,NULL); - php_stripslashes(value,NULL); + php_stripslashes(key, NULL TSRMLS_CC); + php_stripslashes(value, NULL TSRMLS_CC); value_datum.dptr = estrdup(value); value_datum.dsize = strlen(value); @@ -571,8 +571,8 @@ int php_dbm_replace(dbm_info *info, char *key, char *value TSRMLS_DC) datum key_datum, value_datum; if (PG(magic_quotes_runtime)) { - php_stripslashes(key,NULL); - php_stripslashes(value,NULL); + php_stripslashes(key, NULL TSRMLS_CC); + php_stripslashes(value, NULL TSRMLS_CC); } value_datum.dptr = estrdup(value); @@ -669,7 +669,7 @@ char *php_dbm_fetch(dbm_info *info, char *key TSRMLS_DC) ret = NULL; if (ret && PG(magic_quotes_runtime)) { - ret = php_addslashes(ret, value_datum.dsize, NULL, 1); + ret = php_addslashes(ret, value_datum.dsize, NULL, 1 TSRMLS_CC); } return(ret); } @@ -903,7 +903,7 @@ char *php_dbm_nextkey(dbm_info *info, char *key TSRMLS_DC) else ret=NULL; if (ret && PG(magic_quotes_runtime)) { - ret = php_addslashes(ret, ret_datum.dsize, NULL, 1); + ret = php_addslashes(ret, ret_datum.dsize, NULL, 1 TSRMLS_CC); } return(ret); } diff --git a/ext/db/php_db.h b/ext/db/php_db.h index 61c3a48e86..11faefacbe 100644 --- a/ext/db/php_db.h +++ b/ext/db/php_db.h @@ -54,7 +54,7 @@ typedef struct dbm_info { dbm_info *php_find_dbm(pval *id); int php_dbm_close(zend_rsrc_list_entry *rsrc TSRMLS_DC); dbm_info *php_dbm_open(char *filename, char *mode); -int php_dbm_insert(dbm_info *info, char *key, char *value); +int php_dbm_insert(dbm_info *info, char *key, char *value TSRMLS_DC); char *php_dbm_fetch(dbm_info *info, char *key); int php_dbm_replace(dbm_info *info, char *key, char *value); int php_dbm_exists(dbm_info *info, char *key); |