diff options
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r-- | ext/mysql/php_mysql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 02e68f638a..916e7898f2 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -1247,9 +1247,9 @@ PHP_FUNCTION(mysql_result) } } - return_value->type = IS_STRING; - if (sql_row[field_offset]) { + return_value->type = IS_STRING; + if (PG(magic_quotes_runtime)) { return_value->value.str.val = php_addslashes(sql_row[field_offset],sql_row_lengths[field_offset],&return_value->value.str.len,0); } else { |