diff options
| author | Marcus Boerger <helly@php.net> | 2002-12-05 15:52:35 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2002-12-05 15:52:35 +0000 |
| commit | 11eb34e8ee209c721dfea82fde69118ac6a174be (patch) | |
| tree | ba8b624a678479319f5d95c6ea338b0cc34a006d | |
| parent | 4eccd8094e2c6fb5532048a9271fe7a61ef24ea9 (diff) | |
| download | php-git-11eb34e8ee209c721dfea82fde69118ac6a174be.tar.gz | |
MFH: Remove unnecessary code here
| -rw-r--r-- | ext/standard/image.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ext/standard/image.c b/ext/standard/image.c index 92cab3654e..f8705be515 100644 --- a/ext/standard/image.c +++ b/ext/standard/image.c @@ -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); |
