summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 595a27c4c5..b62a696591 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -678,62 +678,6 @@ zend_bool zend_is_function_or_method_call(znode *variable)
return ((type & ZEND_PARSED_METHOD_CALL) || (type == ZEND_PARSED_FUNCTION_CALL));
}
-
-void zend_do_begin_import(TSRMLS_D)
-{
- zend_llist_init(&CG(import_commands), sizeof(zend_op), NULL, 0);
-}
-
-
-void zend_do_import(int type, znode *what TSRMLS_DC)
-{
- zend_op opline;
-
- init_op(&opline TSRMLS_CC);
-
- switch (type) {
- case T_FUNCTION:
- opline.opcode = ZEND_IMPORT_FUNCTION;
- break;
- case T_CLASS:
- opline.opcode = ZEND_IMPORT_CLASS;
- break;
- case T_CONST:
- opline.opcode = ZEND_IMPORT_CONST;
- break;
- }
-
- if (what) {
- if (type == T_FUNCTION || type == T_CLASS) {
- zend_str_tolower(what->u.constant.value.str.val, what->u.constant.value.str.len);
- }
- opline.op2 = *what;
- } else {
- SET_UNUSED(opline.op2);
- }
-
- zend_llist_add_element(&CG(import_commands), &opline);
-}
-
-
-void zend_do_end_import(znode *import_from TSRMLS_DC)
-{
- zend_llist_element *le;
- zend_op *opline, *opline_ptr;
-
- le = CG(import_commands).head;
-
- while (le) {
- opline_ptr = (zend_op *)le->data;
- opline = get_next_op(CG(active_op_array) TSRMLS_CC);
- memcpy(opline, opline_ptr, sizeof(zend_op));
- opline->op1 = *import_from;
- le = le->next;
- }
- zend_llist_destroy(&CG(import_commands));
-}
-
-
void zend_do_begin_variable_parse(TSRMLS_D)
{
zend_llist fetch_list;
@@ -3413,7 +3357,6 @@ void zend_initialize_class_data(zend_class_entry *ce, zend_bool nullify_handlers
zend_hash_init_ex(ce->static_members, 0, NULL, ZVAL_PTR_DTOR, persistent_hashes, 0);
zend_hash_init_ex(&ce->constants_table, 0, NULL, ZVAL_PTR_DTOR, persistent_hashes, 0);
zend_hash_init_ex(&ce->function_table, 0, NULL, ZEND_FUNCTION_DTOR, persistent_hashes, 0);
- zend_hash_init_ex(&ce->class_table, 10, NULL, ZEND_CLASS_DTOR, persistent_hashes, 0);
if (nullify_handlers) {
ce->constructor = NULL;