mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Remove unnecessary code here
This commit is contained in:
parent
f8c050395c
commit
19d5e535c0
@ -910,9 +910,7 @@ PHP_FUNCTION(getimagesize)
|
||||
}
|
||||
zval_dtor(*info);
|
||||
|
||||
if (array_init(*info) == FAILURE) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
array_init(*info);
|
||||
|
||||
convert_to_string_ex(arg1);
|
||||
break;
|
||||
@ -976,11 +974,7 @@ PHP_FUNCTION(getimagesize)
|
||||
php_stream_close(stream);
|
||||
|
||||
if (result) {
|
||||
if (array_init(return_value) == FAILURE) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_ERROR, "Unable to initialize array");
|
||||
efree(result);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
array_init(return_value);
|
||||
add_index_long(return_value, 0, result->width);
|
||||
add_index_long(return_value, 1, result->height);
|
||||
add_index_long(return_value, 2, itype);
|
||||
|
Loading…
Reference in New Issue
Block a user