diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-18 19:41:56 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-18 19:41:56 +0000 |
commit | e2868b57885dac8a36593e2154c808038adc4cef (patch) | |
tree | edb1421b5b3d4340a0e2538b996393874575b5f6 /ext/odbc/php_odbc.c | |
parent | 72b356c1bccb511e9a3414cbfe6ff25b5a20b91f (diff) | |
download | php-git-e2868b57885dac8a36593e2154c808038adc4cef.tar.gz |
Removed pointless memory allocation checks.
Diffstat (limited to 'ext/odbc/php_odbc.c')
-rw-r--r-- | ext/odbc/php_odbc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 575aff57b5..273ec51b95 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -1396,9 +1396,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type) RETURN_FALSE; } - if (array_init(return_value)==FAILURE) { - RETURN_FALSE; - } + array_init(return_value); #ifdef HAVE_SQL_EXTENDED_FETCH if (result->fetch_abs) { @@ -1552,10 +1550,7 @@ PHP_FUNCTION(odbc_fetch_into) } if (Z_TYPE_PP(pv_res_arr) != IS_ARRAY) { - if (array_init(*pv_res_arr) == FAILURE) { - php_error(E_WARNING, "Can't convert to type Array"); - RETURN_FALSE; - } + array_init(*pv_res_arr); } #ifdef HAVE_SQL_EXTENDED_FETCH |