From 3d622f99c1dff70a33905f15eef8d60fb968cb58 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Wed, 11 Feb 2004 11:52:33 +0000 Subject: [PATCH] Change FETCH_RESOURCE to return false on error instead of null, for consistency with other error situations --- Zend/zend_list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_list.h b/Zend/zend_list.h index 67b98984841..d0b9133b2e2 100644 --- a/Zend/zend_list.h +++ b/Zend/zend_list.h @@ -89,7 +89,7 @@ extern ZEND_API int le_index_ptr; /* list entry type for index pointers */ #define ZEND_VERIFY_RESOURCE(rsrc) \ if (!rsrc) { \ - RETURN_NULL(); \ + RETURN_FALSE; \ } #define ZEND_FETCH_RESOURCE(rsrc, rsrc_type, passed_id, default_id, resource_type_name, resource_type) \