Searched refs:rsrc_id (Results 1 - 25 of 25) sorted by relevance

/PHP_5_3/TSRM/
H A DTSRM.c215 TSRM_API ts_rsrc_id ts_allocate_id(ts_rsrc_id *rsrc_id, size_t size, ts_allocate_ctor ctor, ts_allocate_dtor dtor) argument
224 *rsrc_id = TSRM_SHUFFLE_RSRC_ID(id_count++);
225 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Obtained resource id %d", *rsrc_id));
233 *rsrc_id = 0;
238 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].size = size;
239 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].ctor = ctor;
240 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].dtor = dtor;
241 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].done = 0;
265 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Successfully allocated new resource id %d", *rsrc_id));
266 return *rsrc_id;
[all...]
H A DTSRM.h107 TSRM_API ts_rsrc_id ts_allocate_id(ts_rsrc_id *rsrc_id, size_t size, ts_allocate_ctor ctor, ts_allocate_dtor dtor);
151 #define TSRM_SHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)+1)
152 #define TSRM_UNSHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)-1)
/PHP_5_3/ext/com_dotnet/
H A Dcom_persist.c268 zend_list_delete(stm->stream->rsrc_id);
287 zend_list_addref(stream->rsrc_id);
/PHP_5_3/ext/oci8/
H A Doci8.c1750 RETURN_RESOURCE(connection->rsrc_id);
1966 tmp = (php_oci_connection *)zend_list_find(connection->rsrc_id, &rsrc_type);
1969 memcmp(tmp->hash_key, hashed_details.c, hashed_details.len) == 0 && zend_list_addref(connection->rsrc_id) == SUCCESS) {
1973 connection->rsrc_id = zend_list_insert(connection, le_pconnection TSRMLS_CC);
1975 connection->rsrc_id = zend_list_insert(connection, le_pconnection);
1983 zend_list_addref(connection->rsrc_id);
1994 zend_list_addref(connection->rsrc_id);
2011 if (connection == zend_list_find(connection->rsrc_id, &rsrc_type) && rsrc_type == le_pconnection) {
2128 connection->rsrc_id = zend_list_insert(connection, le_pconnection TSRMLS_CC);
2130 connection->rsrc_id
[all...]
H A Doci8_collection.c58 zend_list_addref(collection->connection->rsrc_id);
778 zend_list_delete(collection->connection->rsrc_id);
H A Doci8_interface.c1586 zend_list_delete(connection->rsrc_id);
1960 RETURN_RESOURCE(connection->rsrc_id);
H A Doci8_lob.c73 zend_list_addref(descriptor->connection->rsrc_id);
712 zend_list_delete(descriptor->connection->rsrc_id);
H A Doci8_statement.c98 zend_list_addref(statement->connection->rsrc_id);
801 zend_list_delete(statement->connection->rsrc_id);
H A Dphp_oci8_int.h142 int rsrc_id; /* resource ID */ member in struct:__anon109
/PHP_5_3/ext/openssl/
H A Dxp_ssl.c634 zend_list_addref(stream->context->rsrc_id);
/PHP_5_3/ext/sqlite/
H A Dsqlite.c154 long rsrc_id; member in struct:php_sqlite_db
720 zend_list_delete(res->db->rsrc_id);
729 if (res->db->rsrc_id == ((struct php_sqlite_db*)db)->rsrc_id) {
753 db->rsrc_id = FAILURE;
1148 if (intern->u.db->rsrc_id) {
1149 zend_list_delete(intern->u.db->rsrc_id);
1517 db->rsrc_id = ZEND_REGISTER_RESOURCE(object ? NULL : return_value, db, persistent_id ? le_sqlite_pdb : le_sqlite_db);
1588 if (db->rsrc_id == FAILURE) {
1590 db->rsrc_id
[all...]
/PHP_5_3/ext/standard/
H A Ddir.c232 php_set_default_dir(dirp->rsrc_id TSRMLS_CC);
237 add_property_resource(return_value, "handle", dirp->rsrc_id);
267 int rsrc_id; local
272 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%d is not a valid Directory resource", dirp->rsrc_id);
276 rsrc_id = dirp->rsrc_id;
277 zend_list_delete(dirp->rsrc_id);
279 if (rsrc_id == DIRG(default_dir)) {
390 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%d is not a valid Directory resource", dirp->rsrc_id);
409 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%d is not a valid Directory resource", dirp->rsrc_id);
[all...]
H A Dfile.c953 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%d is not a valid stream resource", stream->rsrc_id);
958 zend_list_delete(stream->rsrc_id);
1059 zend_list_delete(stream->rsrc_id);
H A Dstreamsfuncs.c195 zend_list_addref(context->rsrc_id);
1176 RETURN_RESOURCE(context->rsrc_id);
1248 RETURN_RESOURCE(filter->rsrc_id = ZEND_REGISTER_RESOURCE(NULL, filter, php_file_le_stream_filter()));
/PHP_5_3/main/
H A Dphp_streams.h201 int rsrc_id; /* used for auto-cleanup */ member in struct:_php_stream
245 #define php_stream_get_resource_id(stream) (stream)->rsrc_id
252 # define php_stream_to_zval(stream, zval) { ZVAL_RESOURCE(zval, (stream)->rsrc_id); (stream)->__exposed++; }
255 # define php_stream_to_zval(stream, zval) { ZVAL_RESOURCE(zval, (stream)->rsrc_id); }
/PHP_5_3/main/streams/
H A Dfilter.c526 if (filter->rsrc_id > 0) {
527 zend_list_delete(filter->rsrc_id);
H A Dphp_stream_context.h41 #define php_stream_context_to_zval(context, zval) { ZVAL_RESOURCE(zval, (context)->rsrc_id); zend_list_addref((context)->rsrc_id); }
57 int rsrc_id; /* used for auto-cleanup */ member in struct:_php_stream_context
H A Dphp_stream_filter_api.h122 int rsrc_id; member in struct:_php_stream_filter
H A Dstreams.c90 stream->rsrc_id = FAILURE;
136 (*stream)->rsrc_id = ZEND_REGISTER_RESOURCE(NULL, *stream, le_pstream);
139 (*stream)->rsrc_id = index;
324 ret->rsrc_id = ZEND_REGISTER_RESOURCE(NULL, ret, persistent_id ? le_pstream : le_stream);
399 while (zend_list_delete(stream->rsrc_id) == SUCCESS) {}
496 zend_list_delete(context->rsrc_id);
2095 zend_list_addref(context->rsrc_id);
2098 zend_list_delete(oldcontext->rsrc_id);
2137 context->rsrc_id = ZEND_REGISTER_RESOURCE(NULL, context, php_le_stream_context());
H A Duserspace.c335 add_property_resource(us->object, "context", context->rsrc_id);
336 zend_list_addref(context->rsrc_id);
434 add_property_resource(us->object, "context", context->rsrc_id);
435 zend_list_addref(context->rsrc_id);
496 int rsrc_id; local
510 rsrc_id = ZEND_REGISTER_RESOURCE(NULL, uwrap, le_protocols);
529 zend_list_delete(rsrc_id);
1098 add_property_resource(object, "context", context->rsrc_id);
1099 zend_list_addref(context->rsrc_id);
1152 add_property_resource(object, "context", context->rsrc_id);
[all...]
H A Dxp_socket.c740 zend_list_addref(stream->context->rsrc_id);
/PHP_5_3/Zend/
H A Dzend_list.c97 int rsrc_id; local
99 rsrc_id = zend_list_insert(rsrc_pointer, rsrc_type);
102 rsrc_result->value.lval = rsrc_id;
106 return rsrc_id;
/PHP_5_3/ext/mysqlnd/
H A Dmysqlnd_net.c182 zend_hash_index_del(&EG(regular_list), net->stream->rsrc_id);
/PHP_5_3/ext/enchant/
H A Denchant.c43 long rsrc_id; member in struct:_broker_struct
50 long rsrc_id; member in struct:_dict_struct
250 zend_list_delete(broker->dict[total]->rsrc_id);
277 zend_list_delete(pdict->pbroker->rsrc_id);
371 broker->rsrc_id = ZEND_REGISTER_RESOURCE(return_value, broker, le_enchant_broker);
569 dict->rsrc_id = ZEND_REGISTER_RESOURCE(return_value, dict, le_enchant_dict);
570 zend_list_addref(pbroker->rsrc_id);
627 dict->rsrc_id = ZEND_REGISTER_RESOURCE(return_value, dict, le_enchant_dict);
/PHP_5_3/ext/soap/
H A Dsoap.c2562 zend_list_addref(context->rsrc_id);
2682 add_property_resource(this_ptr, "_stream_context", context->rsrc_id);

Completed in 57 milliseconds