diff options
author | Xinchen Hui <laruence@php.net> | 2015-01-19 10:46:59 -0500 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2015-01-19 10:46:59 -0500 |
commit | 1b53a99fbf847ce346e24bb2f25a0ca2298b94a1 (patch) | |
tree | e779c715ed81b52be295021fe49b23a07df79de2 /ext/mysql/php_mysql.c | |
parent | da7d8f45b2cd530b0ce175a09afecf690ec7d943 (diff) | |
download | php-git-1b53a99fbf847ce346e24bb2f25a0ca2298b94a1.tar.gz |
Remove dead codes
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r-- | ext/mysql/php_mysql.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 59ed713c1c..2af92963f8 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -2008,15 +2008,7 @@ Q: String or long first? RETURN_FALSE; } if (sql_row[field_offset]) { -#if PHP_API_VERSION < 20100412 - if (PG(magic_quotes_runtime)) { - RETVAL_STR(php_addslashes(sql_row[field_offset], sql_row_lengths[field_offset], 0)); - } else { -#endif - RETVAL_STRINGL(sql_row[field_offset], sql_row_lengths[field_offset]); -#if PHP_API_VERSION < 20100412 - } -#endif + RETVAL_STRINGL(sql_row[field_offset], sql_row_lengths[field_offset]); } else { RETURN_NULL(); } @@ -2142,15 +2134,7 @@ static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, zend_long result_ if (mysql_row[i]) { zval data; -#if PHP_API_VERSION < 20100412 - if (PG(magic_quotes_runtime)) { - ZVAL_STR(&data, php_addslashes(mysql_row[i], mysql_row_lengths[i], 0)); - } else { -#endif - ZVAL_STRINGL(&data, mysql_row[i], mysql_row_lengths[i]); -#if PHP_API_VERSION < 20100412 - } -#endif + ZVAL_STRINGL(&data, mysql_row[i], mysql_row_lengths[i]); if (result_type & MYSQL_NUM) { add_index_zval(return_value, i, &data); |