mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
tiny optimisation
This commit is contained in:
parent
e81d9aaca3
commit
8edf2b88dc
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user