summaryrefslogtreecommitdiff
path: root/ext/odbc/php_odbc.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-01-18 19:41:56 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-01-18 19:41:56 +0000
commite2868b57885dac8a36593e2154c808038adc4cef (patch)
treeedb1421b5b3d4340a0e2538b996393874575b5f6 /ext/odbc/php_odbc.c
parent72b356c1bccb511e9a3414cbfe6ff25b5a20b91f (diff)
downloadphp-git-e2868b57885dac8a36593e2154c808038adc4cef.tar.gz
Removed pointless memory allocation checks.
Diffstat (limited to 'ext/odbc/php_odbc.c')
-rw-r--r--ext/odbc/php_odbc.c9
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