summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2003-04-03 03:07:58 +0000
committerSterling Hughes <sterling@php.net>2003-04-03 03:07:58 +0000
commit4fa866d667a4d6d244f65b4383aaa5a97b57edeb (patch)
tree0f9ff13426fee920a557896dabcf54e9d1115360 /Zend
parent929caf1060c2361dc909b4fcfeeeed1613464248 (diff)
downloadphp-git-4fa866d667a4d6d244f65b4383aaa5a97b57edeb.tar.gz
i will not commit before 12:00
i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00 i will not commit before 12:00
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_list.c16
-rw-r--r--Zend/zend_list.h2
2 files changed, 0 insertions, 18 deletions
diff --git a/Zend/zend_list.c b/Zend/zend_list.c
index 6b7c3e5fa7..560c9c18b8 100644
--- a/Zend/zend_list.c
+++ b/Zend/zend_list.c
@@ -79,22 +79,6 @@ ZEND_API void *_zend_list_find(int id, int *type TSRMLS_DC)
}
}
-ZEND_API int zend_list_id_by_pointer(void *p, int type TSRMLS_DC)
-{
- zend_rsrc_list_entry *le;
- HashPosition pos;
-
- for (zend_hash_internal_pointer_reset_ex(&EG(regular_list), &pos);
- zend_hash_get_current_data_ex(&EG(regular_list), (void *) &le, &pos) == SUCCESS;
- zend_hash_move_forward_ex(&EG(regular_list), &pos)) {
- if (le->type == type && le->ptr == p) {
- return le->id;
- }
- }
-
- return -1;
-}
-
ZEND_API int _zend_list_addref(int id TSRMLS_DC)
{
zend_rsrc_list_entry *le;
diff --git a/Zend/zend_list.h b/Zend/zend_list.h
index c6c3b1f8f4..05f5d50bf8 100644
--- a/Zend/zend_list.h
+++ b/Zend/zend_list.h
@@ -34,7 +34,6 @@ typedef struct _zend_rsrc_list_entry {
void *ptr;
int type;
int refcount;
- int id;
} zend_rsrc_list_entry;
typedef void (*rsrc_dtor_func_t)(zend_rsrc_list_entry *rsrc TSRMLS_DC);
@@ -75,7 +74,6 @@ ZEND_API int zend_list_insert(void *ptr, int type);
ZEND_API int _zend_list_addref(int id TSRMLS_DC);
ZEND_API int _zend_list_delete(int id TSRMLS_DC);
ZEND_API void *_zend_list_find(int id, int *type TSRMLS_DC);
-ZEND_API int zend_list_id_by_pointer(void *p, int type TSRMLS_DC);
#define zend_list_addref(id) _zend_list_addref(id TSRMLS_CC)
#define zend_list_delete(id) _zend_list_delete(id TSRMLS_CC)