cvs: php4 /ext/standard image.c

From: Date: Thu, 05 Dec 2002 15:52:20 +0000
Subject: cvs: php4 /ext/standard image.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16931@lists.php.net to get a copy of this message
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);

« previous php.cvs (#16931) next »