Slide 139
Slide 139 text
[FOE@DPNQJMF@WBS
zend_op *zend_compile_var(znode *result, zend_ast *ast, uint32_t type, int by_ref) /* {{{ */
{
CG(zend_lineno) = zend_ast_get_lineno(ast);
switch (ast->kind) {
case ZEND_AST_VAR:
return zend_compile_simple_var(result, ast, type, 0);
case ZEND_AST_DIM:
return zend_compile_dim(result, ast, type);
case ZEND_AST_PROP:
return zend_compile_prop(result, ast, type, by_ref);
case ZEND_AST_STATIC_PROP:
return zend_compile_static_prop(result, ast, type, by_ref, 0);
case ZEND_AST_CALL:
zend_compile_call(result, ast, type);
return NULL;
case ZEND_AST_METHOD_CALL:
zend_compile_method_call(result, ast, type);
return NULL;
case ZEND_AST_STATIC_CALL:
zend_compile_static_call(result, ast, type);
return NULL;
case ZEND_AST_ZNODE:
*result = *zend_ast_get_znode(ast);