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

12

/PHP_TRUNK/Zend/
H A Dzend_list.h74 #define ZEND_VERIFY_RESOURCE(rsrc) \
75 if (!rsrc) { \
79 #define ZEND_FETCH_RESOURCE(rsrc, rsrc_type, passed_id, default_id, resource_type_name, resource_type) \
80 rsrc = (rsrc_type) zend_fetch_resource(passed_id TSRMLS_CC, default_id, resource_type_name, NULL, 1, resource_type); \
81 ZEND_VERIFY_RESOURCE(rsrc);
83 #define ZEND_FETCH_RESOURCE_NO_RETURN(rsrc, rsrc_type, passed_id, default_id, resource_type_name, resource_type) \
84 (rsrc = (rsrc_type) zend_fetch_resource(passed_id TSRMLS_CC, default_id, resource_type_name, NULL, 1, resource_type))
86 #define ZEND_FETCH_RESOURCE2(rsrc, rsrc_type, passed_id, default_id, resource_type_name, resource_type1, resource_type2) \
87 rsrc = (rsrc_type) zend_fetch_resource(passed_id TSRMLS_CC, default_id, resource_type_name, NULL, 2, resource_type1, resource_type2); \
88 ZEND_VERIFY_RESOURCE(rsrc);
[all...]
/PHP_TRUNK/ext/shmop/
H A Dshmop.c116 static void rsclean(zend_resource *rsrc TSRMLS_DC)
118 struct php_shmop *shmop = (struct php_shmop *)rsrc->ptr;
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_persist.c50 static void istream_dtor(zend_resource *rsrc TSRMLS_DC)
52 php_istream *stm = (php_istream *)rsrc->ptr;
H A Dcom_wrapper.c57 static void dispatch_dtor(zend_resource *rsrc TSRMLS_DC)
59 php_dispatchex *disp = (php_dispatchex *)rsrc->ptr;
/PHP_TRUNK/ext/curl/
H A Dmulti.c332 void _php_curl_multi_close(zend_resource *rsrc TSRMLS_DC) /* {{{ */
334 php_curlm *mh = (php_curlm *)rsrc->ptr;
350 rsrc->ptr = NULL;
H A Dshare.c116 void _php_curl_share_close(zend_resource *rsrc TSRMLS_DC) /* {{{ */
118 php_curlsh *sh = (php_curlsh *)rsrc->ptr;
122 rsrc->ptr = NULL;
/PHP_TRUNK/ext/enchant/
H A Denchant.c43 zend_resource *rsrc; member in struct:_broker_struct
50 zend_resource *rsrc; member in struct:_dict_struct
235 static void php_enchant_broker_free(zend_resource *rsrc TSRMLS_DC) /* {{{ */
237 if (rsrc->ptr) {
238 enchant_broker *broker = (enchant_broker *)rsrc->ptr;
249 zend_list_free(pdict->rsrc);
266 static void php_enchant_dict_free(zend_resource *rsrc TSRMLS_DC) /* {{{ */
269 if (rsrc->ptr) {
270 enchant_dict *pdict = (enchant_dict *)rsrc->ptr;
280 zend_list_delete(pbroker->rsrc);
[all...]
/PHP_TRUNK/ext/fileinfo/
H A Dfileinfo.c188 void finfo_resource_destructor(zend_resource *rsrc TSRMLS_DC) /* {{{ */
190 if (rsrc->ptr) {
191 php_fileinfo *finfo = (php_fileinfo *) rsrc->ptr;
193 efree(rsrc->ptr);
194 rsrc->ptr = NULL;
/PHP_TRUNK/ext/interbase/
H A Dibase_blobs.c35 static void _php_ibase_free_blob(zend_resource *rsrc TSRMLS_DC) /* {{{ */
37 ibase_blob *ib_blob = (ibase_blob *)rsrc->ptr;
H A Dibase_events.c72 static void _php_ibase_free_event_rsrc(zend_resource *rsrc TSRMLS_DC) /* {{{ */
74 ibase_event *e = (ibase_event *) rsrc->ptr;
H A Dibase_service.c39 static void _php_ibase_free_service(zend_resource *rsrc TSRMLS_DC) /* {{{ */
41 ibase_service *sv = (ibase_service *) rsrc->ptr;
H A Dinterbase.c626 static void php_ibase_commit_link_rsrc(zend_resource *rsrc TSRMLS_DC) /* {{{ */
628 ibase_db_link *link = (ibase_db_link *) rsrc->ptr;
634 static void _php_ibase_close_link(zend_resource *rsrc TSRMLS_DC) /* {{{ */
636 ibase_db_link *link = (ibase_db_link *) rsrc->ptr;
648 static void _php_ibase_close_plink(zend_resource *rsrc TSRMLS_DC) /* {{{ */
650 ibase_db_link *link = (ibase_db_link *) rsrc->ptr;
663 static void _php_ibase_free_trans(zend_resource *rsrc TSRMLS_DC) /* {{{ */
665 ibase_trans *trans = (ibase_trans *)rsrc->ptr;
/PHP_TRUNK/ext/mysql/
H A Dphp_mysql.c416 static void _free_mysql_result(zend_resource *rsrc TSRMLS_DC)
418 MYSQL_RES *mysql_result = (MYSQL_RES *)rsrc->ptr;
453 static void _close_mysql_link(zend_resource *rsrc TSRMLS_DC)
455 php_mysql_conn *link = (php_mysql_conn *)rsrc->ptr;
468 static void _close_mysql_plink(zend_resource *rsrc TSRMLS_DC)
470 php_mysql_conn *link = (php_mysql_conn *)rsrc->ptr;
/PHP_TRUNK/ext/odbc/
H A Dbirdstep.c166 static void _close_birdstep_link(zend_rsrc_list_entry *rsrc TSRMLS_DC)
168 VConn *conn = (VConn *)rsrc->ptr;
175 static void _free_birdstep_result(zend_rsrc_list_entry *rsrc TSRMLS_DC)
177 Vresult *res = (Vresult *)rsrc->ptr;
/PHP_TRUNK/ext/pspell/
H A Dpspell.c216 static void php_pspell_close(zend_resource *rsrc TSRMLS_DC)
218 PspellManager *manager = (PspellManager *)rsrc->ptr;
223 static void php_pspell_close_config(zend_resource *rsrc TSRMLS_DC)
225 PspellConfig *config = (PspellConfig *)rsrc->ptr;
/PHP_TRUNK/ext/sybase_ct/
H A Dphp_sybase_ct.c309 static void php_free_sybase_result(zend_rsrc_list_entry *rsrc TSRMLS_DC)
311 sybase_result *result = (sybase_result *)rsrc->ptr;
324 static void _close_sybase_link(zend_rsrc_list_entry *rsrc TSRMLS_DC)
326 sybase_link *sybase_ptr = (sybase_link *)rsrc->ptr;
359 static void _close_sybase_plink(zend_rsrc_list_entry *rsrc TSRMLS_DC)
361 sybase_link *sybase_ptr = (sybase_link *)rsrc->ptr;
/PHP_TRUNK/ext/sysvsem/
H A Dsysvsem.c136 static void release_sysvsem_sem(zend_resource *rsrc TSRMLS_DC)
138 sysvsem_sem *sem_ptr = (sysvsem_sem *)rsrc->ptr;
/PHP_TRUNK/ext/xmlrpc/
H A Dxmlrpc-epi-php.c281 static void xmlrpc_server_destructor(zend_resource *rsrc TSRMLS_DC)
283 if (rsrc && rsrc->ptr) {
284 rsrc->gc.refcount++;
285 destroy_server_data((xmlrpc_server_data*) rsrc->ptr TSRMLS_CC);
286 rsrc->gc.refcount--;
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c1030 static void php_zip_free_dir(zend_resource *rsrc TSRMLS_DC)
1032 zip_rsrc * zip_int = (zip_rsrc *) rsrc->ptr;
1042 efree(rsrc->ptr);
1044 rsrc->ptr = NULL;
1050 static void php_zip_free_entry(zend_resource *rsrc TSRMLS_DC)
1052 zip_read_rsrc *zr_rsrc = (zip_read_rsrc *) rsrc->ptr;
1060 rsrc->ptr = NULL;
/PHP_TRUNK/main/streams/
H A Dstreams.c80 zend_resource *rsrc = Z_RES_P(el); local
82 if (rsrc->type != le_pstream) {
86 stream = (php_stream*)rsrc->ptr;
1625 static void stream_resource_regular_dtor(zend_resource *rsrc TSRMLS_DC)
1627 php_stream *stream = (php_stream*)rsrc->ptr;
1632 static void stream_resource_persistent_dtor(zend_resource *rsrc TSRMLS_DC)
1634 php_stream *stream = (php_stream*)rsrc->ptr;
H A Duserspace.c73 static void stream_wrapper_dtor(zend_resource *rsrc TSRMLS_DC)
75 struct php_user_stream_wrapper * uwrap = (struct php_user_stream_wrapper*)rsrc->ptr;
492 zend_resource *rsrc; local
506 rsrc = ZEND_REGISTER_RESOURCE(NULL, uwrap, le_protocols);
524 zend_list_delete(rsrc);
/PHP_TRUNK/ext/mssql/
H A Dphp_mssql.c343 static void _free_mssql_statement(zend_rsrc_list_entry *rsrc TSRMLS_DC)
345 mssql_statement *statement = (mssql_statement *)rsrc->ptr;
358 static void _free_mssql_result(zend_rsrc_list_entry *rsrc TSRMLS_DC)
360 mssql_result *result = (mssql_result *)rsrc->ptr;
382 static void _close_mssql_link(zend_rsrc_list_entry *rsrc TSRMLS_DC)
384 mssql_link *mssql_ptr = (mssql_link *)rsrc->ptr;
397 static void _close_mssql_plink(zend_rsrc_list_entry *rsrc TSRMLS_DC)
399 mssql_link *mssql_ptr = (mssql_link *)rsrc->ptr;
/PHP_TRUNK/ext/dba/
H A Ddba.c442 static void dba_close_rsrc(zend_resource *rsrc TSRMLS_DC)
444 dba_info *info = (dba_info *)rsrc->ptr;
458 static void dba_close_pe_rsrc(zend_resource *rsrc TSRMLS_DC)
460 dba_info *info = (dba_info *)rsrc->ptr;
/PHP_TRUNK/ext/sysvmsg/
H A Dsysvmsg.c122 static void sysvmsg_release(zend_resource *rsrc TSRMLS_DC)
124 sysvmsg_queue_t *mq = (sysvmsg_queue_t *) rsrc->ptr;
/PHP_TRUNK/ext/sysvshm/
H A Dsysvshm.c125 static void php_release_sysvshm(zend_resource *rsrc TSRMLS_DC)
127 sysvshm_shm *shm_ptr = (sysvshm_shm *) rsrc->ptr;

Completed in 52 milliseconds

12