mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Change FETCH_RESOURCE to return false on error instead of null, for
consistency with other error situations
This commit is contained in:
parent
0018eed69f
commit
3d622f99c1
1 changed files with 1 additions and 1 deletions
|
@ -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) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue