helly Thu Dec 5 10:52:35 2002 EDT Modified files: (Branch: PHP_4_3) /php4/ext/standard image.c Log: MFH: Remove unnecessary code here Index: php4/ext/standard/image.c diff -u php4/ext/standard/image.c:1.72.2.5 php4/ext/standard/image.c:1.72.2.6 --- php4/ext/standard/image.c:1.72.2.5 Thu Dec 5 07:47:22 2002 +++ php4/ext/standard/image.c Thu Dec 5 10:52:35 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: image.c,v 1.72.2.5 2002/12/05 12:47:22 helly Exp $ */ +/* $Id: image.c,v 1.72.2.6 2002/12/05 15:52:35 helly Exp $ */ #include "php.h" #include <stdio.h> @@ -910,9 +910,7 @@ } zval_dtor(*info); - if (array_init(*info) == FAILURE) { - RETURN_FALSE; - } + array_init(*info); convert_to_string_ex(arg1); break; @@ -976,11 +974,7 @@ 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);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php