mirror of
https://github.com/php/php-src.git
synced 2026-04-03 22:22:18 +02:00
Damn, forgot to commit that
This commit is contained in:
@@ -72,8 +72,14 @@ extern ZEND_API int le_index_ptr; /* list entry type for index pointers */
|
||||
RETURN_FALSE; \
|
||||
}
|
||||
|
||||
|
||||
#define ZEND_FETCH_RESOURCE(rsrc, rsrc_type, passed_id, default_id, resource_type_name, resource_type) \
|
||||
rsrc = (rsrc_type) zend_fetch_resource(passed_id, default_id, resource_type_name, resource_type); \
|
||||
ZEND_VERIFY_RESOURCE(rsrc);
|
||||
|
||||
|
||||
#define ZEND_REGISTER_RESOURCE(rsrc_result, rsrc_pointer, rsrc_type) \
|
||||
rsrc_result->value.lval = zend_list_insert(rsrc_pointer, rsrc_type); \
|
||||
rsrc_result->type = IS_RESOURCE
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user