Skip to content

Commit 4fa866d

Browse files
author
Sterling Hughes
committed
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
1 parent 929caf1 commit 4fa866d

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

Zend/zend_list.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,22 +79,6 @@ ZEND_API void *_zend_list_find(int id, int *type TSRMLS_DC)
7979
}
8080
}
8181

82-
ZEND_API int zend_list_id_by_pointer(void *p, int type TSRMLS_DC)
83-
{
84-
zend_rsrc_list_entry *le;
85-
HashPosition pos;
86-
87-
for (zend_hash_internal_pointer_reset_ex(&EG(regular_list), &pos);
88-
zend_hash_get_current_data_ex(&EG(regular_list), (void *) &le, &pos) == SUCCESS;
89-
zend_hash_move_forward_ex(&EG(regular_list), &pos)) {
90-
if (le->type == type && le->ptr == p) {
91-
return le->id;
92-
}
93-
}
94-
95-
return -1;
96-
}
97-
9882
ZEND_API int _zend_list_addref(int id TSRMLS_DC)
9983
{
10084
zend_rsrc_list_entry *le;

Zend/zend_list.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ typedef struct _zend_rsrc_list_entry {
3434
void *ptr;
3535
int type;
3636
int refcount;
37-
int id;
3837
} zend_rsrc_list_entry;
3938

4039
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);
7574
ZEND_API int _zend_list_addref(int id TSRMLS_DC);
7675
ZEND_API int _zend_list_delete(int id TSRMLS_DC);
7776
ZEND_API void *_zend_list_find(int id, int *type TSRMLS_DC);
78-
ZEND_API int zend_list_id_by_pointer(void *p, int type TSRMLS_DC);
7977

8078
#define zend_list_addref(id) _zend_list_addref(id TSRMLS_CC)
8179
#define zend_list_delete(id) _zend_list_delete(id TSRMLS_CC)

0 commit comments

Comments
 (0)