Change FETCH_RESOURCE to return false on error instead of null, for

consistency with other error situations
This commit is contained in:
Zeev Suraski 2004-02-11 11:52:33 +00:00
parent 0018eed69f
commit 3d622f99c1

View file

@ -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) \