summaryrefslogtreecommitdiff
path: root/ext/swf/swf.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2003-01-17 16:33:01 +0000
committerAndrey Hristov <andrey@php.net>2003-01-17 16:33:01 +0000
commit7dd7b03aa8f314369f7c490e6b4370920b0eca61 (patch)
treed3c7b32f59bddd72cc7f7bf99c1fd4672b35c2ce /ext/swf/swf.c
parentfb6517e8ab9d1630ed75822337a6ad6c5b6f2460 (diff)
downloadphp-git-7dd7b03aa8f314369f7c490e6b4370920b0eca61.tar.gz
Removed pointless checks around array_init().
Diffstat (limited to 'ext/swf/swf.c')
-rw-r--r--ext/swf/swf.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/ext/swf/swf.c b/ext/swf/swf.c
index d3143c375b..828a1cf1bd 100644
--- a/ext/swf/swf.c
+++ b/ext/swf/swf.c
@@ -908,10 +908,8 @@ PHP_FUNCTION(swf_getfontinfo)
{
float A_height, x_height;
swf_getfontinfo(&A_height, &x_height);
- if (array_init(return_value) == FAILURE) {
- php_error(E_WARNING, "Cannot initialize return value from swf_getfontinfo");
- RETURN_FALSE;
- }
+
+ array_init(return_value);
add_assoc_double(return_value, "Aheight", A_height);
add_assoc_double(return_value, "xheight", x_height);
}
@@ -978,10 +976,8 @@ PHP_FUNCTION(swf_getbitmapinfo)
convert_to_long_ex(bitmapid);
size = swf_getbitmapinfo(Z_LVAL_PP(bitmapid), &width, &height);
- if (array_init(return_value) == FAILURE) {
- php_error(E_WARNING, "Cannot initialize return value from swf_getbitmapinfo");
- RETURN_FALSE;
- }
+
+ array_init(return_value);
add_assoc_long(return_value, "size", size);
add_assoc_long(return_value, "width", width);