Lines Matching refs:version
126 zend_long version; member
628 *count = decl->kind == ZEND_AST_CLASS ? (state->version >= 85 ? 5 : 4) : 5; in ast_get_children()
708 && (type != IS_MIXED || state->version >= 80) in ast_name_to_zval()
747 if (state->version < 80) { in ast_fill_children_ht()
777 if (state->version < 85) { in ast_fill_children_ht()
784 if (state->version < 100) { in ast_fill_children_ht()
791 if (state->version < 110) { in ast_fill_children_ht()
801 if (state->version < 110) { in ast_fill_children_ht()
827 } else if (state->version >= 60 && i == 1 in ast_fill_children_ht()
862 if (state->version >= 80) { in ast_fill_children_ht()
879 if (state->version >= 110) { in ast_fill_children_ht()
892 if (state->version >= 80) { in ast_fill_children_ht()
901 if (state->version >= 85) { in ast_fill_children_ht()
910 if (state->version >= 100) { in ast_fill_children_ht()
977 if (state->version < 80) { in ast_to_zval()
987 if (state->version < 70) { in ast_to_zval()
1002 if (state->version < 70) { in ast_to_zval()
1024 if (state->version >= 70) { in ast_to_zval()
1078 if (state->version < 110) { in ast_to_zval()
1108 if (ast->kind == ZEND_AST_PROP_DECL && state->version >= 70) { in ast_to_zval()
1114 if (state->version >= 80) { in ast_to_zval()
1126 if (ast->kind == ZEND_AST_CLASS_CONST_DECL && state->version >= 80) { in ast_to_zval()
1142 static inline zend_bool ast_version_deprecated(zend_long version) { in ast_version_deprecated() argument
1143 return version < 70; in ast_version_deprecated()
1163 static inline zend_bool ast_version_known(zend_long version) { in ast_version_known() argument
1166 if (version == versions[i]) { in ast_version_known()
1173 static int ast_check_version(zend_long version) { in ast_check_version() argument
1176 if (ast_version_known(version)) { in ast_check_version()
1177 if (ast_version_deprecated(version)) { in ast_check_version()
1179 "Version " ZEND_LONG_FMT " is deprecated", version); in ast_check_version()
1185 if (version != -1) { in ast_check_version()
1187 "Unknown version " ZEND_LONG_FMT ". %s", version, ZSTR_VAL(version_info)); in ast_check_version()
1198 zend_long version = -1; in PHP_FUNCTION() local
1205 if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "P|l", &filename, &version) == FAILURE) { in PHP_FUNCTION()
1209 if (ast_check_version(version) == FAILURE) { in PHP_FUNCTION()
1235 state.version = version; in PHP_FUNCTION()
1246 zend_long version = -1; in PHP_FUNCTION() local
1251 if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "S|lP", &code, &version, &filename) == FAILURE) { in PHP_FUNCTION()
1255 if (ast_check_version(version) == FAILURE) { in PHP_FUNCTION()
1264 state.version = version; in PHP_FUNCTION()
1367 zend_long version = versions[i]; in PHP_FUNCTION() local
1368 if (!exclude_deprecated || !ast_version_deprecated(version)) { in PHP_FUNCTION()
1369 add_next_index_long(return_value, version); in PHP_FUNCTION()