cvs: ZendEngine2 / zend_compile.c

From: Date: Fri, 04 May 2007 16:53:10 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5781@lists.php.net to get a copy of this message
dmitry Fri May 4 16:53:10 2007 UTC Modified files: /ZendEngine2 zend_compile.c Log: ws http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_compile.c?r1=1.746&r2=1.747&diff_format=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.746 ZendEngine2/zend_compile.c:1.747 --- ZendEngine2/zend_compile.c:1.746 Wed May 2 13:22:15 2007 +++ ZendEngine2/zend_compile.c Fri May 4 16:53:09 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.746 2007/05/02 13:22:15 dmitry Exp $ */ +/* $Id: zend_compile.c,v 1.747 2007/05/04 16:53:09 dmitry Exp $ */ #include <zend_language_parser.h> #include "zend.h" @@ -97,7 +97,7 @@ filename_length = strlen(filename); Z_UNILEN_P(result) = 1+name_length+filename_length+char_pos_len; if (type == IS_UNICODE) { - Z_USTRVAL_P(result) = (UChar *) eumalloc(Z_STRLEN_P(result)+1); + Z_USTRVAL_P(result) = (UChar *) eumalloc(Z_STRLEN_P(result)+1); Z_USTRVAL_P(result)[0] = 0; memcpy(Z_USTRVAL_P(result)+1, name.u, UBYTES(name_length)); @@ -2212,7 +2212,7 @@ } if (parent_flags & ZEND_ACC_PRIVATE) { - child->common.prototype = NULL; + child->common.prototype = NULL; } else if (parent_flags & ZEND_ACC_ABSTRACT) { child->common.fn_flags |= ZEND_ACC_IMPLEMENTED_ABSTRACT; child->common.prototype = parent; @@ -2467,10 +2467,10 @@ } } ce->interfaces[ce->num_interfaces++] = iface; - + zend_hash_merge_ex(&ce->constants_table, &iface->constants_table, (copy_ctor_func_t) zval_add_ref, sizeof(zval *), (merge_checker_func_t) do_inherit_constant_check, iface); zend_hash_merge_ex(&ce->function_table, &iface->function_table, (copy_ctor_func_t) do_inherit_method, sizeof(zend_function), (merge_checker_func_t) do_inherit_method_check, ce); - + do_implement_interface(ce, iface TSRMLS_CC); zend_do_inherit_interfaces(ce, iface TSRMLS_CC); } @@ -4223,7 +4223,7 @@ opline->result.u.var = get_temporary_variable(CG(active_op_array)); opline->op1 = *value; SET_UNUSED(opline->op2); - + *colon_token = opline->result; jmp_token->u.opline_num = op_number; @@ -4241,11 +4241,11 @@ opline->result = *colon_token; opline->op1 = *false_value; SET_UNUSED(opline->op2); - + *result = opline->result; CG(active_op_array)->opcodes[jmp_token->u.opline_num].op2.u.opline_num = get_next_op_number(CG(active_op_array)); - + DEC_BPC(CG(active_op_array)); }

« previous php.zend-engine.cvs (#5781) next »