/PHP-5.6/TSRM/ |
H A D | TSRM.h | 111 TSRM_API ts_rsrc_id ts_allocate_id(ts_rsrc_id *rsrc_id, size_t size, ts_allocate_ctor ctor, ts_allo… 158 #define TSRM_SHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)+1) argument 159 #define TSRM_UNSHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)-1) argument
|
H A D | TSRM.c | 215 TSRM_API ts_rsrc_id ts_allocate_id(ts_rsrc_id *rsrc_id, size_t size, ts_allocate_ctor ctor, ts_allo… in ts_allocate_id() argument 224 *rsrc_id = TSRM_SHUFFLE_RSRC_ID(id_count++); in ts_allocate_id() 225 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Obtained resource id %d", *rsrc_id)); in ts_allocate_id() 233 *rsrc_id = 0; in ts_allocate_id() 238 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].size = size; in ts_allocate_id() 239 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].ctor = ctor; in ts_allocate_id() 240 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].dtor = dtor; in ts_allocate_id() 241 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].done = 0; in ts_allocate_id() 265 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Successfully allocated new resource id %d", *rsrc_id)); in ts_allocate_id() 266 return *rsrc_id; in ts_allocate_id()
|
/PHP-5.6/ext/standard/ |
H A D | dir.c | 236 php_set_default_dir(dirp->rsrc_id TSRMLS_CC); in _php_do_opendir() 241 add_property_resource(return_value, "handle", dirp->rsrc_id); in _php_do_opendir() 271 int rsrc_id; in PHP_FUNCTION() local 276 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "%d is not a valid Directory resource", dirp->rsrc_id); in PHP_FUNCTION() 280 rsrc_id = dirp->rsrc_id; in PHP_FUNCTION() 281 zend_list_delete(dirp->rsrc_id); in PHP_FUNCTION() 283 if (rsrc_id == DIRG(default_dir)) { in PHP_FUNCTION() 390 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "%d is not a valid Directory resource", dirp->rsrc_id); in PHP_FUNCTION() 409 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "%d is not a valid Directory resource", dirp->rsrc_id); in PHP_NAMED_FUNCTION()
|
H A D | streamsfuncs.c | 197 zend_list_addref(context->rsrc_id); in PHP_FUNCTION() 1178 RETURN_RESOURCE(context->rsrc_id); in PHP_FUNCTION() 1250 …RETURN_RESOURCE(filter->rsrc_id = ZEND_REGISTER_RESOURCE(NULL, filter, php_file_le_stream_filter()… in apply_filter_to_stream()
|
H A D | file.c | 909 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%d is not a valid stream resource", stream->rsrc_id); in PHP_FUNCTION() 981 zend_list_delete(stream->rsrc_id); in PHP_FUNCTION()
|
/PHP-5.6/main/streams/ |
H A D | php_stream_context.h | 41 …_zval(context, zval) { ZVAL_RESOURCE(zval, (context)->rsrc_id); zend_list_addref((context)->rsrc_i… 56 int rsrc_id; /* used for auto-cleanup */ member
|
H A D | php_stream_filter_api.h | 122 int rsrc_id; member
|
H A D | streams.c | 90 stream->rsrc_id = FAILURE; in forget_persistent_resource_id_numbers() 145 (*stream)->rsrc_id = ZEND_REGISTER_RESOURCE(NULL, *stream, le_pstream); in php_stream_from_persistent_id() 148 (*stream)->rsrc_id = index; in php_stream_from_persistent_id() 333 ret->rsrc_id = ZEND_REGISTER_RESOURCE(NULL, ret, persistent_id ? le_pstream : le_stream); in _php_stream_alloc() 470 while (zend_list_delete(stream->rsrc_id) == SUCCESS) {} in _php_stream_free() 562 zend_list_delete(context->rsrc_id); in _php_stream_free() 2167 zend_list_addref(context->rsrc_id); 2170 zend_list_delete(oldcontext->rsrc_id); 2205 context->rsrc_id = ZEND_REGISTER_RESOURCE(NULL, context, php_le_stream_context(TSRMLS_C));
|
H A D | userspace.c | 294 add_property_resource(object, "context", context->rsrc_id); in user_stream_create_object() 295 zend_list_addref(context->rsrc_id); in user_stream_create_object() 529 int rsrc_id; in PHP_FUNCTION() local 543 rsrc_id = ZEND_REGISTER_RESOURCE(NULL, uwrap, le_protocols); in PHP_FUNCTION() 562 zend_list_delete(rsrc_id); in PHP_FUNCTION()
|
H A D | filter.c | 526 if (filter->rsrc_id > 0) { in php_stream_filter_remove() 527 zend_list_delete(filter->rsrc_id); in php_stream_filter_remove()
|
H A D | xp_socket.c | 758 zend_list_addref(stream->context->rsrc_id); in php_tcp_sockop_accept()
|
/PHP-5.6/Zend/ |
H A D | zend_list.c | 96 int rsrc_id; in zend_register_resource() local 98 rsrc_id = zend_list_insert(rsrc_pointer, rsrc_type TSRMLS_CC); in zend_register_resource() 101 rsrc_result->value.lval = rsrc_id; in zend_register_resource() 105 return rsrc_id; in zend_register_resource()
|
/PHP-5.6/ext/enchant/ |
H A D | enchant.c | 43 long rsrc_id; member 50 long rsrc_id; member 250 zend_list_delete(broker->dict[total]->rsrc_id); in php_enchant_broker_free() 277 zend_list_delete(pdict->pbroker->rsrc_id); in php_enchant_dict_free() 371 broker->rsrc_id = ZEND_REGISTER_RESOURCE(return_value, broker, le_enchant_broker); in PHP_FUNCTION() 573 dict->rsrc_id = ZEND_REGISTER_RESOURCE(return_value, dict, le_enchant_dict); in PHP_FUNCTION() 574 zend_list_addref(pbroker->rsrc_id); in PHP_FUNCTION() 627 dict->rsrc_id = ZEND_REGISTER_RESOURCE(return_value, dict, le_enchant_dict);
|
/PHP-5.6/main/ |
H A D | php_streams.h | 199 int rsrc_id; /* used for auto-cleanup */ member 245 #define php_stream_get_resource_id(stream) ((php_stream *)(stream))->rsrc_id 252 # define php_stream_to_zval(stream, zval) { ZVAL_RESOURCE(zval, (stream)->rsrc_id); (stream)->__exp… 255 # define php_stream_to_zval(stream, zval) { ZVAL_RESOURCE(zval, (stream)->rsrc_id); }
|
/PHP-5.6/ext/com_dotnet/ |
H A D | com_persist.c | 265 zend_list_delete(stm->stream->rsrc_id); in istream_destructor() 284 zend_list_addref(stream->rsrc_id); in php_com_wrapper_export_stream()
|
/PHP-5.6/ext/mysqlnd/ |
H A D | mysqlnd_net.c | 158 zend_hash_index_del(&EG(regular_list), net_stream->rsrc_id); in MYSQLND_METHOD() 250 zend_hash_index_del(&EG(regular_list), net_stream->rsrc_id); in MYSQLND_METHOD()
|
/PHP-5.6/ext/libxml/ |
H A D | libxml.c | 653 zend_list_addref(stream->rsrc_id); in _php_libxml_external_entity_loader()
|
/PHP-5.6/ext/openssl/ |
H A D | xp_ssl.c | 2129 zend_list_addref(stream->context->rsrc_id); in php_openssl_tcp_sockop_accept()
|
/PHP-5.6/ext/soap/ |
H A D | soap.c | 2400 zend_list_addref(context->rsrc_id); 2519 add_property_resource(this_ptr, "_stream_context", context->rsrc_id);
|