diff options
author | Zeev Suraski <zeev@php.net> | 1999-07-16 17:19:11 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-07-16 17:19:11 +0000 |
commit | 58a6d48014be3be68275661730b53fe3f8c184dc (patch) | |
tree | b6984ab6c0adf0a84294aa9f9eb039d0771db835 /ext/mysql | |
parent | dc09865f4a60fb20a7e8b4df8b9dc21b7eb07fda (diff) | |
download | php-git-58a6d48014be3be68275661730b53fe3f8c184dc.tar.gz |
Get postgresql module uptodate
Diffstat (limited to 'ext/mysql')
-rw-r--r-- | ext/mysql/mysql.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/mysql/mysql.c b/ext/mysql/mysql.c index c34426b3de..6f0f1fec27 100644 --- a/ext/mysql/mysql.c +++ b/ext/mysql/mysql.c @@ -1433,11 +1433,11 @@ static void php3_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type) mysql_field_seek(mysql_result,0); for (mysql_field=mysql_fetch_field(mysql_result),i=0; mysql_field; mysql_field=mysql_fetch_field(mysql_result),i++) { - char *data; - int data_len; - int should_copy; - if (mysql_row[i]) { + char *data; + int data_len; + int should_copy; + if (PG(magic_quotes_runtime)) { data = _php3_addslashes(mysql_row[i],mysql_row_lengths[i],&data_len,0); should_copy = 0; |