com php-src: remove note: Zend/zend_compile.c
| From: | Bob Weinand | Date: | Sun, 06 Mar 2016 08:18:04 +0000 |
| Subject: | com php-src: remove note: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95643@lists.php.net to get a copy of this message | ||
Commit: e01685985aabaf636771c9aa1c071356f71ae7f4
Author: Joe Watkins <krakjoe@php.net> Sun, 6 Mar 2016 08:18:04 +0000
Parents: 3b9c9ffc55fec9332ad4c5c6ea148bac94b0659f
Branches: typed_ref_properties
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e01685985aabaf636771c9aa1c071356f71ae7f4
Log:
remove note
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 34e96da..b27896e 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -5298,40 +5298,6 @@ void zend_compile_func_decl(znode *result, zend_ast *ast) /* {{{ */
}
/* }}} */
-
-/*
-static void zend_compile_typename(zend_ast *ast, zend_arg_info *arg_info)
-{
- if (ast->kind == ZEND_AST_TYPE) {
- arg_info->type_hint = ast->attr;
- } else {
- zend_string *class_name = zend_ast_get_str(ast);
- zend_uchar type = zend_lookup_builtin_type_by_name(class_name);
-
- if (type != 0) {
- if (ast->attr != ZEND_NAME_NOT_FQ) {
- zend_error_noreturn(E_COMPILE_ERROR,
- "Scalar type declaration '%s' must be unqualified",
- ZSTR_VAL(zend_string_tolower(class_name)));
- }
- arg_info->type_hint = type;
- } else {
- uint32_t fetch_type = zend_get_class_fetch_type_ast(ast);
- if (fetch_type == ZEND_FETCH_CLASS_DEFAULT) {
- class_name = zend_resolve_class_name_ast(ast);
- zend_assert_valid_class_name(class_name);
- } else {
- zend_ensure_valid_class_fetch_type(fetch_type);
- zend_string_addref(class_name);
- }
-
- arg_info->type_hint = IS_OBJECT;
- arg_info->class_name = class_name;
- }
- }
-}
-*/
-
void zend_compile_prop_decl(zend_ast *ast) /* {{{ */
{
zend_ast_list *list = zend_ast_get_list(ast);