helly Thu Dec 5 10:52:20 2002 EDT Modified files: /php4/ext/standard image.c Log: Remove unnecessary code here Index: php4/ext/standard/image.c diff -u php4/ext/standard/image.c:1.78 php4/ext/standard/image.c:1.79 --- php4/ext/standard/image.c:1.78 Thu Dec 5 07:39:00 2002 +++ php4/ext/standard/image.c Thu Dec 5 10:52:20 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: image.c,v 1.78 2002/12/05 12:39:00 helly Exp $ */ +/* $Id: image.c,v 1.79 2002/12/05 15:52:20 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