/PHP-5.3/Zend/ |
H A D | zend_list.h | 39 typedef void (*rsrc_dtor_func_t)(zend_rsrc_list_entry *rsrc TSRMLS_DC); 40 #define ZEND_RSRC_DTOR_FUNC(name) void name(zend_rsrc_list_entry *rsrc TSRMLS_DC) 90 #define ZEND_VERIFY_RESOURCE(rsrc) \ argument 91 if (!rsrc) { \ 95 #define ZEND_FETCH_RESOURCE(rsrc, rsrc_type, passed_id, default_id, resource_type_name, resource_ty… argument 96 …rsrc = (rsrc_type) zend_fetch_resource(passed_id TSRMLS_CC, default_id, resource_type_name, NULL, … 97 ZEND_VERIFY_RESOURCE(rsrc); 99 #define ZEND_FETCH_RESOURCE_NO_RETURN(rsrc, rsrc_type, passed_id, default_id, resource_type_name, r… argument 100 …(rsrc = (rsrc_type) zend_fetch_resource(passed_id TSRMLS_CC, default_id, resource_type_name, NULL,… 102 #define ZEND_FETCH_RESOURCE2(rsrc, rsrc_type, passed_id, default_id, resource_type_name, resource_t… argument [all …]
|
/PHP-5.3/ext/fileinfo/ |
H A D | fileinfo.c | 191 void finfo_resource_destructor(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */ in finfo_resource_destructor() 193 if (rsrc->ptr) { in finfo_resource_destructor() 194 struct php_fileinfo *finfo = (struct php_fileinfo *) rsrc->ptr; in finfo_resource_destructor() 196 efree(rsrc->ptr); in finfo_resource_destructor() 197 rsrc->ptr = NULL; in finfo_resource_destructor()
|
/PHP-5.3/ext/curl/ |
H A D | multi.c | 339 void _php_curl_multi_close(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */ in _php_curl_multi_close() 341 php_curlm *mh = (php_curlm *) rsrc->ptr; in _php_curl_multi_close() 357 rsrc->ptr = NULL; in _php_curl_multi_close()
|
/PHP-5.3/ext/enchant/ |
H A D | enchant.c | 239 static void php_enchant_broker_free(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */ in php_enchant_broker_free() 241 if (rsrc->ptr) { in php_enchant_broker_free() 242 enchant_broker *broker = (enchant_broker *)rsrc->ptr; in php_enchant_broker_free() 266 static void php_enchant_dict_free(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */ in php_enchant_dict_free() 269 if (rsrc->ptr) { in php_enchant_dict_free() 270 enchant_dict *pdict = (enchant_dict *)rsrc->ptr; in php_enchant_dict_free()
|
/PHP-5.3/ext/shmop/ |
H A D | shmop.c | 126 static void rsclean(zend_rsrc_list_entry *rsrc TSRMLS_DC) 128 struct php_shmop *shmop = (struct php_shmop *)rsrc->ptr;
|
/PHP-5.3/ext/sysvsem/ |
H A D | sysvsem.c | 135 static void release_sysvsem_sem(zend_rsrc_list_entry *rsrc TSRMLS_DC) 137 sysvsem_sem *sem_ptr = (sysvsem_sem *)rsrc->ptr;
|
/PHP-5.3/ext/odbc/ |
H A D | birdstep.c | 166 static void _close_birdstep_link(zend_rsrc_list_entry *rsrc TSRMLS_DC) in _close_birdstep_link() 168 VConn *conn = (VConn *)rsrc->ptr; in _close_birdstep_link() 175 static void _free_birdstep_result(zend_rsrc_list_entry *rsrc TSRMLS_DC) in _free_birdstep_result() 177 Vresult *res = (Vresult *)rsrc->ptr; in _free_birdstep_result()
|
/PHP-5.3/ext/interbase/ |
H A D | interbase.c | 632 static void php_ibase_commit_link_rsrc(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */ in php_ibase_commit_link_rsrc() 634 ibase_db_link *link = (ibase_db_link *) rsrc->ptr; in php_ibase_commit_link_rsrc() 640 static void _php_ibase_close_link(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */ in _php_ibase_close_link() 642 ibase_db_link *link = (ibase_db_link *) rsrc->ptr; in _php_ibase_close_link() 654 static void _php_ibase_close_plink(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */ in _php_ibase_close_plink() 656 ibase_db_link *link = (ibase_db_link *) rsrc->ptr; in _php_ibase_close_plink() 669 static void _php_ibase_free_trans(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */ in _php_ibase_free_trans() 671 ibase_trans *trans = (ibase_trans *)rsrc->ptr; in _php_ibase_free_trans()
|
H A D | ibase_events.c | 75 static void _php_ibase_free_event_rsrc(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */ in _php_ibase_free_event_rsrc() 77 ibase_event *e = (ibase_event *) rsrc->ptr; in _php_ibase_free_event_rsrc()
|
H A D | ibase_blobs.c | 37 static void _php_ibase_free_blob(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */ in _php_ibase_free_blob() 39 ibase_blob *ib_blob = (ibase_blob *)rsrc->ptr; in _php_ibase_free_blob()
|
H A D | ibase_service.c | 41 static void _php_ibase_free_service(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */ in _php_ibase_free_service() 43 ibase_service *sv = (ibase_service *) rsrc->ptr; in _php_ibase_free_service()
|
/PHP-5.3/ext/sysvshm/ |
H A D | sysvshm.c | 125 static void php_release_sysvshm(zend_rsrc_list_entry *rsrc TSRMLS_DC) in php_release_sysvshm() 127 sysvshm_shm *shm_ptr = (sysvshm_shm *) rsrc->ptr; in php_release_sysvshm()
|
/PHP-5.3/ext/pspell/ |
H A D | pspell.c | 216 static void php_pspell_close(zend_rsrc_list_entry *rsrc TSRMLS_DC) in ZEND_GET_MODULE() 218 PspellManager *manager = (PspellManager *)rsrc->ptr; in ZEND_GET_MODULE() 223 static void php_pspell_close_config(zend_rsrc_list_entry *rsrc TSRMLS_DC) in php_pspell_close_config() 225 PspellConfig *config = (PspellConfig *)rsrc->ptr; in php_pspell_close_config()
|
/PHP-5.3/ext/sysvmsg/ |
H A D | sysvmsg.c | 122 static void sysvmsg_release(zend_rsrc_list_entry *rsrc TSRMLS_DC) in ZEND_GET_MODULE() 124 sysvmsg_queue_t * mq = (sysvmsg_queue_t *) rsrc->ptr; in ZEND_GET_MODULE()
|
/PHP-5.3/ext/mssql/ |
H A D | php_mssql.c | 338 static void _free_mssql_statement(zend_rsrc_list_entry *rsrc TSRMLS_DC) in _free_mssql_statement() 340 mssql_statement *statement = (mssql_statement *)rsrc->ptr; in _free_mssql_statement() 353 static void _free_mssql_result(zend_rsrc_list_entry *rsrc TSRMLS_DC) in _free_mssql_result() 355 mssql_result *result = (mssql_result *)rsrc->ptr; in _free_mssql_result() 377 static void _close_mssql_link(zend_rsrc_list_entry *rsrc TSRMLS_DC) in _close_mssql_link() 379 mssql_link *mssql_ptr = (mssql_link *)rsrc->ptr; in _close_mssql_link() 392 static void _close_mssql_plink(zend_rsrc_list_entry *rsrc TSRMLS_DC) in _close_mssql_plink() 394 mssql_link *mssql_ptr = (mssql_link *)rsrc->ptr; in _close_mssql_plink()
|
/PHP-5.3/ext/dba/ |
H A D | dba.c | 423 static void dba_close_rsrc(zend_rsrc_list_entry *rsrc TSRMLS_DC) in dba_close_rsrc() 425 dba_info *info = (dba_info *)rsrc->ptr; in dba_close_rsrc() 439 static void dba_close_pe_rsrc(zend_rsrc_list_entry *rsrc TSRMLS_DC) in dba_close_pe_rsrc() 441 dba_info *info = (dba_info *)rsrc->ptr; in dba_close_pe_rsrc()
|
/PHP-5.3/main/streams/ |
H A D | streams.c | 76 static int forget_persistent_resource_id_numbers(zend_rsrc_list_entry *rsrc TSRMLS_DC) in forget_persistent_resource_id_numbers() 80 if (Z_TYPE_P(rsrc) != le_pstream) { in forget_persistent_resource_id_numbers() 84 stream = (php_stream*)rsrc->ptr; in forget_persistent_resource_id_numbers() 1542 static void stream_resource_regular_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) in stream_resource_regular_dtor() 1544 php_stream *stream = (php_stream*)rsrc->ptr; in stream_resource_regular_dtor() 1549 static void stream_resource_persistent_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) in stream_resource_persistent_dtor() 1551 php_stream *stream = (php_stream*)rsrc->ptr; in stream_resource_persistent_dtor()
|
/PHP-5.3/ext/com_dotnet/ |
H A D | com_wrapper.c | 57 static void dispatch_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) in dispatch_dtor() 59 php_dispatchex *disp = (php_dispatchex *)rsrc->ptr; in dispatch_dtor()
|
H A D | com_persist.c | 50 static void istream_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) in istream_dtor() 52 php_istream *stm = (php_istream *)rsrc->ptr; in istream_dtor()
|
/PHP-5.3/ext/xmlrpc/ |
H A D | xmlrpc-epi-php.c | 284 static void xmlrpc_server_destructor(zend_rsrc_list_entry *rsrc TSRMLS_DC) in xmlrpc_server_destructor() 286 if (rsrc && rsrc->ptr) { in xmlrpc_server_destructor() 287 destroy_server_data((xmlrpc_server_data*) rsrc->ptr TSRMLS_CC); in xmlrpc_server_destructor()
|
/PHP-5.3/ext/zip/ |
H A D | php_zip.c | 1132 static void php_zip_free_dir(zend_rsrc_list_entry *rsrc TSRMLS_DC) in php_zip_free_dir() 1134 zip_rsrc * zip_int = (zip_rsrc *) rsrc->ptr; in php_zip_free_dir() 1144 efree(rsrc->ptr); in php_zip_free_dir() 1146 rsrc->ptr = NULL; in php_zip_free_dir() 1152 static void php_zip_free_entry(zend_rsrc_list_entry *rsrc TSRMLS_DC) in php_zip_free_entry() 1154 zip_read_rsrc *zr_rsrc = (zip_read_rsrc *) rsrc->ptr; in php_zip_free_entry() 1168 rsrc->ptr = NULL; in php_zip_free_entry()
|
/PHP-5.3/ext/sybase_ct/ |
H A D | php_sybase_ct.c | 309 static void php_free_sybase_result(zend_rsrc_list_entry *rsrc TSRMLS_DC) in php_free_sybase_result() 311 sybase_result *result = (sybase_result *)rsrc->ptr; in php_free_sybase_result() 324 static void _close_sybase_link(zend_rsrc_list_entry *rsrc TSRMLS_DC) in _close_sybase_link() 326 sybase_link *sybase_ptr = (sybase_link *)rsrc->ptr; in _close_sybase_link() 359 static void _close_sybase_plink(zend_rsrc_list_entry *rsrc TSRMLS_DC) in _close_sybase_plink() 361 sybase_link *sybase_ptr = (sybase_link *)rsrc->ptr; in _close_sybase_plink()
|
/PHP-5.3/ext/mysql/ |
H A D | php_mysql.c | 413 static void _free_mysql_result(zend_rsrc_list_entry *rsrc TSRMLS_DC) in _free_mysql_result() 415 MYSQL_RES *mysql_result = (MYSQL_RES *)rsrc->ptr; in _free_mysql_result() 450 static void _close_mysql_link(zend_rsrc_list_entry *rsrc TSRMLS_DC) in _close_mysql_link() 452 php_mysql_conn *link = (php_mysql_conn *)rsrc->ptr; in _close_mysql_link() 465 static void _close_mysql_plink(zend_rsrc_list_entry *rsrc TSRMLS_DC) in _close_mysql_plink() 467 php_mysql_conn *link = (php_mysql_conn *)rsrc->ptr; in _close_mysql_plink()
|
/PHP-5.3/ext/ldap/ |
H A D | ldap.c | 92 static void _close_ldap_link(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */ in ZEND_GET_MODULE() 94 ldap_linkdata *ld = (ldap_linkdata *)rsrc->ptr; in ZEND_GET_MODULE() 108 static void _free_ldap_result(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */ in _free_ldap_result() 110 LDAPMessage *result = (LDAPMessage *)rsrc->ptr; in _free_ldap_result() 115 static void _free_ldap_result_entry(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */ in _free_ldap_result_entry() 117 ldap_resultentry *entry = (ldap_resultentry *)rsrc->ptr; in _free_ldap_result_entry()
|
/PHP-5.3/ext/gmp/ |
H A D | gmp.c | 311 static void _php_gmpnum_free(zend_rsrc_list_entry *rsrc TSRMLS_DC); 1626 static void _php_gmpnum_free(zend_rsrc_list_entry *rsrc TSRMLS_DC) 1628 mpz_t *gmpnum = (mpz_t *)rsrc->ptr;
|