--- /dev/null
- | Copyright (c) 1998-2018 Zend Technologies Ltd. (http://www.zend.com) |
+ /* Generated by re2c 1.0.1 */
+ #line 1 "Zend/zend_language_scanner.l"
+ /*
+ +----------------------------------------------------------------------+
+ | Zend Engine |
+ +----------------------------------------------------------------------+
-#include "tsrm_config_common.h"
++ | Copyright (c) Zend Technologies Ltd. (http://www.zend.com) |
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 2.00 of the Zend license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available through the world-wide-web at the following url: |
+ | http://www.zend.com/license/2_00.txt. |
+ | If you did not receive a copy of the Zend license and are unable to |
+ | obtain it through the world-wide-web, please send a note to |
+ | license@zend.com so we can mail you a copy immediately. |
+ +----------------------------------------------------------------------+
+ | Authors: Marcus Boerger <helly@php.net> |
+ | Nuno Lopes <nlopess@php.net> |
+ | Scott MacVicar <scottmac@php.net> |
+ | Flex version authors: |
+ | Andi Gutmans <andi@php.net> |
+ | Zeev Suraski <zeev@php.net> |
+ +----------------------------------------------------------------------+
+ */
+
+ #if 0
+ # define YYDEBUG(s, c) printf("state: %d char: %c\n", s, c)
+ #else
+ # define YYDEBUG(s, c)
+ #endif
+
+ #include "zend_language_scanner_defs.h"
+
+ #include <errno.h>
+ #include "zend.h"
+ #ifdef ZEND_WIN32
+ # include <Winuser.h>
+ #endif
+ #include "zend_alloc.h"
+ #include <zend_language_parser.h>
+ #include "zend_compile.h"
+ #include "zend_language_scanner.h"
+ #include "zend_highlight.h"
+ #include "zend_constants.h"
+ #include "zend_variables.h"
+ #include "zend_operators.h"
+ #include "zend_API.h"
+ #include "zend_strtod.h"
+ #include "zend_exceptions.h"
+ #include "zend_virtual_cwd.h"
-#ifdef HAVE_STDARG_H
-# include <stdarg.h>
-#endif
+
+ #define YYCTYPE unsigned char
+ #define YYFILL(n) { if ((YYCURSOR + n) >= (YYLIMIT + ZEND_MMAP_AHEAD)) { return 0; } }
+ #define YYCURSOR SCNG(yy_cursor)
+ #define YYLIMIT SCNG(yy_limit)
+ #define YYMARKER SCNG(yy_marker)
+
+ #define YYGETCONDITION() SCNG(yy_state)
+ #define YYSETCONDITION(s) SCNG(yy_state) = s
+
+ #define STATE(name) yyc##name
+
+ /* emulate flex constructs */
+ #define BEGIN(state) YYSETCONDITION(STATE(state))
+ #define YYSTATE YYGETCONDITION()
+ #define yytext ((char*)SCNG(yy_text))
+ #define yyleng SCNG(yy_leng)
+ #define yyless(x) do { YYCURSOR = (unsigned char*)yytext + x; \
+ yyleng = (unsigned int)x; } while(0)
+ #define yymore() goto yymore_restart
+
+ /* perform sanity check. If this message is triggered you should
+ increase the ZEND_MMAP_AHEAD value in the zend_streams.h file */
+ #define YYMAXFILL 16
+
+ #if ZEND_MMAP_AHEAD < YYMAXFILL
+ # error ZEND_MMAP_AHEAD should be greater than or equal to YYMAXFILL
+ #endif
+
- size_t size, offset = 0;
++#include <stdarg.h>
+
+ #ifdef HAVE_UNISTD_H
+ # include <unistd.h>
+ #endif
+
+ /* Globals Macros */
+ #define SCNG LANG_SCNG
+ #ifdef ZTS
+ ZEND_API ts_rsrc_id language_scanner_globals_id;
++ZEND_API size_t language_scanner_globals_offset;
+ #else
+ ZEND_API zend_php_scanner_globals language_scanner_globals;
+ #endif
+
+ #define HANDLE_NEWLINES(s, l) \
+ do { \
+ char *p = (s), *boundary = p+(l); \
+ \
+ while (p<boundary) { \
+ if (*p == '\n' || (*p == '\r' && (*(p+1) != '\n'))) { \
+ CG(zend_lineno)++; \
+ } \
+ p++; \
+ } \
+ } while (0)
+
+ #define HANDLE_NEWLINE(c) \
+ { \
+ if (c == '\n' || c == '\r') { \
+ CG(zend_lineno)++; \
+ } \
+ }
+
+ /* To save initial string length after scanning to first variable */
+ #define SET_DOUBLE_QUOTES_SCANNED_LENGTH(len) SCNG(scanned_string_len) = (len)
+ #define GET_DOUBLE_QUOTES_SCANNED_LENGTH() SCNG(scanned_string_len)
+
+ #define IS_LABEL_START(c) (((c) >= 'a' && (c) <= 'z') || ((c) >= 'A' && (c) <= 'Z') || (c) == '_' || (c) >= 0x80)
+ #define IS_LABEL_SUCCESSOR(c) (((c) >= 'a' && (c) <= 'z') || ((c) >= 'A' && (c) <= 'Z') || ((c) >= '0' && (c) <= '9') || (c) == '_' || (c) >= 0x80)
+
+ #define ZEND_IS_OCT(c) ((c)>='0' && (c)<='7')
+ #define ZEND_IS_HEX(c) (((c)>='0' && (c)<='9') || ((c)>='a' && (c)<='f') || ((c)>='A' && (c)<='F'))
+
+ BEGIN_EXTERN_C()
+
++static void strip_underscores(char *str, size_t *len)
++{
++ char *src = str, *dest = str;
++ while (*src != '\0') {
++ if (*src != '_') {
++ *dest = *src;
++ dest++;
++ } else {
++ --(*len);
++ }
++ src++;
++ }
++ *dest = '\0';
++}
++
+ static size_t encoding_filter_script_to_internal(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length)
+ {
+ const zend_encoding *internal_encoding = zend_multibyte_get_internal_encoding();
+ ZEND_ASSERT(internal_encoding);
+ return zend_multibyte_encoding_converter(to, to_length, from, from_length, internal_encoding, LANG_SCNG(script_encoding));
+ }
+
+ static size_t encoding_filter_script_to_intermediate(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length)
+ {
+ return zend_multibyte_encoding_converter(to, to_length, from, from_length, zend_multibyte_encoding_utf8, LANG_SCNG(script_encoding));
+ }
+
+ static size_t encoding_filter_intermediate_to_script(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length)
+ {
+ return zend_multibyte_encoding_converter(to, to_length, from, from_length,
+ LANG_SCNG(script_encoding), zend_multibyte_encoding_utf8);
+ }
+
+ static size_t encoding_filter_intermediate_to_internal(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length)
+ {
+ const zend_encoding *internal_encoding = zend_multibyte_get_internal_encoding();
+ ZEND_ASSERT(internal_encoding);
+ return zend_multibyte_encoding_converter(to, to_length, from, from_length,
+ internal_encoding, zend_multibyte_encoding_utf8);
+ }
+
+
+ static void _yy_push_state(int new_state)
+ {
+ zend_stack_push(&SCNG(state_stack), (void *) &YYGETCONDITION());
+ YYSETCONDITION(new_state);
+ }
+
+ #define yy_push_state(state_and_tsrm) _yy_push_state(yyc##state_and_tsrm)
+
+ static void yy_pop_state(void)
+ {
+ int *stack_state = zend_stack_top(&SCNG(state_stack));
+ YYSETCONDITION(*stack_state);
+ zend_stack_del_top(&SCNG(state_stack));
+ }
+
+ static void yy_scan_buffer(char *str, unsigned int len)
+ {
+ YYCURSOR = (YYCTYPE*)str;
+ YYLIMIT = YYCURSOR + len;
+ if (!SCNG(yy_start)) {
+ SCNG(yy_start) = YYCURSOR;
+ }
+ }
+
+ void startup_scanner(void)
+ {
+ CG(parse_error) = 0;
+ CG(doc_comment) = NULL;
+ CG(extra_fn_flags) = 0;
+ zend_stack_init(&SCNG(state_stack), sizeof(int));
+ zend_ptr_stack_init(&SCNG(heredoc_label_stack));
+ SCNG(heredoc_scan_ahead) = 0;
+ }
+
+ static void heredoc_label_dtor(zend_heredoc_label *heredoc_label) {
+ efree(heredoc_label->label);
+ }
+
+ void shutdown_scanner(void)
+ {
+ CG(parse_error) = 0;
+ RESET_DOC_COMMENT();
+ zend_stack_destroy(&SCNG(state_stack));
+ zend_ptr_stack_clean(&SCNG(heredoc_label_stack), (void (*)(void *)) &heredoc_label_dtor, 1);
+ zend_ptr_stack_destroy(&SCNG(heredoc_label_stack));
+ SCNG(heredoc_scan_ahead) = 0;
+ SCNG(on_event) = NULL;
+ }
+
+ ZEND_API void zend_save_lexical_state(zend_lex_state *lex_state)
+ {
+ lex_state->yy_leng = SCNG(yy_leng);
+ lex_state->yy_start = SCNG(yy_start);
+ lex_state->yy_text = SCNG(yy_text);
+ lex_state->yy_cursor = SCNG(yy_cursor);
+ lex_state->yy_marker = SCNG(yy_marker);
+ lex_state->yy_limit = SCNG(yy_limit);
+
+ lex_state->state_stack = SCNG(state_stack);
+ zend_stack_init(&SCNG(state_stack), sizeof(int));
+
+ lex_state->heredoc_label_stack = SCNG(heredoc_label_stack);
+ zend_ptr_stack_init(&SCNG(heredoc_label_stack));
+
+ lex_state->in = SCNG(yy_in);
+ lex_state->yy_state = YYSTATE;
+ lex_state->filename = zend_get_compiled_filename();
+ lex_state->lineno = CG(zend_lineno);
+
+ lex_state->script_org = SCNG(script_org);
+ lex_state->script_org_size = SCNG(script_org_size);
+ lex_state->script_filtered = SCNG(script_filtered);
+ lex_state->script_filtered_size = SCNG(script_filtered_size);
+ lex_state->input_filter = SCNG(input_filter);
+ lex_state->output_filter = SCNG(output_filter);
+ lex_state->script_encoding = SCNG(script_encoding);
+
+ lex_state->on_event = SCNG(on_event);
+ lex_state->on_event_context = SCNG(on_event_context);
+
+ lex_state->ast = CG(ast);
+ lex_state->ast_arena = CG(ast_arena);
+ }
+
+ ZEND_API void zend_restore_lexical_state(zend_lex_state *lex_state)
+ {
+ SCNG(yy_leng) = lex_state->yy_leng;
+ SCNG(yy_start) = lex_state->yy_start;
+ SCNG(yy_text) = lex_state->yy_text;
+ SCNG(yy_cursor) = lex_state->yy_cursor;
+ SCNG(yy_marker) = lex_state->yy_marker;
+ SCNG(yy_limit) = lex_state->yy_limit;
+
+ zend_stack_destroy(&SCNG(state_stack));
+ SCNG(state_stack) = lex_state->state_stack;
+
+ zend_ptr_stack_clean(&SCNG(heredoc_label_stack), (void (*)(void *)) &heredoc_label_dtor, 1);
+ zend_ptr_stack_destroy(&SCNG(heredoc_label_stack));
+ SCNG(heredoc_label_stack) = lex_state->heredoc_label_stack;
+
+ SCNG(yy_in) = lex_state->in;
+ YYSETCONDITION(lex_state->yy_state);
+ CG(zend_lineno) = lex_state->lineno;
+ zend_restore_compiled_filename(lex_state->filename);
+
+ if (SCNG(script_filtered)) {
+ efree(SCNG(script_filtered));
+ SCNG(script_filtered) = NULL;
+ }
+ SCNG(script_org) = lex_state->script_org;
+ SCNG(script_org_size) = lex_state->script_org_size;
+ SCNG(script_filtered) = lex_state->script_filtered;
+ SCNG(script_filtered_size) = lex_state->script_filtered_size;
+ SCNG(input_filter) = lex_state->input_filter;
+ SCNG(output_filter) = lex_state->output_filter;
+ SCNG(script_encoding) = lex_state->script_encoding;
+
+ SCNG(on_event) = lex_state->on_event;
+ SCNG(on_event_context) = lex_state->on_event_context;
+
+ CG(ast) = lex_state->ast;
+ CG(ast_arena) = lex_state->ast_arena;
+
+ RESET_DOC_COMMENT();
+ }
+
+ ZEND_API void zend_destroy_file_handle(zend_file_handle *file_handle)
+ {
+ zend_llist_del_element(&CG(open_files), file_handle, (int (*)(void *, void *)) zend_compare_file_handles);
+ /* zend_file_handle_dtor() operates on the copy, so we have to NULLify the original here */
+ file_handle->opened_path = NULL;
+ if (file_handle->free_filename) {
+ file_handle->filename = NULL;
+ }
+ }
+
+ ZEND_API void zend_lex_tstring(zval *zv)
+ {
+ if (SCNG(on_event)) {
+ SCNG(on_event)(ON_FEEDBACK, T_STRING, 0, SCNG(on_event_context));
+ }
+
+ ZVAL_STRINGL(zv, (char*)SCNG(yy_text), SCNG(yy_leng));
+ }
+
+ #define BOM_UTF32_BE "\x00\x00\xfe\xff"
+ #define BOM_UTF32_LE "\xff\xfe\x00\x00"
+ #define BOM_UTF16_BE "\xfe\xff"
+ #define BOM_UTF16_LE "\xff\xfe"
+ #define BOM_UTF8 "\xef\xbb\xbf"
+
+ static const zend_encoding *zend_multibyte_detect_utf_encoding(const unsigned char *script, size_t script_size)
+ {
+ const unsigned char *p;
+ int wchar_size = 2;
+ int le = 0;
+
+ /* utf-16 or utf-32? */
+ p = script;
+ assert(p >= script);
+ while ((size_t)(p-script) < script_size) {
+ p = memchr(p, 0, script_size-(p-script)-2);
+ if (!p) {
+ break;
+ }
+ if (*(p+1) == '\0' && *(p+2) == '\0') {
+ wchar_size = 4;
+ break;
+ }
+
+ /* searching for UTF-32 specific byte orders, so this will do */
+ p += 4;
+ }
+
+ /* BE or LE? */
+ p = script;
+ assert(p >= script);
+ while ((size_t)(p-script) < script_size) {
+ if (*p == '\0' && *(p+wchar_size-1) != '\0') {
+ /* BE */
+ le = 0;
+ break;
+ } else if (*p != '\0' && *(p+wchar_size-1) == '\0') {
+ /* LE* */
+ le = 1;
+ break;
+ }
+ p += wchar_size;
+ }
+
+ if (wchar_size == 2) {
+ return le ? zend_multibyte_encoding_utf16le : zend_multibyte_encoding_utf16be;
+ } else {
+ return le ? zend_multibyte_encoding_utf32le : zend_multibyte_encoding_utf32be;
+ }
+
+ return NULL;
+ }
+
+ static const zend_encoding* zend_multibyte_detect_unicode(void)
+ {
+ const zend_encoding *script_encoding = NULL;
+ int bom_size;
+ unsigned char *pos1, *pos2;
+
+ if (LANG_SCNG(script_org_size) < sizeof(BOM_UTF32_LE)-1) {
+ return NULL;
+ }
+
+ /* check out BOM */
+ if (!memcmp(LANG_SCNG(script_org), BOM_UTF32_BE, sizeof(BOM_UTF32_BE)-1)) {
+ script_encoding = zend_multibyte_encoding_utf32be;
+ bom_size = sizeof(BOM_UTF32_BE)-1;
+ } else if (!memcmp(LANG_SCNG(script_org), BOM_UTF32_LE, sizeof(BOM_UTF32_LE)-1)) {
+ script_encoding = zend_multibyte_encoding_utf32le;
+ bom_size = sizeof(BOM_UTF32_LE)-1;
+ } else if (!memcmp(LANG_SCNG(script_org), BOM_UTF16_BE, sizeof(BOM_UTF16_BE)-1)) {
+ script_encoding = zend_multibyte_encoding_utf16be;
+ bom_size = sizeof(BOM_UTF16_BE)-1;
+ } else if (!memcmp(LANG_SCNG(script_org), BOM_UTF16_LE, sizeof(BOM_UTF16_LE)-1)) {
+ script_encoding = zend_multibyte_encoding_utf16le;
+ bom_size = sizeof(BOM_UTF16_LE)-1;
+ } else if (!memcmp(LANG_SCNG(script_org), BOM_UTF8, sizeof(BOM_UTF8)-1)) {
+ script_encoding = zend_multibyte_encoding_utf8;
+ bom_size = sizeof(BOM_UTF8)-1;
+ }
+
+ if (script_encoding) {
+ /* remove BOM */
+ LANG_SCNG(script_org) += bom_size;
+ LANG_SCNG(script_org_size) -= bom_size;
+
+ return script_encoding;
+ }
+
+ /* script contains NULL bytes -> auto-detection */
+ if ((pos1 = memchr(LANG_SCNG(script_org), 0, LANG_SCNG(script_org_size)))) {
+ /* check if the NULL byte is after the __HALT_COMPILER(); */
+ pos2 = LANG_SCNG(script_org);
+
+ while ((size_t)(pos1 - pos2) >= sizeof("__HALT_COMPILER();")-1) {
+ pos2 = memchr(pos2, '_', pos1 - pos2);
+ if (!pos2) break;
+ pos2++;
+ if (strncasecmp((char*)pos2, "_HALT_COMPILER", sizeof("_HALT_COMPILER")-1) == 0) {
+ pos2 += sizeof("_HALT_COMPILER")-1;
+ while (*pos2 == ' ' ||
+ *pos2 == '\t' ||
+ *pos2 == '\r' ||
+ *pos2 == '\n') {
+ pos2++;
+ }
+ if (*pos2 == '(') {
+ pos2++;
+ while (*pos2 == ' ' ||
+ *pos2 == '\t' ||
+ *pos2 == '\r' ||
+ *pos2 == '\n') {
+ pos2++;
+ }
+ if (*pos2 == ')') {
+ pos2++;
+ while (*pos2 == ' ' ||
+ *pos2 == '\t' ||
+ *pos2 == '\r' ||
+ *pos2 == '\n') {
+ pos2++;
+ }
+ if (*pos2 == ';') {
+ return NULL;
+ }
+ }
+ }
+ }
+ }
+ /* make best effort if BOM is missing */
+ return zend_multibyte_detect_utf_encoding(LANG_SCNG(script_org), LANG_SCNG(script_org_size));
+ }
+
+ return NULL;
+ }
+
+ static const zend_encoding* zend_multibyte_find_script_encoding(void)
+ {
+ const zend_encoding *script_encoding;
+
+ if (CG(detect_unicode)) {
+ /* check out bom(byte order mark) and see if containing wchars */
+ script_encoding = zend_multibyte_detect_unicode();
+ if (script_encoding != NULL) {
+ /* bom or wchar detection is prior to 'script_encoding' option */
+ return script_encoding;
+ }
+ }
+
+ /* if no script_encoding specified, just leave alone */
+ if (!CG(script_encoding_list) || !CG(script_encoding_list_size)) {
+ return NULL;
+ }
+
+ /* if multiple encodings specified, detect automagically */
+ if (CG(script_encoding_list_size) > 1) {
+ return zend_multibyte_encoding_detector(LANG_SCNG(script_org), LANG_SCNG(script_org_size), CG(script_encoding_list), CG(script_encoding_list_size));
+ }
+
+ return CG(script_encoding_list)[0];
+ }
+
+ ZEND_API int zend_multibyte_set_filter(const zend_encoding *onetime_encoding)
+ {
+ const zend_encoding *internal_encoding = zend_multibyte_get_internal_encoding();
+ const zend_encoding *script_encoding = onetime_encoding ? onetime_encoding: zend_multibyte_find_script_encoding();
+
+ if (!script_encoding) {
+ return FAILURE;
+ }
+
+ /* judge input/output filter */
+ LANG_SCNG(script_encoding) = script_encoding;
+ LANG_SCNG(input_filter) = NULL;
+ LANG_SCNG(output_filter) = NULL;
+
+ if (!internal_encoding || LANG_SCNG(script_encoding) == internal_encoding) {
+ if (!zend_multibyte_check_lexer_compatibility(LANG_SCNG(script_encoding))) {
+ /* and if not, work around w/ script_encoding -> utf-8 -> script_encoding conversion */
+ LANG_SCNG(input_filter) = encoding_filter_script_to_intermediate;
+ LANG_SCNG(output_filter) = encoding_filter_intermediate_to_script;
+ } else {
+ LANG_SCNG(input_filter) = NULL;
+ LANG_SCNG(output_filter) = NULL;
+ }
+ return SUCCESS;
+ }
+
+ if (zend_multibyte_check_lexer_compatibility(internal_encoding)) {
+ LANG_SCNG(input_filter) = encoding_filter_script_to_internal;
+ LANG_SCNG(output_filter) = NULL;
+ } else if (zend_multibyte_check_lexer_compatibility(LANG_SCNG(script_encoding))) {
+ LANG_SCNG(input_filter) = NULL;
+ LANG_SCNG(output_filter) = encoding_filter_script_to_internal;
+ } else {
+ /* both script and internal encodings are incompatible w/ flex */
+ LANG_SCNG(input_filter) = encoding_filter_script_to_intermediate;
+ LANG_SCNG(output_filter) = encoding_filter_intermediate_to_internal;
+ }
+
+ return 0;
+ }
+
+ ZEND_API int open_file_for_scanning(zend_file_handle *file_handle)
+ {
+ char *buf;
- /* The shebang line was read, get the current position to obtain the buffer start */
- if (CG(start_lineno) == 2 && file_handle->type == ZEND_HANDLE_FP && file_handle->handle.fp) {
- if ((offset = ftell(file_handle->handle.fp)) == (size_t)-1) {
- offset = 0;
- }
- }
-
++ size_t size;
+ zend_string *compiled_filename;
+
- SCNG(yy_start) = (unsigned char *)buf - offset;
+ if (zend_stream_fixup(file_handle, &buf, &size) == FAILURE) {
++ /* Still add it to open_files to make destroy_file_handle work */
++ zend_llist_add_element(&CG(open_files), file_handle);
+ return FAILURE;
+ }
+
++ ZEND_ASSERT(!EG(exception) && "stream_fixup() should have failed");
+ zend_llist_add_element(&CG(open_files), file_handle);
+ if (file_handle->handle.stream.handle >= (void*)file_handle && file_handle->handle.stream.handle <= (void*)(file_handle+1)) {
+ zend_file_handle *fh = (zend_file_handle*)zend_llist_get_last(&CG(open_files));
+ size_t diff = (char*)file_handle->handle.stream.handle - (char*)file_handle;
+ fh->handle.stream.handle = (void*)(((char*)fh) + diff);
+ file_handle->handle.stream.handle = fh->handle.stream.handle;
+ }
+
+ /* Reset the scanner for scanning the new file */
+ SCNG(yy_in) = file_handle;
+ SCNG(yy_start) = NULL;
+
+ if (size != (size_t)-1) {
+ if (CG(multibyte)) {
+ SCNG(script_org) = (unsigned char*)buf;
+ SCNG(script_org_size) = size;
+ SCNG(script_filtered) = NULL;
+
+ zend_multibyte_set_filter(NULL);
+
+ if (SCNG(input_filter)) {
+ if ((size_t)-1 == SCNG(input_filter)(&SCNG(script_filtered), &SCNG(script_filtered_size), SCNG(script_org), SCNG(script_org_size))) {
+ zend_error_noreturn(E_COMPILE_ERROR, "Could not convert the script from the detected "
+ "encoding \"%s\" to a compatible encoding", zend_multibyte_get_encoding_name(LANG_SCNG(script_encoding)));
+ }
+ buf = (char*)SCNG(script_filtered);
+ size = SCNG(script_filtered_size);
+ }
+ }
- BEGIN(INITIAL);
++ SCNG(yy_start) = (unsigned char *)buf;
+ yy_scan_buffer(buf, (unsigned int)size);
+ } else {
+ zend_error_noreturn(E_COMPILE_ERROR, "zend_stream_mmap() failed");
+ }
+
- if (CG(start_lineno)) {
- CG(zend_lineno) = CG(start_lineno);
- CG(start_lineno) = 0;
- } else {
- CG(zend_lineno) = 1;
- }
-
++ if (CG(skip_shebang)) {
++ CG(skip_shebang) = 0;
++ BEGIN(SHEBANG);
++ } else {
++ BEGIN(INITIAL);
++ }
+
+ if (file_handle->opened_path) {
+ compiled_filename = zend_string_copy(file_handle->opened_path);
+ } else {
+ compiled_filename = zend_string_init(file_handle->filename, strlen(file_handle->filename), 0);
+ }
+
+ zend_set_compiled_filename(compiled_filename);
+ zend_string_release_ex(compiled_filename, 0);
+
- if (type==ZEND_REQUIRE) {
- zend_message_dispatcher(ZMSG_FAILED_REQUIRE_FOPEN, file_handle->filename);
- zend_bailout();
- } else {
- zend_message_dispatcher(ZMSG_FAILED_INCLUDE_FOPEN, file_handle->filename);
+ RESET_DOC_COMMENT();
++ CG(zend_lineno) = 1;
+ CG(increment_lineno) = 0;
+ return SUCCESS;
+ }
+ END_EXTERN_C()
+
+ static zend_op_array *zend_compile(int type)
+ {
+ zend_op_array *op_array = NULL;
+ zend_bool original_in_compilation = CG(in_compilation);
+
+ CG(in_compilation) = 1;
+ CG(ast) = NULL;
+ CG(ast_arena) = zend_arena_create(1024 * 32);
+
+ if (!zendparse()) {
+ int last_lineno = CG(zend_lineno);
+ zend_file_context original_file_context;
+ zend_oparray_context original_oparray_context;
+ zend_op_array *original_active_op_array = CG(active_op_array);
+
+ op_array = emalloc(sizeof(zend_op_array));
+ init_op_array(op_array, type, INITIAL_OP_ARRAY_SIZE);
+ CG(active_op_array) = op_array;
+
++ /* Use heap to not waste arena memory */
++ op_array->fn_flags |= ZEND_ACC_HEAP_RT_CACHE;
++
+ if (zend_ast_process) {
+ zend_ast_process(CG(ast));
+ }
+
+ zend_file_context_begin(&original_file_context);
+ zend_oparray_context_begin(&original_oparray_context);
+ zend_compile_top_stmt(CG(ast));
+ CG(zend_lineno) = last_lineno;
+ zend_emit_final_return(type == ZEND_USER_FUNCTION);
+ op_array->line_start = 1;
+ op_array->line_end = last_lineno;
+ pass_two(op_array);
+ zend_oparray_context_end(&original_oparray_context);
+ zend_file_context_end(&original_file_context);
+
+ CG(active_op_array) = original_active_op_array;
+ }
+
+ zend_ast_destroy(CG(ast));
+ zend_arena_destroy(CG(ast_arena));
+
+ CG(in_compilation) = original_in_compilation;
+
+ return op_array;
+ }
+
+ ZEND_API zend_op_array *compile_file(zend_file_handle *file_handle, int type)
+ {
+ zend_lex_state original_lex_state;
+ zend_op_array *op_array = NULL;
+ zend_save_lexical_state(&original_lex_state);
+
+ if (open_file_for_scanning(file_handle)==FAILURE) {
- file_handle.filename = Z_STRVAL_P(filename);
- file_handle.free_filename = 0;
- file_handle.type = ZEND_HANDLE_FILENAME;
- file_handle.opened_path = NULL;
- file_handle.handle.fp = NULL;
++ if (!EG(exception)) {
++ if (type==ZEND_REQUIRE) {
++ zend_message_dispatcher(ZMSG_FAILED_REQUIRE_FOPEN, file_handle->filename);
++ zend_bailout();
++ } else {
++ zend_message_dispatcher(ZMSG_FAILED_INCLUDE_FOPEN, file_handle->filename);
++ }
+ }
+ } else {
+ op_array = zend_compile(ZEND_USER_FUNCTION);
+ }
+
+ zend_restore_lexical_state(&original_lex_state);
+ return op_array;
+ }
+
+
+ zend_op_array *compile_filename(int type, zval *filename)
+ {
+ zend_file_handle file_handle;
+ zval tmp;
+ zend_op_array *retval;
+ zend_string *opened_path = NULL;
+
+ if (Z_TYPE_P(filename) != IS_STRING) {
+ ZVAL_STR(&tmp, zval_get_string(filename));
+ filename = &tmp;
+ }
- file_handle.type = ZEND_HANDLE_FILENAME;
- file_handle.filename = filename;
- file_handle.free_filename = 0;
- file_handle.opened_path = NULL;
++ zend_stream_init_filename(&file_handle, Z_STRVAL_P(filename));
+
+ retval = zend_compile_file(&file_handle, type);
+ if (retval && file_handle.handle.stream.handle) {
+ if (!file_handle.opened_path) {
+ file_handle.opened_path = opened_path = zend_string_copy(Z_STR_P(filename));
+ }
+
+ zend_hash_add_empty_element(&EG(included_files), file_handle.opened_path);
+
+ if (opened_path) {
+ zend_string_release_ex(opened_path, 0);
+ }
+ }
+ zend_destroy_file_handle(&file_handle);
+
+ if (UNEXPECTED(filename == &tmp)) {
+ zval_ptr_dtor(&tmp);
+ }
+ return retval;
+ }
+
+ ZEND_API int zend_prepare_string_for_scanning(zval *str, char *filename)
+ {
+ char *buf;
+ size_t size, old_len;
+ zend_string *new_compiled_filename;
+
+ /* enforce ZEND_MMAP_AHEAD trailing NULLs for flex... */
+ old_len = Z_STRLEN_P(str);
+ Z_STR_P(str) = zend_string_extend(Z_STR_P(str), old_len + ZEND_MMAP_AHEAD, 0);
+ Z_TYPE_INFO_P(str) = IS_STRING_EX;
+ memset(Z_STRVAL_P(str) + old_len, 0, ZEND_MMAP_AHEAD + 1);
+
+ SCNG(yy_in) = NULL;
+ SCNG(yy_start) = NULL;
+
+ buf = Z_STRVAL_P(str);
+ size = old_len;
+
+ if (CG(multibyte)) {
+ SCNG(script_org) = (unsigned char*)buf;
+ SCNG(script_org_size) = size;
+ SCNG(script_filtered) = NULL;
+
+ zend_multibyte_set_filter(zend_multibyte_get_internal_encoding());
+
+ if (SCNG(input_filter)) {
+ if ((size_t)-1 == SCNG(input_filter)(&SCNG(script_filtered), &SCNG(script_filtered_size), SCNG(script_org), SCNG(script_org_size))) {
+ zend_error_noreturn(E_COMPILE_ERROR, "Could not convert the script from the detected "
+ "encoding \"%s\" to a compatible encoding", zend_multibyte_get_encoding_name(LANG_SCNG(script_encoding)));
+ }
+ buf = (char*)SCNG(script_filtered);
+ size = SCNG(script_filtered_size);
+ }
+ }
+
+ yy_scan_buffer(buf, (unsigned int)size);
+
+ new_compiled_filename = zend_string_init(filename, strlen(filename), 0);
+ zend_set_compiled_filename(new_compiled_filename);
+ zend_string_release_ex(new_compiled_filename, 0);
+ CG(zend_lineno) = 1;
+ CG(increment_lineno) = 0;
+ RESET_DOC_COMMENT();
+ return SUCCESS;
+ }
+
+
+ ZEND_API size_t zend_get_scanned_file_offset(void)
+ {
+ size_t offset = SCNG(yy_cursor) - SCNG(yy_start);
+ if (SCNG(input_filter)) {
+ size_t original_offset = offset, length = 0;
+ do {
+ unsigned char *p = NULL;
+ if ((size_t)-1 == SCNG(input_filter)(&p, &length, SCNG(script_org), offset)) {
+ return (size_t)-1;
+ }
+ efree(p);
+ if (length > original_offset) {
+ offset--;
+ } else if (length < original_offset) {
+ offset++;
+ }
+ } while (original_offset != length);
+ }
+ return offset;
+ }
+
+ zend_op_array *compile_string(zval *source_string, char *filename)
+ {
+ zend_lex_state original_lex_state;
+ zend_op_array *op_array = NULL;
+ zval tmp;
+
+ if (UNEXPECTED(Z_TYPE_P(source_string) != IS_STRING)) {
+ ZVAL_STR(&tmp, zval_get_string_func(source_string));
+ } else {
+ ZVAL_COPY(&tmp, source_string);
+ }
+
+ if (Z_STRLEN(tmp)==0) {
+ zval_ptr_dtor(&tmp);
+ return NULL;
+ }
+
+ zend_save_lexical_state(&original_lex_state);
+ if (zend_prepare_string_for_scanning(&tmp, filename) == SUCCESS) {
+ BEGIN(ST_IN_SCRIPTING);
+ op_array = zend_compile(ZEND_EVAL_CODE);
+ }
+
+ zend_restore_lexical_state(&original_lex_state);
+ zval_ptr_dtor(&tmp);
+
+ return op_array;
+ }
+
+
+ BEGIN_EXTERN_C()
+ int highlight_file(char *filename, zend_syntax_highlighter_ini *syntax_highlighter_ini)
+ {
+ zend_lex_state original_lex_state;
+ zend_file_handle file_handle;
+
-#define SKIP_TOKEN(_token) do { \
++ zend_stream_init_filename(&file_handle, filename);
+ zend_save_lexical_state(&original_lex_state);
+ if (open_file_for_scanning(&file_handle)==FAILURE) {
+ zend_message_dispatcher(ZMSG_FAILED_HIGHLIGHT_FOPEN, filename);
+ zend_restore_lexical_state(&original_lex_state);
+ return FAILURE;
+ }
+ zend_highlight(syntax_highlighter_ini);
+ if (SCNG(script_filtered)) {
+ efree(SCNG(script_filtered));
+ SCNG(script_filtered) = NULL;
+ }
+ zend_destroy_file_handle(&file_handle);
+ zend_restore_lexical_state(&original_lex_state);
+ return SUCCESS;
+ }
+
+ int highlight_string(zval *str, zend_syntax_highlighter_ini *syntax_highlighter_ini, char *str_name)
+ {
+ zend_lex_state original_lex_state;
+ zval tmp;
+
+ if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) {
+ ZVAL_STR(&tmp, zval_get_string_func(str));
+ str = &tmp;
+ }
+ zend_save_lexical_state(&original_lex_state);
+ if (zend_prepare_string_for_scanning(str, str_name)==FAILURE) {
+ zend_restore_lexical_state(&original_lex_state);
+ if (UNEXPECTED(str == &tmp)) {
+ zval_ptr_dtor(&tmp);
+ }
+ return FAILURE;
+ }
+ BEGIN(INITIAL);
+ zend_highlight(syntax_highlighter_ini);
+ if (SCNG(script_filtered)) {
+ efree(SCNG(script_filtered));
+ SCNG(script_filtered) = NULL;
+ }
+ zend_restore_lexical_state(&original_lex_state);
+ if (UNEXPECTED(str == &tmp)) {
+ zval_ptr_dtor(&tmp);
+ }
+ return SUCCESS;
+ }
+
+ ZEND_API void zend_multibyte_yyinput_again(zend_encoding_filter old_input_filter, const zend_encoding *old_encoding)
+ {
+ size_t length;
+ unsigned char *new_yy_start;
+
+ /* convert and set */
+ if (!SCNG(input_filter)) {
+ if (SCNG(script_filtered)) {
+ efree(SCNG(script_filtered));
+ SCNG(script_filtered) = NULL;
+ }
+ SCNG(script_filtered_size) = 0;
+ length = SCNG(script_org_size);
+ new_yy_start = SCNG(script_org);
+ } else {
+ if ((size_t)-1 == SCNG(input_filter)(&new_yy_start, &length, SCNG(script_org), SCNG(script_org_size))) {
+ zend_error_noreturn(E_COMPILE_ERROR, "Could not convert the script from the detected "
+ "encoding \"%s\" to a compatible encoding", zend_multibyte_get_encoding_name(LANG_SCNG(script_encoding)));
+ }
+ if (SCNG(script_filtered)) {
+ efree(SCNG(script_filtered));
+ }
+ SCNG(script_filtered) = new_yy_start;
+ SCNG(script_filtered_size) = length;
+ }
+
+ SCNG(yy_cursor) = new_yy_start + (SCNG(yy_cursor) - SCNG(yy_start));
+ SCNG(yy_marker) = new_yy_start + (SCNG(yy_marker) - SCNG(yy_start));
+ SCNG(yy_text) = new_yy_start + (SCNG(yy_text) - SCNG(yy_start));
+ SCNG(yy_limit) = new_yy_start + length;
+
+ SCNG(yy_start) = new_yy_start;
+ }
+
+
+ // TODO: avoid reallocation ???
+ # define zend_copy_value(zendlval, yytext, yyleng) \
+ if (SCNG(output_filter)) { \
+ size_t sz = 0; \
+ char *s = NULL; \
+ SCNG(output_filter)((unsigned char **)&s, &sz, (unsigned char *)yytext, (size_t)yyleng); \
+ ZVAL_STRINGL(zendlval, s, sz); \
+ efree(s); \
+ } else if (yyleng == 1) { \
+ ZVAL_INTERNED_STR(zendlval, ZSTR_CHAR((zend_uchar)*(yytext))); \
+ } else { \
+ ZVAL_STRINGL(zendlval, yytext, yyleng); \
+ }
+
+ static int zend_scan_escape_string(zval *zendlval, char *str, int len, char quote_type)
+ {
+ register char *s, *t;
+ char *end;
+
+ if (len <= 1) {
+ if (len < 1) {
+ ZVAL_EMPTY_STRING(zendlval);
+ } else {
+ zend_uchar c = (zend_uchar)*str;
+ if (c == '\n' || c == '\r') {
+ CG(zend_lineno)++;
+ }
+ ZVAL_INTERNED_STR(zendlval, ZSTR_CHAR(c));
+ }
+ goto skip_escape_conversion;
+ }
+
+ ZVAL_STRINGL(zendlval, str, len);
+
+ /* convert escape sequences */
+ s = Z_STRVAL_P(zendlval);
+ end = s+Z_STRLEN_P(zendlval);
+ while (1) {
+ if (UNEXPECTED(*s=='\\')) {
+ break;
+ }
+ if (*s == '\n' || (*s == '\r' && (*(s+1) != '\n'))) {
+ CG(zend_lineno)++;
+ }
+ s++;
+ if (s == end) {
+ goto skip_escape_conversion;
+ }
+ }
+
+ t = s;
+ while (s<end) {
+ if (*s=='\\') {
+ s++;
+ if (s >= end) {
+ *t++ = '\\';
+ break;
+ }
+
+ switch(*s) {
+ case 'n':
+ *t++ = '\n';
+ break;
+ case 'r':
+ *t++ = '\r';
+ break;
+ case 't':
+ *t++ = '\t';
+ break;
+ case 'f':
+ *t++ = '\f';
+ break;
+ case 'v':
+ *t++ = '\v';
+ break;
+ case 'e':
+ #ifdef ZEND_WIN32
+ *t++ = VK_ESCAPE;
+ #else
+ *t++ = '\e';
+ #endif
+ break;
+ case '"':
+ case '`':
+ if (*s != quote_type) {
+ *t++ = '\\';
+ *t++ = *s;
+ break;
+ }
+ case '\\':
+ case '$':
+ *t++ = *s;
+ break;
+ case 'x':
+ case 'X':
+ if (ZEND_IS_HEX(*(s+1))) {
+ char hex_buf[3] = { 0, 0, 0 };
+
+ hex_buf[0] = *(++s);
+ if (ZEND_IS_HEX(*(s+1))) {
+ hex_buf[1] = *(++s);
+ }
+ *t++ = (char) ZEND_STRTOL(hex_buf, NULL, 16);
+ } else {
+ *t++ = '\\';
+ *t++ = *s;
+ }
+ break;
+ /* UTF-8 codepoint escape, format: /\\u\{\x+\}/ */
+ case 'u':
+ {
+ /* cache where we started so we can parse after validating */
+ char *start = s + 1;
+ size_t len = 0;
+ zend_bool valid = 1;
+ unsigned long codepoint;
+
+ if (*start != '{') {
+ /* we silently let this pass to avoid breaking code
+ * with JSON in string literals (e.g. "\"\u202e\""
+ */
+ *t++ = '\\';
+ *t++ = 'u';
+ break;
+ } else {
+ /* on the other hand, invalid \u{blah} errors */
+ s++;
+ len++;
+ s++;
+ while (*s != '}') {
+ if (!ZEND_IS_HEX(*s)) {
+ valid = 0;
+ break;
+ } else {
+ len++;
+ }
+ s++;
+ }
+ if (*s == '}') {
+ valid = 1;
+ len++;
+ }
+ }
+
+ /* \u{} is invalid */
+ if (len <= 2) {
+ valid = 0;
+ }
+
+ if (!valid) {
+ zend_throw_exception(zend_ce_parse_error,
+ "Invalid UTF-8 codepoint escape sequence", 0);
+ zval_ptr_dtor(zendlval);
+ ZVAL_UNDEF(zendlval);
+ return FAILURE;
+ }
+
+ errno = 0;
+ codepoint = strtoul(start + 1, NULL, 16);
+
+ /* per RFC 3629, UTF-8 can only represent 21 bits */
+ if (codepoint > 0x10FFFF || errno) {
+ zend_throw_exception(zend_ce_parse_error,
+ "Invalid UTF-8 codepoint escape sequence: Codepoint too large", 0);
+ zval_ptr_dtor(zendlval);
+ ZVAL_UNDEF(zendlval);
+ return FAILURE;
+ }
+
+ /* based on https://en.wikipedia.org/wiki/UTF-8#Sample_code */
+ if (codepoint < 0x80) {
+ *t++ = codepoint;
+ } else if (codepoint <= 0x7FF) {
+ *t++ = (codepoint >> 6) + 0xC0;
+ *t++ = (codepoint & 0x3F) + 0x80;
+ } else if (codepoint <= 0xFFFF) {
+ *t++ = (codepoint >> 12) + 0xE0;
+ *t++ = ((codepoint >> 6) & 0x3F) + 0x80;
+ *t++ = (codepoint & 0x3F) + 0x80;
+ } else if (codepoint <= 0x10FFFF) {
+ *t++ = (codepoint >> 18) + 0xF0;
+ *t++ = ((codepoint >> 12) & 0x3F) + 0x80;
+ *t++ = ((codepoint >> 6) & 0x3F) + 0x80;
+ *t++ = (codepoint & 0x3F) + 0x80;
+ }
+ }
+ break;
+ default:
+ /* check for an octal */
+ if (ZEND_IS_OCT(*s)) {
+ char octal_buf[4] = { 0, 0, 0, 0 };
+
+ octal_buf[0] = *s;
+ if (ZEND_IS_OCT(*(s+1))) {
+ octal_buf[1] = *(++s);
+ if (ZEND_IS_OCT(*(s+1))) {
+ octal_buf[2] = *(++s);
+ }
+ }
+ if (octal_buf[2] &&
+ (octal_buf[0] > '3')) {
+ /* 3 octit values must not overflow 0xFF (\377) */
+ zend_error(E_COMPILE_WARNING, "Octal escape sequence overflow \\%s is greater than \\377", octal_buf);
+ }
+
+ *t++ = (char) ZEND_STRTOL(octal_buf, NULL, 8);
+ } else {
+ *t++ = '\\';
+ *t++ = *s;
+ }
+ break;
+ }
+ } else {
+ *t++ = *s;
+ }
+
+ if (*s == '\n' || (*s == '\r' && (*(s+1) != '\n'))) {
+ CG(zend_lineno)++;
+ }
+ s++;
+ }
+ *t = 0;
+ Z_STRLEN_P(zendlval) = t - Z_STRVAL_P(zendlval);
+
+ skip_escape_conversion:
+ if (SCNG(output_filter)) {
+ size_t sz = 0;
+ unsigned char *str;
+ // TODO: avoid realocation ???
+ s = Z_STRVAL_P(zendlval);
+ SCNG(output_filter)(&str, &sz, (unsigned char *)s, (size_t)Z_STRLEN_P(zendlval));
+ zval_ptr_dtor(zendlval);
+ ZVAL_STRINGL(zendlval, (char *) str, sz);
+ efree(str);
+ }
+ return SUCCESS;
+ }
+
+ #define HEREDOC_USING_SPACES 1
+ #define HEREDOC_USING_TABS 2
+
+ static const char *next_newline(const char *str, const char *end, size_t *newline_len) {
+ for (; str < end; str++) {
+ if (*str == '\r') {
+ *newline_len = str + 1 < end && *(str + 1) == '\n' ? 2 : 1;
+ } else if (*str == '\n') {
+ *newline_len = 1;
+ return str;
+ }
+ }
+ *newline_len = 0;
+ return NULL;
+ }
+
+ static zend_bool strip_multiline_string_indentation(
+ zval *zendlval, int indentation, zend_bool using_spaces,
+ zend_bool newline_at_start, zend_bool newline_at_end)
+ {
+ const char *str = Z_STRVAL_P(zendlval), *end = str + Z_STRLEN_P(zendlval);
+ char *copy = Z_STRVAL_P(zendlval);
+
+ int newline_count = 0;
+ size_t newline_len;
+ const char *nl;
+
+ if (!newline_at_start) {
+ nl = next_newline(str, end, &newline_len);
+ if (!nl) {
+ return 1;
+ }
+
+ str = nl + newline_len;
+ copy = (char *) nl + newline_len;
+ newline_count++;
+ } else {
+ nl = str;
+ }
+
+ /* <= intentional */
+ while (str <= end && nl) {
+ size_t skip;
+ nl = next_newline(str, end, &newline_len);
+ if (!nl && newline_at_end) {
+ nl = end;
+ }
+
+ /* Try to skip indentation */
+ for (skip = 0; skip < indentation; skip++, str++) {
+ if (str == nl) {
+ /* Don't require full indentation on whitespace-only lines */
+ break;
+ }
+
+ if (str == end || (*str != ' ' && *str != '\t')) {
+ CG(zend_lineno) += newline_count;
+ zend_throw_exception_ex(zend_ce_parse_error, 0,
+ "Invalid body indentation level (expecting an indentation level of at least %d)", indentation);
+ goto error;
+ }
+
+ if ((!using_spaces && *str == ' ') || (using_spaces && *str == '\t')) {
+ CG(zend_lineno) += newline_count;
+ zend_throw_exception(zend_ce_parse_error,
+ "Invalid indentation - tabs and spaces cannot be mixed", 0);
+ goto error;
+ }
+ }
+
+ if (str == end) {
+ break;
+ }
+
+ size_t len = nl ? (nl - str + newline_len) : (end - str);
+ memmove(copy, str, len);
+ str += len;
+ copy += len;
+ newline_count++;
+ }
+
+ *copy = '\0';
+ Z_STRLEN_P(zendlval) = copy - Z_STRVAL_P(zendlval);
+ return 1;
+
+ error:
+ zval_ptr_dtor_str(zendlval);
+ ZVAL_UNDEF(zendlval);
+
+ return 0;
+ }
+
+ static void copy_heredoc_label_stack(void *void_heredoc_label)
+ {
+ zend_heredoc_label *heredoc_label = void_heredoc_label;
+ zend_heredoc_label *new_heredoc_label = emalloc(sizeof(zend_heredoc_label));
+
+ *new_heredoc_label = *heredoc_label;
+ new_heredoc_label->label = estrndup(heredoc_label->label, heredoc_label->length);
+
+ zend_ptr_stack_push(&SCNG(heredoc_label_stack), (void *) new_heredoc_label);
+ }
+
+ #define PARSER_MODE() \
+ EXPECTED(elem != NULL)
+
+ #define RETURN_TOKEN(_token) do { \
+ token = _token; \
+ goto emit_token; \
+ } while (0)
+
+ #define RETURN_TOKEN_WITH_VAL(_token) do { \
+ token = _token; \
+ goto emit_token_with_val; \
+ } while (0)
+
+ #define RETURN_TOKEN_WITH_STR(_token, _offset) do { \
+ token = _token; \
+ offset = _offset; \
+ goto emit_token_with_str; \
+ } while (0)
+
- goto skip_token; \
++#define RETURN_OR_SKIP_TOKEN(_token) do { \
+ token = _token; \
-#line 1250 "Zend/zend_language_scanner.c"
++ if (PARSER_MODE()) { \
++ goto skip_token; \
++ } \
++ goto emit_token; \
+ } while (0)
+
+ int ZEND_FASTCALL lex_scan(zval *zendlval, zend_parser_stack_elem *elem)
+ {
+ int token;
+ int offset;
+ int start_line = CG(zend_lineno);
+
+ ZVAL_UNDEF(zendlval);
+ restart:
+ SCNG(yy_text) = YYCURSOR;
+
+
- if (YYGETCONDITION() < 7) {
++#line 1259 "Zend/zend_language_scanner.c"
+ {
+ YYCTYPE yych;
+ unsigned int yyaccept = 0;
+ if (YYGETCONDITION() < 5) {
+ if (YYGETCONDITION() < 2) {
+ if (YYGETCONDITION() < 1) {
+ goto yyc_ST_IN_SCRIPTING;
+ } else {
+ goto yyc_ST_LOOKING_FOR_PROPERTY;
+ }
+ } else {
+ if (YYGETCONDITION() < 3) {
+ goto yyc_ST_BACKQUOTE;
+ } else {
+ if (YYGETCONDITION() < 4) {
+ goto yyc_ST_DOUBLE_QUOTES;
+ } else {
+ goto yyc_ST_HEREDOC;
+ }
+ }
+ }
+ } else {
- goto yyc_ST_VAR_OFFSET;
++ if (YYGETCONDITION() < 8) {
+ if (YYGETCONDITION() < 6) {
+ goto yyc_ST_LOOKING_FOR_VARNAME;
+ } else {
- if (YYGETCONDITION() < 8) {
++ if (YYGETCONDITION() < 7) {
++ goto yyc_ST_VAR_OFFSET;
++ } else {
++ goto yyc_SHEBANG;
++ }
+ }
+ } else {
- if (YYGETCONDITION() < 9) {
++ if (YYGETCONDITION() < 9) {
+ goto yyc_INITIAL;
+ } else {
-#line 2768 "Zend/zend_language_scanner.l"
++ if (YYGETCONDITION() < 10) {
+ goto yyc_ST_END_HEREDOC;
+ } else {
+ goto yyc_ST_NOWDOC;
+ }
+ }
+ }
+ }
+ /* *********************************** */
+ yyc_ST_IN_SCRIPTING:
+ {
+ static const unsigned char yybm[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 36, 4, 0, 0, 4, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 36, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 216, 216, 152, 152, 152, 152, 152, 152,
+ 152, 152, 0, 0, 0, 0, 0, 0,
+ 0, 144, 144, 144, 144, 144, 144, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 0, 0, 0, 0, 16,
+ 0, 144, 144, 144, 144, 144, 144, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 0, 0, 0, 0, 0,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16,
+ };
+ YYDEBUG(1, *YYCURSOR);
+ YYFILL(16);
+ yych = *YYCURSOR;
+ if (yybm[0+yych] & 4) {
+ goto yy5;
+ }
+ switch (yych) {
+ case 0x00:
+ case 0x01:
+ case 0x02:
+ case 0x03:
+ case 0x04:
+ case 0x05:
+ case 0x06:
+ case 0x07:
+ case 0x08:
+ case '\t':
+ case '\n':
+ case '\v':
+ case '\f':
+ case '\r':
+ case 0x0E:
+ case 0x0F:
+ case 0x10:
+ case 0x11:
+ case 0x12:
+ case 0x13:
+ case 0x14:
+ case 0x15:
+ case 0x16:
+ case 0x17:
+ case 0x18:
+ case 0x19:
+ case 0x1A:
+ case 0x1B:
+ case 0x1C:
+ case 0x1D:
+ case 0x1E:
+ case 0x1F:
+ case 0x7F: goto yy3;
+ case ' ':
+ case '!': goto yy8;
+ case '"': goto yy10;
+ case '#': goto yy12;
+ case '$': goto yy14;
+ case '%': goto yy15;
+ case '&': goto yy16;
+ case '\'': goto yy17;
+ case '(': goto yy19;
+ case ')':
+ case ',':
+ case ';':
+ case '@':
+ case '[':
+ case ']':
+ case '~': goto yy20;
+ case '*': goto yy21;
+ case '+': goto yy22;
+ case '-': goto yy23;
+ case '.': goto yy24;
+ case '/': goto yy25;
+ case '0': goto yy26;
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '8':
+ case '9': goto yy28;
+ case ':': goto yy30;
+ case '<': goto yy31;
+ case '=': goto yy32;
+ case '>': goto yy33;
+ case '?': goto yy34;
+ case 'A':
+ case 'a': goto yy35;
+ case 'B':
+ case 'b': goto yy37;
+ case 'C':
+ case 'c': goto yy38;
+ case 'D':
+ case 'd': goto yy39;
+ case 'E':
+ case 'e': goto yy40;
+ case 'F':
+ case 'f': goto yy41;
+ case 'G':
+ case 'g': goto yy42;
+ case 'I':
+ case 'i': goto yy45;
+ case 'L':
+ case 'l': goto yy46;
+ case 'N':
+ case 'n': goto yy47;
+ case 'O':
+ case 'o': goto yy48;
+ case 'P':
+ case 'p': goto yy49;
+ case 'R':
+ case 'r': goto yy50;
+ case 'S':
+ case 's': goto yy51;
+ case 'T':
+ case 't': goto yy52;
+ case 'U':
+ case 'u': goto yy53;
+ case 'V':
+ case 'v': goto yy54;
+ case 'W':
+ case 'w': goto yy55;
+ case 'X':
+ case 'x': goto yy56;
+ case 'Y':
+ case 'y': goto yy57;
+ case '\\': goto yy58;
+ case '^': goto yy60;
+ case '_': goto yy61;
+ case '`': goto yy62;
+ case '{': goto yy64;
+ case '|': goto yy66;
+ case '}': goto yy67;
+ default: goto yy43;
+ }
+ yy3:
+ YYDEBUG(3, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(4, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- goto restart;
++#line 2862 "Zend/zend_language_scanner.l"
+ {
+ if (YYCURSOR > YYLIMIT) {
+ RETURN_TOKEN(END);
+ }
+
+ if (!SCNG(heredoc_scan_ahead)) {
+ zend_error(E_COMPILE_WARNING, "Unexpected character in input: '%c' (ASCII=%d) state=%d", yytext[0], yytext[0], YYSTATE);
+ }
-#line 1469 "Zend/zend_language_scanner.c"
++ if (PARSER_MODE()) {
++ goto restart;
++ } else {
++ RETURN_TOKEN(T_BAD_CHARACTER);
++ }
+ }
-#line 1429 "Zend/zend_language_scanner.l"
++#line 1486 "Zend/zend_language_scanner.c"
+ yy5:
+ YYDEBUG(5, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
+ YYDEBUG(6, *YYCURSOR);
+ if (yybm[0+yych] & 4) {
+ goto yy5;
+ }
+ YYDEBUG(7, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 1485 "Zend/zend_language_scanner.c"
++#line 1442 "Zend/zend_language_scanner.l"
+ {
+ goto return_whitespace;
+ }
-#line 1712 "Zend/zend_language_scanner.l"
++#line 1502 "Zend/zend_language_scanner.c"
+ yy8:
+ YYDEBUG(8, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych == '=') goto yy69;
+ yy9:
+ YYDEBUG(9, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 1497 "Zend/zend_language_scanner.c"
++#line 1736 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(yytext[0]);
+ }
-#line 2224 "Zend/zend_language_scanner.l"
++#line 1514 "Zend/zend_language_scanner.c"
+ yy10:
+ YYDEBUG(10, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(11, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 1548 "Zend/zend_language_scanner.c"
++#line 2318 "Zend/zend_language_scanner.l"
+ {
+ int bprefix = (yytext[0] != '"') ? 1 : 0;
+
+ while (YYCURSOR < YYLIMIT) {
+ switch (*YYCURSOR++) {
+ case '"':
+ yyleng = YYCURSOR - SCNG(yy_text);
+ if (EXPECTED(zend_scan_escape_string(zendlval, yytext+bprefix+1, yyleng-bprefix-2, '"') == SUCCESS)
+ || !PARSER_MODE()) {
+ RETURN_TOKEN_WITH_VAL(T_CONSTANT_ENCAPSED_STRING);
+ } else {
+ RETURN_TOKEN(T_ERROR);
+ }
+ case '$':
+ if (IS_LABEL_START(*YYCURSOR) || *YYCURSOR == '{') {
+ break;
+ }
+ continue;
+ case '{':
+ if (*YYCURSOR == '$') {
+ break;
+ }
+ continue;
+ case '\\':
+ if (YYCURSOR < YYLIMIT) {
+ YYCURSOR++;
+ }
+ /* fall through */
+ default:
+ continue;
+ }
+
+ YYCURSOR--;
+ break;
+ }
+
+ /* Remember how much was scanned to save rescanning */
+ SET_DOUBLE_QUOTES_SCANNED_LENGTH(YYCURSOR - SCNG(yy_text) - yyleng);
+
+ YYCURSOR = SCNG(yy_text) + yyleng;
+
+ BEGIN(ST_DOUBLE_QUOTES);
+ RETURN_TOKEN('"');
+ }
-#line 2051 "Zend/zend_language_scanner.l"
++#line 1565 "Zend/zend_language_scanner.c"
+ yy12:
+ YYDEBUG(12, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(13, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-
- if (PARSER_MODE()) {
- SKIP_TOKEN(T_COMMENT);
- }
- RETURN_TOKEN(T_COMMENT);
++#line 2149 "Zend/zend_language_scanner.l"
+ {
+ while (YYCURSOR < YYLIMIT) {
+ switch (*YYCURSOR++) {
+ case '\r':
+ if (*YYCURSOR == '\n') {
+ YYCURSOR++;
+ }
+ /* fall through */
+ case '\n':
+ CG(zend_lineno)++;
+ break;
+ case '?':
+ if (*YYCURSOR == '>') {
+ YYCURSOR--;
+ break;
+ }
+ /* fall through */
+ default:
+ continue;
+ }
+
+ break;
+ }
+
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 1586 "Zend/zend_language_scanner.c"
++ RETURN_OR_SKIP_TOKEN(T_COMMENT);
+ }
-#line 2134 "Zend/zend_language_scanner.l"
++#line 1599 "Zend/zend_language_scanner.c"
+ yy14:
+ YYDEBUG(14, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '_') {
+ if (yych <= '@') goto yy9;
+ if (yych <= 'Z') goto yy71;
+ if (yych <= '^') goto yy9;
+ goto yy71;
+ } else {
+ if (yych <= '`') goto yy9;
+ if (yych <= 'z') goto yy71;
+ if (yych <= 0x7F) goto yy9;
+ goto yy71;
+ }
+ yy15:
+ YYDEBUG(15, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych == '=') goto yy74;
+ goto yy9;
+ yy16:
+ YYDEBUG(16, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych == '&') goto yy76;
+ if (yych == '=') goto yy78;
+ goto yy9;
+ yy17:
+ YYDEBUG(17, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(18, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- ZVAL_STRINGL(zendlval, str, sz);
++#line 2222 "Zend/zend_language_scanner.l"
+ {
+ register char *s, *t;
+ char *end;
+ int bprefix = (yytext[0] != '\'') ? 1 : 0;
+
+ while (1) {
+ if (YYCURSOR < YYLIMIT) {
+ if (*YYCURSOR == '\'') {
+ YYCURSOR++;
+ yyleng = YYCURSOR - SCNG(yy_text);
+
+ break;
+ } else if (*YYCURSOR++ == '\\' && YYCURSOR < YYLIMIT) {
+ YYCURSOR++;
+ }
+ } else {
+ yyleng = YYLIMIT - SCNG(yy_text);
+
+ /* Unclosed single quotes; treat similar to double quotes, but without a separate token
+ * for ' (unrecognized by parser), instead of old flex fallback to "Unexpected character..."
+ * rule, which continued in ST_IN_SCRIPTING state after the quote */
+ ZVAL_NULL(zendlval);
+ RETURN_TOKEN_WITH_VAL(T_ENCAPSED_AND_WHITESPACE);
+ }
+ }
+
+ if (yyleng-bprefix-2 <= 1) {
+ if (yyleng-bprefix-2 < 1) {
+ ZVAL_EMPTY_STRING(zendlval);
+ } else {
+ zend_uchar c = (zend_uchar)*(yytext+bprefix+1);
+ if (c == '\n' || c == '\r') {
+ CG(zend_lineno)++;
+ }
+ ZVAL_INTERNED_STR(zendlval, ZSTR_CHAR(c));
+ }
+ goto skip_escape_conversion;
+ }
+ ZVAL_STRINGL(zendlval, yytext+bprefix+1, yyleng-bprefix-2);
+
+ /* convert escape sequences */
+ s = Z_STRVAL_P(zendlval);
+ end = s+Z_STRLEN_P(zendlval);
+ while (1) {
+ if (UNEXPECTED(*s=='\\')) {
+ break;
+ }
+ if (*s == '\n' || (*s == '\r' && (*(s+1) != '\n'))) {
+ CG(zend_lineno)++;
+ }
+ s++;
+ if (s == end) {
+ goto skip_escape_conversion;
+ }
+ }
+
+ t = s;
+ while (s<end) {
+ if (*s=='\\') {
+ s++;
+ if (*s == '\\' || *s == '\'') {
+ *t++ = *s;
+ } else {
+ *t++ = '\\';
+ *t++ = *s;
+ }
+ } else {
+ *t++ = *s;
+ }
+ if (*s == '\n' || (*s == '\r' && (*(s+1) != '\n'))) {
+ CG(zend_lineno)++;
+ }
+ s++;
+ }
+ *t = 0;
+ Z_STRLEN_P(zendlval) = t - Z_STRVAL_P(zendlval);
+
+ skip_escape_conversion:
+ if (SCNG(output_filter)) {
+ size_t sz = 0;
+ char *str = NULL;
++ zend_string *new_str;
+ s = Z_STRVAL_P(zendlval);
+ // TODO: avoid reallocation ???
+ SCNG(output_filter)((unsigned char **)&str, &sz, (unsigned char *)s, (size_t)Z_STRLEN_P(zendlval));
-#line 1706 "Zend/zend_language_scanner.c"
++ new_str = zend_string_init(str, sz, 0);
++ if (str != s) {
++ efree(str);
++ }
++ zend_string_release_ex(Z_STR_P(zendlval), 0);
++ ZVAL_STR(zendlval, new_str);
+ }
+ RETURN_TOKEN_WITH_VAL(T_CONSTANT_ENCAPSED_STRING);
+ }
- if (yych == 'B') goto yy116;
++#line 1725 "Zend/zend_language_scanner.c"
+ yy19:
+ YYDEBUG(19, *YYCURSOR);
+ yyaccept = 0;
+ yych = *(YYMARKER = ++YYCURSOR);
+ if (yych <= 'S') {
+ if (yych <= 'D') {
+ if (yych <= ' ') {
+ if (yych == '\t') goto yy81;
+ if (yych <= 0x1F) goto yy9;
+ goto yy81;
+ } else {
+ if (yych <= '@') goto yy9;
+ if (yych == 'C') goto yy9;
+ goto yy81;
+ }
+ } else {
+ if (yych <= 'I') {
+ if (yych == 'F') goto yy81;
+ if (yych <= 'H') goto yy9;
+ goto yy81;
+ } else {
+ if (yych == 'O') goto yy81;
+ if (yych <= 'Q') goto yy9;
+ goto yy81;
+ }
+ }
+ } else {
+ if (yych <= 'f') {
+ if (yych <= 'b') {
+ if (yych == 'U') goto yy81;
+ if (yych <= '`') goto yy9;
+ goto yy81;
+ } else {
+ if (yych == 'd') goto yy81;
+ if (yych <= 'e') goto yy9;
+ goto yy81;
+ }
+ } else {
+ if (yych <= 'o') {
+ if (yych == 'i') goto yy81;
+ if (yych <= 'n') goto yy9;
+ goto yy81;
+ } else {
+ if (yych <= 's') {
+ if (yych <= 'q') goto yy9;
+ goto yy81;
+ } else {
+ if (yych == 'u') goto yy81;
+ goto yy9;
+ }
+ }
+ }
+ }
+ yy20:
+ YYDEBUG(20, *YYCURSOR);
+ ++YYCURSOR;
+ goto yy9;
+ yy21:
+ YYDEBUG(21, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych == '*') goto yy92;
+ if (yych == '=') goto yy94;
+ goto yy9;
+ yy22:
+ YYDEBUG(22, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych == '+') goto yy96;
+ if (yych == '=') goto yy98;
+ goto yy9;
+ yy23:
+ YYDEBUG(23, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '<') {
+ if (yych == '-') goto yy100;
+ goto yy9;
+ } else {
+ if (yych <= '=') goto yy102;
+ if (yych <= '>') goto yy104;
+ goto yy9;
+ }
+ yy24:
+ YYDEBUG(24, *YYCURSOR);
+ yyaccept = 0;
+ yych = *(YYMARKER = ++YYCURSOR);
+ if (yych <= '/') {
+ if (yych == '.') goto yy106;
+ goto yy9;
+ } else {
+ if (yych <= '9') goto yy107;
+ if (yych == '=') goto yy110;
+ goto yy9;
+ }
+ yy25:
+ YYDEBUG(25, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '.') {
+ if (yych == '*') goto yy112;
+ goto yy9;
+ } else {
+ if (yych <= '/') goto yy12;
+ if (yych == '=') goto yy114;
+ goto yy9;
+ }
+ yy26:
+ YYDEBUG(26, *YYCURSOR);
+ yyaccept = 1;
+ yych = *(YYMARKER = ++YYCURSOR);
+ if (yych <= 'X') {
- goto yy118;
++ if (yych == 'B') goto yy117;
+ if (yych <= 'W') goto yy29;
- goto yy116;
++ goto yy119;
+ } else {
+ if (yych <= 'b') {
+ if (yych <= 'a') goto yy29;
- if (yych == 'x') goto yy118;
++ goto yy117;
+ } else {
-#line 1781 "Zend/zend_language_scanner.l"
++ if (yych == 'x') goto yy119;
+ goto yy29;
+ }
+ }
+ yy27:
+ YYDEBUG(27, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- char *end;
- if (yyleng < MAX_LENGTH_OF_LONG - 1) { /* Won't overflow */
- errno = 0;
- /* base must be passed explicitly for correct parse error on Windows */
- ZVAL_LONG(zendlval, ZEND_STRTOL(yytext, &end, yytext[0] == '0' ? 8 : 10));
- /* This isn't an assert, we need to ensure 019 isn't valid octal
- * Because the lexing itself doesn't do that for us
- */
- if (end != yytext + yyleng) {
- zend_throw_exception(zend_ce_parse_error, "Invalid numeric literal", 0);
- ZVAL_UNDEF(zendlval);
- if (PARSER_MODE()) {
- RETURN_TOKEN(T_ERROR);
++#line 1819 "Zend/zend_language_scanner.l"
+ {
- RETURN_TOKEN_WITH_VAL(T_LNUMBER);
++ size_t len = yyleng;
++ char *end, *lnum = yytext;
++ zend_bool is_octal = lnum[0] == '0';
++ zend_bool contains_underscores = (memchr(lnum, '_', len) != NULL);
++
++ if (contains_underscores) {
++ lnum = estrndup(lnum, len);
++ strip_underscores(lnum, &len);
++ }
++
++ /* Digits 8 and 9 are illegal in octal literals. */
++ if (is_octal) {
++ size_t i;
++ for (i = 0; i < len; i++) {
++ if (lnum[i] == '8' || lnum[i] == '9') {
++ zend_throw_exception(zend_ce_parse_error, "Invalid numeric literal", 0);
++ if (PARSER_MODE()) {
++ if (contains_underscores) {
++ efree(lnum);
++ }
++ ZVAL_UNDEF(zendlval);
++ RETURN_TOKEN(T_ERROR);
++ }
++
++ /* Continue in order to determine if this is T_LNUMBER or T_DNUMBER. */
++ len = i;
++ break;
+ }
- ZVAL_LONG(zendlval, ZEND_STRTOL(yytext, &end, 0));
+ }
++ }
++
++
++ if (len < MAX_LENGTH_OF_LONG - 1) { /* Won't overflow */
++ errno = 0;
++ /* base must be passed explicitly for correct parse error on Windows */
++ ZVAL_LONG(zendlval, ZEND_STRTOL(lnum, &end, is_octal ? 8 : 10));
++ ZEND_ASSERT(end == lnum + len);
+ } else {
+ errno = 0;
- if (yytext[0] == '0') { /* octal overflow */
- ZVAL_DOUBLE(zendlval, zend_oct_strtod(yytext, (const char **)&end));
++ ZVAL_LONG(zendlval, ZEND_STRTOL(lnum, &end, 0));
+ if (errno == ERANGE) { /* Overflow */
+ errno = 0;
- ZVAL_DOUBLE(zendlval, zend_strtod(yytext, (const char **)&end));
- }
- /* Also not an assert for the same reason */
- if (end != yytext + yyleng) {
- zend_throw_exception(zend_ce_parse_error,
- "Invalid numeric literal", 0);
- ZVAL_UNDEF(zendlval);
- if (PARSER_MODE()) {
- RETURN_TOKEN(T_ERROR);
- }
++ if (is_octal) { /* octal overflow */
++ ZVAL_DOUBLE(zendlval, zend_oct_strtod(lnum, (const char **)&end));
+ } else {
- RETURN_TOKEN_WITH_VAL(T_DNUMBER);
- }
- /* Also not an assert for the same reason */
- if (end != yytext + yyleng) {
- zend_throw_exception(zend_ce_parse_error, "Invalid numeric literal", 0);
- ZVAL_UNDEF(zendlval);
- if (PARSER_MODE()) {
- RETURN_TOKEN(T_ERROR);
++ ZVAL_DOUBLE(zendlval, zend_strtod(lnum, (const char **)&end));
+ }
-#line 1882 "Zend/zend_language_scanner.c"
++ ZEND_ASSERT(end == lnum + len);
++ if (contains_underscores) {
++ efree(lnum);
+ }
+ RETURN_TOKEN_WITH_VAL(T_DNUMBER);
+ }
++ ZEND_ASSERT(end == lnum + len);
+ }
+ ZEND_ASSERT(!errno);
++ if (contains_underscores) {
++ efree(lnum);
++ }
+ RETURN_TOKEN_WITH_VAL(T_LNUMBER);
+ }
- if (yych <= 'D') {
- if (yych == '.') goto yy107;
- goto yy27;
++#line 1912 "Zend/zend_language_scanner.c"
+ yy28:
+ YYDEBUG(28, *YYCURSOR);
+ yyaccept = 1;
+ YYMARKER = ++YYCURSOR;
+ YYFILL(3);
+ yych = *YYCURSOR;
+ yy29:
+ YYDEBUG(29, *YYCURSOR);
+ if (yybm[0+yych] & 8) {
+ goto yy28;
+ }
- if (yych <= 'E') goto yy117;
- if (yych == 'e') goto yy117;
- goto yy27;
++ if (yych <= 'E') {
++ if (yych == '.') goto yy116;
++ if (yych <= 'D') goto yy27;
++ goto yy118;
+ } else {
- if (yych == ':') goto yy119;
++ if (yych <= '_') {
++ if (yych <= '^') goto yy27;
++ goto yy120;
++ } else {
++ if (yych == 'e') goto yy118;
++ goto yy27;
++ }
+ }
+ yy30:
+ YYDEBUG(30, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych <= '<') goto yy121;
- if (yych <= '=') goto yy123;
- if (yych <= '>') goto yy125;
++ if (yych == ':') goto yy121;
+ goto yy9;
+ yy31:
+ YYDEBUG(31, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= ';') goto yy9;
- if (yych <= '=') goto yy126;
- if (yych <= '>') goto yy128;
++ if (yych <= '<') goto yy123;
++ if (yych <= '=') goto yy125;
++ if (yych <= '>') goto yy127;
+ goto yy9;
+ yy32:
+ YYDEBUG(32, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '<') goto yy9;
- if (yych <= '=') goto yy130;
- if (yych <= '>') goto yy132;
++ if (yych <= '=') goto yy128;
++ if (yych <= '>') goto yy130;
+ goto yy9;
+ yy33:
+ YYDEBUG(33, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '<') goto yy9;
- if (yych <= '>') goto yy134;
- if (yych <= '?') goto yy136;
++ if (yych <= '=') goto yy132;
++ if (yych <= '>') goto yy134;
+ goto yy9;
+ yy34:
+ YYDEBUG(34, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '=') goto yy9;
- if (yych == 'B') goto yy138;
++ if (yych <= '>') goto yy136;
++ if (yych <= '?') goto yy138;
+ goto yy9;
+ yy35:
+ YYDEBUG(35, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'S') {
+ if (yych <= 'M') {
- if (yych <= 'N') goto yy139;
++ if (yych == 'B') goto yy140;
+ goto yy44;
+ } else {
- if (yych <= 'R') goto yy140;
- goto yy141;
++ if (yych <= 'N') goto yy141;
+ if (yych <= 'Q') goto yy44;
- if (yych == 'b') goto yy138;
++ if (yych <= 'R') goto yy142;
++ goto yy143;
+ }
+ } else {
+ if (yych <= 'n') {
- goto yy139;
++ if (yych == 'b') goto yy140;
+ if (yych <= 'm') goto yy44;
- if (yych <= 'r') goto yy140;
- if (yych <= 's') goto yy141;
++ goto yy141;
+ } else {
+ if (yych <= 'q') goto yy44;
-#line 2046 "Zend/zend_language_scanner.l"
++ if (yych <= 'r') goto yy142;
++ if (yych <= 's') goto yy143;
+ goto yy44;
+ }
+ }
+ yy36:
+ YYDEBUG(36, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 1968 "Zend/zend_language_scanner.c"
++#line 2144 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN_WITH_STR(T_STRING, 0);
+ }
- if (yych <= '<') goto yy143;
++#line 2003 "Zend/zend_language_scanner.c"
+ yy37:
+ YYDEBUG(37, *YYCURSOR);
+ yyaccept = 2;
+ yych = *(YYMARKER = ++YYCURSOR);
+ if (yych <= ';') {
+ if (yych <= '"') {
+ if (yych <= '!') goto yy44;
+ goto yy10;
+ } else {
+ if (yych == '\'') goto yy17;
+ goto yy44;
+ }
+ } else {
+ if (yych <= 'R') {
- goto yy144;
++ if (yych <= '<') goto yy145;
+ if (yych <= 'Q') goto yy44;
- if (yych == 'r') goto yy144;
++ goto yy146;
+ } else {
- if (yych == 'A') goto yy145;
++ if (yych == 'r') goto yy146;
+ goto yy44;
+ }
+ }
+ yy38:
+ YYDEBUG(38, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'O') {
+ if (yych <= 'K') {
- if (yych <= 'L') goto yy146;
++ if (yych == 'A') goto yy147;
+ goto yy44;
+ } else {
- goto yy147;
++ if (yych <= 'L') goto yy148;
+ if (yych <= 'N') goto yy44;
- if (yych == 'a') goto yy145;
++ goto yy149;
+ }
+ } else {
+ if (yych <= 'k') {
- if (yych <= 'l') goto yy146;
- if (yych == 'o') goto yy147;
++ if (yych == 'a') goto yy147;
+ goto yy44;
+ } else {
- if (yych == 'E') goto yy148;
++ if (yych <= 'l') goto yy148;
++ if (yych == 'o') goto yy149;
+ goto yy44;
+ }
+ }
+ yy39:
+ YYDEBUG(39, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'O') {
+ if (yych <= 'H') {
- if (yych <= 'I') goto yy149;
++ if (yych == 'E') goto yy150;
+ goto yy44;
+ } else {
- goto yy150;
++ if (yych <= 'I') goto yy151;
+ if (yych <= 'N') goto yy44;
- if (yych == 'e') goto yy148;
++ goto yy152;
+ }
+ } else {
+ if (yych <= 'h') {
- if (yych <= 'i') goto yy149;
- if (yych == 'o') goto yy150;
++ if (yych == 'e') goto yy150;
+ goto yy44;
+ } else {
- case 'c': goto yy152;
++ if (yych <= 'i') goto yy151;
++ if (yych == 'o') goto yy152;
+ goto yy44;
+ }
+ }
+ yy40:
+ YYDEBUG(40, *YYCURSOR);
+ yych = *++YYCURSOR;
+ switch (yych) {
+ case 'C':
- case 'l': goto yy153;
++ case 'c': goto yy154;
+ case 'L':
- case 'm': goto yy154;
++ case 'l': goto yy155;
+ case 'M':
- case 'n': goto yy155;
++ case 'm': goto yy156;
+ case 'N':
- case 'v': goto yy156;
++ case 'n': goto yy157;
+ case 'V':
- case 'x': goto yy157;
++ case 'v': goto yy158;
+ case 'X':
- if (yych <= 'N') {
- if (yych == 'I') goto yy158;
++ case 'x': goto yy159;
+ default: goto yy44;
+ }
+ yy41:
+ YYDEBUG(41, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'U') {
- if (yych <= 'O') goto yy159;
++ if (yych <= 'M') {
++ if (yych == 'I') goto yy160;
+ goto yy44;
+ } else {
- goto yy160;
++ if (yych <= 'N') goto yy161;
++ if (yych <= 'O') goto yy163;
+ if (yych <= 'T') goto yy44;
- if (yych == 'i') goto yy158;
- goto yy44;
++ goto yy164;
+ }
+ } else {
+ if (yych <= 'n') {
- if (yych <= 'o') goto yy159;
- if (yych == 'u') goto yy160;
++ if (yych == 'i') goto yy160;
++ if (yych <= 'm') goto yy44;
++ goto yy161;
+ } else {
- if (yych == 'L') goto yy161;
++ if (yych <= 'o') goto yy163;
++ if (yych == 'u') goto yy164;
+ goto yy44;
+ }
+ }
+ yy42:
+ YYDEBUG(42, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'O') {
- goto yy162;
++ if (yych == 'L') goto yy165;
+ if (yych <= 'N') goto yy44;
- goto yy161;
++ goto yy166;
+ } else {
+ if (yych <= 'l') {
+ if (yych <= 'k') goto yy44;
- if (yych == 'o') goto yy162;
++ goto yy165;
+ } else {
- if (yych == 'F') goto yy163;
++ if (yych == 'o') goto yy166;
+ goto yy44;
+ }
+ }
+ yy43:
+ YYDEBUG(43, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
+ yy44:
+ YYDEBUG(44, *YYCURSOR);
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
+ goto yy36;
+ yy45:
+ YYDEBUG(45, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'S') {
+ if (yych <= 'L') {
- if (yych <= 'M') goto yy165;
- if (yych <= 'N') goto yy166;
++ if (yych == 'F') goto yy167;
+ goto yy44;
+ } else {
- goto yy167;
++ if (yych <= 'M') goto yy169;
++ if (yych <= 'N') goto yy170;
+ if (yych <= 'R') goto yy44;
- if (yych == 'f') goto yy163;
++ goto yy171;
+ }
+ } else {
+ if (yych <= 'm') {
- goto yy165;
++ if (yych == 'f') goto yy167;
+ if (yych <= 'l') goto yy44;
- if (yych <= 'n') goto yy166;
- if (yych == 's') goto yy167;
++ goto yy169;
+ } else {
- if (yych == 'I') goto yy168;
- if (yych == 'i') goto yy168;
++ if (yych <= 'n') goto yy170;
++ if (yych == 's') goto yy171;
+ goto yy44;
+ }
+ }
+ yy46:
+ YYDEBUG(46, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'A') goto yy169;
++ if (yych == 'I') goto yy172;
++ if (yych == 'i') goto yy172;
+ goto yy44;
+ yy47:
+ YYDEBUG(47, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'E') {
- goto yy170;
++ if (yych == 'A') goto yy173;
+ if (yych <= 'D') goto yy44;
- goto yy169;
++ goto yy174;
+ } else {
+ if (yych <= 'a') {
+ if (yych <= '`') goto yy44;
- if (yych == 'e') goto yy170;
++ goto yy173;
+ } else {
- if (yych == 'R') goto yy171;
- if (yych == 'r') goto yy171;
++ if (yych == 'e') goto yy174;
+ goto yy44;
+ }
+ }
+ yy48:
+ YYDEBUG(48, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'R') goto yy173;
++ if (yych == 'R') goto yy175;
++ if (yych == 'r') goto yy175;
+ goto yy44;
+ yy49:
+ YYDEBUG(49, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'U') {
- goto yy174;
++ if (yych == 'R') goto yy177;
+ if (yych <= 'T') goto yy44;
- goto yy173;
++ goto yy178;
+ } else {
+ if (yych <= 'r') {
+ if (yych <= 'q') goto yy44;
- if (yych == 'u') goto yy174;
++ goto yy177;
+ } else {
- if (yych == 'E') goto yy175;
- if (yych == 'e') goto yy175;
++ if (yych == 'u') goto yy178;
+ goto yy44;
+ }
+ }
+ yy50:
+ YYDEBUG(50, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'T') goto yy176;
++ if (yych == 'E') goto yy179;
++ if (yych == 'e') goto yy179;
+ goto yy44;
+ yy51:
+ YYDEBUG(51, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'W') {
- goto yy177;
++ if (yych == 'T') goto yy180;
+ if (yych <= 'V') goto yy44;
- goto yy176;
++ goto yy181;
+ } else {
+ if (yych <= 't') {
+ if (yych <= 's') goto yy44;
- if (yych == 'w') goto yy177;
++ goto yy180;
+ } else {
- if (yych == 'H') goto yy178;
++ if (yych == 'w') goto yy181;
+ goto yy44;
+ }
+ }
+ yy52:
+ YYDEBUG(52, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'R') {
- goto yy179;
++ if (yych == 'H') goto yy182;
+ if (yych <= 'Q') goto yy44;
- goto yy178;
++ goto yy183;
+ } else {
+ if (yych <= 'h') {
+ if (yych <= 'g') goto yy44;
- if (yych == 'r') goto yy179;
++ goto yy182;
+ } else {
- if (yych == 'N') goto yy180;
++ if (yych == 'r') goto yy183;
+ goto yy44;
+ }
+ }
+ yy53:
+ YYDEBUG(53, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'S') {
- goto yy181;
++ if (yych == 'N') goto yy184;
+ if (yych <= 'R') goto yy44;
- goto yy180;
++ goto yy185;
+ } else {
+ if (yych <= 'n') {
+ if (yych <= 'm') goto yy44;
- if (yych == 's') goto yy181;
++ goto yy184;
+ } else {
- if (yych == 'A') goto yy182;
- if (yych == 'a') goto yy182;
++ if (yych == 's') goto yy185;
+ goto yy44;
+ }
+ }
+ yy54:
+ YYDEBUG(54, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'H') goto yy183;
- if (yych == 'h') goto yy183;
++ if (yych == 'A') goto yy186;
++ if (yych == 'a') goto yy186;
+ goto yy44;
+ yy55:
+ YYDEBUG(55, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'O') goto yy184;
- if (yych == 'o') goto yy184;
++ if (yych == 'H') goto yy187;
++ if (yych == 'h') goto yy187;
+ goto yy44;
+ yy56:
+ YYDEBUG(56, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'I') goto yy185;
- if (yych == 'i') goto yy185;
++ if (yych == 'O') goto yy188;
++ if (yych == 'o') goto yy188;
+ goto yy44;
+ yy57:
+ YYDEBUG(57, *YYCURSOR);
+ yych = *++YYCURSOR;
-#line 1452 "Zend/zend_language_scanner.l"
++ if (yych == 'I') goto yy189;
++ if (yych == 'i') goto yy189;
+ goto yy44;
+ yy58:
+ YYDEBUG(58, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(59, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2257 "Zend/zend_language_scanner.c"
++#line 1465 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_NS_SEPARATOR);
+ }
- if (yych == '=') goto yy186;
++#line 2294 "Zend/zend_language_scanner.c"
+ yy60:
+ YYDEBUG(60, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == '_') goto yy188;
++ if (yych == '=') goto yy190;
+ goto yy9;
+ yy61:
+ YYDEBUG(61, *YYCURSOR);
+ yych = *++YYCURSOR;
-#line 2415 "Zend/zend_language_scanner.l"
++ if (yych == '_') goto yy192;
+ goto yy44;
+ yy62:
+ YYDEBUG(62, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(63, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2278 "Zend/zend_language_scanner.c"
++#line 2509 "Zend/zend_language_scanner.l"
+ {
+ BEGIN(ST_BACKQUOTE);
+ RETURN_TOKEN('`');
+ }
-#line 1717 "Zend/zend_language_scanner.l"
++#line 2315 "Zend/zend_language_scanner.c"
+ yy64:
+ YYDEBUG(64, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(65, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2289 "Zend/zend_language_scanner.c"
++#line 1741 "Zend/zend_language_scanner.l"
+ {
+ yy_push_state(ST_IN_SCRIPTING);
+ RETURN_TOKEN('{');
+ }
- if (yych == '=') goto yy189;
- if (yych == '|') goto yy191;
++#line 2326 "Zend/zend_language_scanner.c"
+ yy66:
+ YYDEBUG(66, *YYCURSOR);
+ yych = *++YYCURSOR;
-#line 1729 "Zend/zend_language_scanner.l"
++ if (yych == '=') goto yy193;
++ if (yych == '|') goto yy195;
+ goto yy9;
+ yy67:
+ YYDEBUG(67, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(68, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2309 "Zend/zend_language_scanner.c"
++#line 1753 "Zend/zend_language_scanner.l"
+ {
+ RESET_DOC_COMMENT();
+ if (!zend_stack_is_empty(&SCNG(state_stack))) {
+ yy_pop_state();
+ }
+ RETURN_TOKEN('}');
+ }
- if (yych == '=') goto yy193;
++#line 2346 "Zend/zend_language_scanner.c"
+ yy69:
+ YYDEBUG(69, *YYCURSOR);
+ yych = *++YYCURSOR;
-#line 1616 "Zend/zend_language_scanner.l"
++ if (yych == '=') goto yy197;
+ yy70:
+ YYDEBUG(70, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2321 "Zend/zend_language_scanner.c"
++#line 1636 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_IS_NOT_EQUAL);
+ }
-#line 2024 "Zend/zend_language_scanner.l"
++#line 2358 "Zend/zend_language_scanner.c"
+ yy71:
+ YYDEBUG(71, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
+ YYDEBUG(72, *YYCURSOR);
+ if (yych <= '^') {
+ if (yych <= '9') {
+ if (yych >= '0') goto yy71;
+ } else {
+ if (yych <= '@') goto yy73;
+ if (yych <= 'Z') goto yy71;
+ }
+ } else {
+ if (yych <= '`') {
+ if (yych <= '_') goto yy71;
+ } else {
+ if (yych <= 'z') goto yy71;
+ if (yych >= 0x80) goto yy71;
+ }
+ }
+ yy73:
+ YYDEBUG(73, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2350 "Zend/zend_language_scanner.c"
++#line 2122 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN_WITH_STR(T_VARIABLE, 1);
+ }
-#line 1660 "Zend/zend_language_scanner.l"
++#line 2387 "Zend/zend_language_scanner.c"
+ yy74:
+ YYDEBUG(74, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(75, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2360 "Zend/zend_language_scanner.c"
++#line 1680 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_MOD_EQUAL);
+ }
-#line 1688 "Zend/zend_language_scanner.l"
++#line 2397 "Zend/zend_language_scanner.c"
+ yy76:
+ YYDEBUG(76, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(77, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2370 "Zend/zend_language_scanner.c"
++#line 1712 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_BOOLEAN_AND);
+ }
-#line 1672 "Zend/zend_language_scanner.l"
++#line 2407 "Zend/zend_language_scanner.c"
+ yy78:
+ YYDEBUG(78, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(79, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2380 "Zend/zend_language_scanner.c"
++#line 1692 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_AND_EQUAL);
+ }
- if (yyaccept <= 3) {
- if (yyaccept <= 1) {
- if (yyaccept == 0) {
- goto yy9;
++#line 2417 "Zend/zend_language_scanner.c"
+ yy80:
+ YYDEBUG(80, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(7);
+ yych = *YYCURSOR;
+ yy81:
+ YYDEBUG(81, *YYCURSOR);
+ if (yybm[0+yych] & 32) {
+ goto yy80;
+ }
+ switch (yych) {
+ case 'A':
+ case 'a': goto yy83;
+ case 'B':
+ case 'b': goto yy84;
+ case 'D':
+ case 'd': goto yy85;
+ case 'F':
+ case 'f': goto yy86;
+ case 'I':
+ case 'i': goto yy87;
+ case 'O':
+ case 'o': goto yy88;
+ case 'R':
+ case 'r': goto yy89;
+ case 'S':
+ case 's': goto yy90;
+ case 'U':
+ case 'u': goto yy91;
+ default: goto yy82;
+ }
+ yy82:
+ YYDEBUG(82, *YYCURSOR);
+ YYCURSOR = YYMARKER;
- goto yy27;
++ if (yyaccept <= 4) {
++ if (yyaccept <= 2) {
++ if (yyaccept <= 1) {
++ if (yyaccept == 0) {
++ goto yy9;
++ } else {
++ goto yy27;
++ }
+ } else {
- if (yyaccept == 2) {
- goto yy36;
- } else {
++ goto yy36;
+ }
+ } else {
- if (yyaccept <= 5) {
- if (yyaccept == 4) {
- goto yy113;
++ if (yyaccept == 3) {
+ goto yy109;
++ } else {
++ goto yy113;
+ }
+ }
+ } else {
- goto yy122;
++ if (yyaccept <= 6) {
++ if (yyaccept == 5) {
++ goto yy124;
+ } else {
- goto yy457;
++ goto yy217;
+ }
+ } else {
- if (yych == 'R') goto yy195;
- if (yych == 'r') goto yy195;
++ if (yyaccept == 7) {
++ goto yy223;
++ } else {
++ goto yy464;
++ }
+ }
+ }
+ yy83:
+ YYDEBUG(83, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'I') goto yy196;
++ if (yych == 'R') goto yy199;
++ if (yych == 'r') goto yy199;
+ goto yy82;
+ yy84:
+ YYDEBUG(84, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'O') {
- goto yy197;
++ if (yych == 'I') goto yy200;
+ if (yych <= 'N') goto yy82;
- goto yy196;
++ goto yy201;
+ } else {
+ if (yych <= 'i') {
+ if (yych <= 'h') goto yy82;
- if (yych == 'o') goto yy197;
++ goto yy200;
+ } else {
- if (yych == 'O') goto yy198;
- if (yych == 'o') goto yy198;
++ if (yych == 'o') goto yy201;
+ goto yy82;
+ }
+ }
+ yy85:
+ YYDEBUG(85, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'L') goto yy199;
- if (yych == 'l') goto yy199;
++ if (yych == 'O') goto yy202;
++ if (yych == 'o') goto yy202;
+ goto yy82;
+ yy86:
+ YYDEBUG(86, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'N') goto yy200;
- if (yych == 'n') goto yy200;
++ if (yych == 'L') goto yy203;
++ if (yych == 'l') goto yy203;
+ goto yy82;
+ yy87:
+ YYDEBUG(87, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'B') goto yy201;
- if (yych == 'b') goto yy201;
++ if (yych == 'N') goto yy204;
++ if (yych == 'n') goto yy204;
+ goto yy82;
+ yy88:
+ YYDEBUG(88, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'E') goto yy202;
- if (yych == 'e') goto yy202;
++ if (yych == 'B') goto yy205;
++ if (yych == 'b') goto yy205;
+ goto yy82;
+ yy89:
+ YYDEBUG(89, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'T') goto yy203;
- if (yych == 't') goto yy203;
++ if (yych == 'E') goto yy206;
++ if (yych == 'e') goto yy206;
+ goto yy82;
+ yy90:
+ YYDEBUG(90, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'N') goto yy204;
- if (yych == 'n') goto yy204;
++ if (yych == 'T') goto yy207;
++ if (yych == 't') goto yy207;
+ goto yy82;
+ yy91:
+ YYDEBUG(91, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == '=') goto yy205;
++ if (yych == 'N') goto yy208;
++ if (yych == 'n') goto yy208;
+ goto yy82;
+ yy92:
+ YYDEBUG(92, *YYCURSOR);
+ yych = *++YYCURSOR;
-#line 1644 "Zend/zend_language_scanner.l"
++ if (yych == '=') goto yy209;
+ YYDEBUG(93, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2514 "Zend/zend_language_scanner.c"
++#line 1664 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_POW);
+ }
-#line 1640 "Zend/zend_language_scanner.l"
++#line 2559 "Zend/zend_language_scanner.c"
+ yy94:
+ YYDEBUG(94, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(95, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2524 "Zend/zend_language_scanner.c"
++#line 1660 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_MUL_EQUAL);
+ }
-#line 1596 "Zend/zend_language_scanner.l"
++#line 2569 "Zend/zend_language_scanner.c"
+ yy96:
+ YYDEBUG(96, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(97, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2534 "Zend/zend_language_scanner.c"
++#line 1616 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_INC);
+ }
-#line 1632 "Zend/zend_language_scanner.l"
++#line 2579 "Zend/zend_language_scanner.c"
+ yy98:
+ YYDEBUG(98, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(99, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2544 "Zend/zend_language_scanner.c"
++#line 1652 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_PLUS_EQUAL);
+ }
-#line 1600 "Zend/zend_language_scanner.l"
++#line 2589 "Zend/zend_language_scanner.c"
+ yy100:
+ YYDEBUG(100, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(101, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2554 "Zend/zend_language_scanner.c"
++#line 1620 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_DEC);
+ }
-#line 1636 "Zend/zend_language_scanner.l"
++#line 2599 "Zend/zend_language_scanner.c"
+ yy102:
+ YYDEBUG(102, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(103, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2564 "Zend/zend_language_scanner.c"
++#line 1656 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_MINUS_EQUAL);
+ }
-#line 1424 "Zend/zend_language_scanner.l"
++#line 2609 "Zend/zend_language_scanner.c"
+ yy104:
+ YYDEBUG(104, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(105, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2575 "Zend/zend_language_scanner.c"
++#line 1437 "Zend/zend_language_scanner.l"
+ {
+ yy_push_state(ST_LOOKING_FOR_PROPERTY);
+ RETURN_TOKEN(T_OBJECT_OPERATOR);
+ }
- if (yych == '.') goto yy207;
++#line 2620 "Zend/zend_language_scanner.c"
+ yy106:
+ YYDEBUG(106, *YYCURSOR);
+ yych = *++YYCURSOR;
- YYFILL(3);
++ if (yych == '.') goto yy211;
+ goto yy82;
+ yy107:
+ YYDEBUG(107, *YYCURSOR);
+ yyaccept = 3;
+ YYMARKER = ++YYCURSOR;
- if (yych <= 'D') {
++ YYFILL(2);
+ yych = *YYCURSOR;
++yy108:
+ YYDEBUG(108, *YYCURSOR);
- if (yych <= 'E') goto yy117;
- if (yych == 'e') goto yy117;
++ if (yych <= 'E') {
+ if (yych <= '/') goto yy109;
+ if (yych <= '9') goto yy107;
++ if (yych >= 'E') goto yy118;
+ } else {
-#line 1886 "Zend/zend_language_scanner.l"
++ if (yych <= '_') {
++ if (yych >= '_') goto yy213;
++ } else {
++ if (yych == 'e') goto yy118;
++ }
+ }
+ yy109:
+ YYDEBUG(109, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- ZVAL_DOUBLE(zendlval, zend_strtod(yytext, &end));
++#line 1949 "Zend/zend_language_scanner.l"
+ {
+ const char *end;
++ size_t len = yyleng;
++ char *dnum = yytext;
++ zend_bool contains_underscores = (memchr(dnum, '_', len) != NULL);
++
++ if (contains_underscores) {
++ dnum = estrndup(dnum, len);
++ strip_underscores(dnum, &len);
++ }
+
- ZEND_ASSERT(end == yytext + yyleng);
++ ZVAL_DOUBLE(zendlval, zend_strtod(dnum, &end));
+ /* errno isn't checked since we allow HUGE_VAL/INF overflow */
-#line 2607 "Zend/zend_language_scanner.c"
++ ZEND_ASSERT(end == dnum + len);
++ if (contains_underscores) {
++ efree(dnum);
++ }
+ RETURN_TOKEN_WITH_VAL(T_DNUMBER);
+ }
-#line 1656 "Zend/zend_language_scanner.l"
++#line 2668 "Zend/zend_language_scanner.c"
+ yy110:
+ YYDEBUG(110, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(111, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2617 "Zend/zend_language_scanner.c"
++#line 1676 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_CONCAT_EQUAL);
+ }
- if (yych == '*') goto yy209;
++#line 2678 "Zend/zend_language_scanner.c"
+ yy112:
+ YYDEBUG(112, *YYCURSOR);
+ yyaccept = 4;
+ yych = *(YYMARKER = ++YYCURSOR);
-#line 2083 "Zend/zend_language_scanner.l"
++ if (yych == '*') goto yy214;
+ yy113:
+ YYDEBUG(113, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- if (PARSER_MODE()) {
- SKIP_TOKEN(T_DOC_COMMENT);
- }
- RETURN_TOKEN(T_DOC_COMMENT);
++#line 2177 "Zend/zend_language_scanner.l"
+ {
+ int doc_com;
+
+ if (yyleng > 2) {
+ doc_com = 1;
+ RESET_DOC_COMMENT();
+ } else {
+ doc_com = 0;
+ }
+
+ while (YYCURSOR < YYLIMIT) {
+ if (*YYCURSOR++ == '*' && *YYCURSOR == '/') {
+ break;
+ }
+ }
+
+ if (YYCURSOR < YYLIMIT) {
+ YYCURSOR++;
+ } else if (!SCNG(heredoc_scan_ahead)) {
+ zend_error(E_COMPILE_WARNING, "Unterminated comment starting line %d", CG(zend_lineno));
+ }
+
+ yyleng = YYCURSOR - SCNG(yy_text);
+ HANDLE_NEWLINES(yytext, yyleng);
+
+ if (doc_com) {
+ CG(doc_comment) = zend_string_init(yytext, yyleng, 0);
- if (PARSER_MODE()) {
- SKIP_TOKEN(T_COMMENT);
- }
- RETURN_TOKEN(T_COMMENT);
++ RETURN_OR_SKIP_TOKEN(T_DOC_COMMENT);
+ }
+
-#line 2665 "Zend/zend_language_scanner.c"
++ RETURN_OR_SKIP_TOKEN(T_COMMENT);
+ }
-#line 1652 "Zend/zend_language_scanner.l"
++#line 2720 "Zend/zend_language_scanner.c"
+ yy114:
+ YYDEBUG(114, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(115, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2675 "Zend/zend_language_scanner.c"
++#line 1672 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_DIV_EQUAL);
+ }
- yych = *++YYCURSOR;
++#line 2730 "Zend/zend_language_scanner.c"
+ yy116:
+ YYDEBUG(116, *YYCURSOR);
- goto yy210;
++ yyaccept = 3;
++ yych = *(YYMARKER = ++YYCURSOR);
++ if (yych == '_') goto yy109;
++ goto yy108;
++yy117:
++ YYDEBUG(117, *YYCURSOR);
++ ++YYCURSOR;
++ YYFILL(1);
++ yych = *YYCURSOR;
+ if (yybm[0+yych] & 64) {
-yy117:
- YYDEBUG(117, *YYCURSOR);
++ goto yy215;
+ }
+ goto yy82;
- if (yych == '+') goto yy213;
++yy118:
++ YYDEBUG(118, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= ',') {
- if (yych <= '-') goto yy213;
++ if (yych == '+') goto yy218;
+ goto yy82;
+ } else {
- if (yych <= '9') goto yy214;
++ if (yych <= '-') goto yy218;
+ if (yych <= '/') goto yy82;
-yy118:
- YYDEBUG(118, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yybm[0+yych] & 128) {
- goto yy216;
- }
- goto yy82;
++ if (yych <= '9') goto yy219;
+ goto yy82;
+ }
- yyleng = YYCURSOR - SCNG(yy_text);
-#line 1448 "Zend/zend_language_scanner.l"
- {
- RETURN_TOKEN(T_PAAMAYIM_NEKUDOTAYIM);
-}
-#line 2711 "Zend/zend_language_scanner.c"
+ yy119:
+ YYDEBUG(119, *YYCURSOR);
+ ++YYCURSOR;
++ YYFILL(1);
++ yych = *YYCURSOR;
++ if (yybm[0+yych] & 128) {
++ goto yy221;
++ }
++ goto yy82;
++yy120:
+ YYDEBUG(120, *YYCURSOR);
- yyaccept = 5;
- yych = *(YYMARKER = ++YYCURSOR);
- if (yych <= ';') goto yy122;
- if (yych <= '<') goto yy219;
- if (yych <= '=') goto yy221;
-yy122:
++ ++YYCURSOR;
++ YYFILL(1);
++ yych = *YYCURSOR;
++ if (yybm[0+yych] & 8) {
++ goto yy28;
++ }
++ goto yy82;
+ yy121:
+ YYDEBUG(121, *YYCURSOR);
-#line 1704 "Zend/zend_language_scanner.l"
++ ++YYCURSOR;
+ YYDEBUG(122, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- RETURN_TOKEN(T_SL);
++#line 1461 "Zend/zend_language_scanner.l"
+ {
-#line 2726 "Zend/zend_language_scanner.c"
++ RETURN_TOKEN(T_PAAMAYIM_NEKUDOTAYIM);
+ }
- yych = *++YYCURSOR;
- if (yych == '>') goto yy223;
++#line 2785 "Zend/zend_language_scanner.c"
+ yy123:
+ YYDEBUG(123, *YYCURSOR);
-#line 1624 "Zend/zend_language_scanner.l"
++ yyaccept = 5;
++ yych = *(YYMARKER = ++YYCURSOR);
++ if (yych <= ';') goto yy124;
++ if (yych <= '<') goto yy224;
++ if (yych <= '=') goto yy226;
++yy124:
+ YYDEBUG(124, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- RETURN_TOKEN(T_IS_SMALLER_OR_EQUAL);
++#line 1728 "Zend/zend_language_scanner.l"
+ {
-#line 2737 "Zend/zend_language_scanner.c"
++ RETURN_TOKEN(T_SL);
+ }
- ++YYCURSOR;
- goto yy70;
-yy126:
- YYDEBUG(126, *YYCURSOR);
++#line 2800 "Zend/zend_language_scanner.c"
+ yy125:
+ YYDEBUG(125, *YYCURSOR);
- if (yych == '=') goto yy225;
- YYDEBUG(127, *YYCURSOR);
+ yych = *++YYCURSOR;
-#line 1612 "Zend/zend_language_scanner.l"
++ if (yych == '>') goto yy228;
++ YYDEBUG(126, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- RETURN_TOKEN(T_IS_EQUAL);
++#line 1644 "Zend/zend_language_scanner.l"
+ {
-#line 2752 "Zend/zend_language_scanner.c"
++ RETURN_TOKEN(T_IS_SMALLER_OR_EQUAL);
+ }
- ++YYCURSOR;
++#line 2811 "Zend/zend_language_scanner.c"
++yy127:
++ YYDEBUG(127, *YYCURSOR);
++ ++YYCURSOR;
++ goto yy70;
+ yy128:
+ YYDEBUG(128, *YYCURSOR);
-#line 1580 "Zend/zend_language_scanner.l"
++ yych = *++YYCURSOR;
++ if (yych == '=') goto yy230;
+ YYDEBUG(129, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- RETURN_TOKEN(T_DOUBLE_ARROW);
++#line 1632 "Zend/zend_language_scanner.l"
+ {
-#line 2762 "Zend/zend_language_scanner.c"
++ RETURN_TOKEN(T_IS_EQUAL);
+ }
-#line 1628 "Zend/zend_language_scanner.l"
++#line 2826 "Zend/zend_language_scanner.c"
+ yy130:
+ YYDEBUG(130, *YYCURSOR);
+ ++YYCURSOR;
+ YYDEBUG(131, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- RETURN_TOKEN(T_IS_GREATER_OR_EQUAL);
++#line 1600 "Zend/zend_language_scanner.l"
+ {
-#line 2772 "Zend/zend_language_scanner.c"
++ RETURN_TOKEN(T_DOUBLE_ARROW);
+ }
- yych = *++YYCURSOR;
- if (yych == '=') goto yy227;
++#line 2836 "Zend/zend_language_scanner.c"
+ yy132:
+ YYDEBUG(132, *YYCURSOR);
-#line 1708 "Zend/zend_language_scanner.l"
++ ++YYCURSOR;
+ YYDEBUG(133, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- RETURN_TOKEN(T_SR);
++#line 1648 "Zend/zend_language_scanner.l"
+ {
-#line 2783 "Zend/zend_language_scanner.c"
++ RETURN_TOKEN(T_IS_GREATER_OR_EQUAL);
+ }
- if (yych == '\n') goto yy229;
- if (yych == '\r') goto yy230;
-yy135:
++#line 2846 "Zend/zend_language_scanner.c"
+ yy134:
+ YYDEBUG(134, *YYCURSOR);
+ yych = *++YYCURSOR;
-#line 2122 "Zend/zend_language_scanner.l"
++ if (yych == '=') goto yy232;
+ YYDEBUG(135, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2803 "Zend/zend_language_scanner.c"
-yy136:
- YYDEBUG(136, *YYCURSOR);
- ++YYCURSOR;
- YYDEBUG(137, *YYCURSOR);
- yyleng = YYCURSOR - SCNG(yy_text);
-#line 1460 "Zend/zend_language_scanner.l"
- {
- RETURN_TOKEN(T_COALESCE);
-}
-#line 2813 "Zend/zend_language_scanner.c"
++#line 1732 "Zend/zend_language_scanner.l"
++ {
++ RETURN_TOKEN(T_SR);
++}
++#line 2857 "Zend/zend_language_scanner.c"
++yy136:
++ YYDEBUG(136, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == '\n') goto yy234;
++ if (yych == '\r') goto yy235;
++yy137:
++ YYDEBUG(137, *YYCURSOR);
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 2210 "Zend/zend_language_scanner.l"
+ {
+ BEGIN(INITIAL);
+ if (yytext[yyleng-1] != '>') {
+ CG(increment_lineno) = 1;
+ }
+ if (PARSER_MODE()) {
+ RETURN_TOKEN(';'); /* implicit ';' at php-end tag */
+ }
+ RETURN_TOKEN(T_CLOSE_TAG);
+ }
- if (yych == 'S') goto yy231;
- if (yych == 's') goto yy231;
- goto yy44;
-yy139:
++#line 2877 "Zend/zend_language_scanner.c"
+ yy138:
+ YYDEBUG(138, *YYCURSOR);
+ yych = *++YYCURSOR;
- yych = *++YYCURSOR;
- if (yych == 'D') goto yy232;
- if (yych == 'd') goto yy232;
- goto yy44;
++ if (yych == '=') goto yy236;
+ YYDEBUG(139, *YYCURSOR);
- if (yych == 'R') goto yy234;
- if (yych == 'r') goto yy234;
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 1473 "Zend/zend_language_scanner.l"
++ {
++ RETURN_TOKEN(T_COALESCE);
++}
++#line 2888 "Zend/zend_language_scanner.c"
+ yy140:
+ YYDEBUG(140, *YYCURSOR);
+ yych = *++YYCURSOR;
- YYDEBUG(142, *YYCURSOR);
++ if (yych == 'S') goto yy238;
++ if (yych == 's') goto yy238;
+ goto yy44;
+ yy141:
+ YYDEBUG(141, *YYCURSOR);
+ yych = *++YYCURSOR;
++ if (yych == 'D') goto yy239;
++ if (yych == 'd') goto yy239;
++ goto yy44;
++yy142:
++ YYDEBUG(142, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'R') goto yy241;
++ if (yych == 'r') goto yy241;
++ goto yy44;
++yy143:
++ YYDEBUG(143, *YYCURSOR);
++ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1364 "Zend/zend_language_scanner.l"
++ YYDEBUG(144, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2844 "Zend/zend_language_scanner.c"
-yy143:
- YYDEBUG(143, *YYCURSOR);
++#line 1377 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_AS);
+ }
- if (yych == '<') goto yy235;
++#line 2919 "Zend/zend_language_scanner.c"
++yy145:
++ YYDEBUG(145, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy144:
- YYDEBUG(144, *YYCURSOR);
++ if (yych == '<') goto yy242;
+ goto yy82;
- if (yych == 'E') goto yy236;
- if (yych == 'e') goto yy236;
++yy146:
++ YYDEBUG(146, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy145:
- YYDEBUG(145, *YYCURSOR);
++ if (yych == 'E') goto yy243;
++ if (yych == 'e') goto yy243;
+ goto yy44;
- goto yy237;
++yy147:
++ YYDEBUG(147, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'T') {
+ if (yych <= 'L') {
+ if (yych <= 'K') goto yy44;
- if (yych <= 'S') goto yy238;
- goto yy239;
++ goto yy244;
+ } else {
+ if (yych <= 'R') goto yy44;
- if (yych == 'l') goto yy237;
++ if (yych <= 'S') goto yy245;
++ goto yy246;
+ }
+ } else {
+ if (yych <= 'r') {
- if (yych <= 's') goto yy238;
- if (yych <= 't') goto yy239;
++ if (yych == 'l') goto yy244;
+ goto yy44;
+ } else {
-yy146:
- YYDEBUG(146, *YYCURSOR);
++ if (yych <= 's') goto yy245;
++ if (yych <= 't') goto yy246;
+ goto yy44;
+ }
+ }
- if (yych == 'A') goto yy240;
++yy148:
++ YYDEBUG(148, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'O') {
- goto yy241;
++ if (yych == 'A') goto yy247;
+ if (yych <= 'N') goto yy44;
- goto yy240;
++ goto yy248;
+ } else {
+ if (yych <= 'a') {
+ if (yych <= '`') goto yy44;
- if (yych == 'o') goto yy241;
++ goto yy247;
+ } else {
-yy147:
- YYDEBUG(147, *YYCURSOR);
++ if (yych == 'o') goto yy248;
+ goto yy44;
+ }
+ }
- if (yych == 'N') goto yy242;
- if (yych == 'n') goto yy242;
++yy149:
++ YYDEBUG(149, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy148:
- YYDEBUG(148, *YYCURSOR);
++ if (yych == 'N') goto yy249;
++ if (yych == 'n') goto yy249;
+ goto yy44;
- if (yych == 'C') goto yy243;
++yy150:
++ YYDEBUG(150, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'F') {
- goto yy244;
++ if (yych == 'C') goto yy250;
+ if (yych <= 'E') goto yy44;
- goto yy243;
++ goto yy251;
+ } else {
+ if (yych <= 'c') {
+ if (yych <= 'b') goto yy44;
- if (yych == 'f') goto yy244;
++ goto yy250;
+ } else {
-yy149:
- YYDEBUG(149, *YYCURSOR);
++ if (yych == 'f') goto yy251;
+ goto yy44;
+ }
+ }
- if (yych == 'E') goto yy245;
- if (yych == 'e') goto yy245;
++yy151:
++ YYDEBUG(151, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy150:
- YYDEBUG(150, *YYCURSOR);
++ if (yych == 'E') goto yy252;
++ if (yych == 'e') goto yy252;
+ goto yy44;
- YYDEBUG(151, *YYCURSOR);
++yy152:
++ YYDEBUG(152, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1332 "Zend/zend_language_scanner.l"
++ YYDEBUG(153, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 2934 "Zend/zend_language_scanner.c"
-yy152:
- YYDEBUG(152, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'H') goto yy247;
- if (yych == 'h') goto yy247;
- goto yy44;
-yy153:
- YYDEBUG(153, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'S') goto yy248;
- if (yych == 's') goto yy248;
- goto yy44;
++#line 1345 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_DO);
+ }
- if (yych == 'P') goto yy249;
- if (yych == 'p') goto yy249;
++#line 3009 "Zend/zend_language_scanner.c"
+ yy154:
+ YYDEBUG(154, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'D') goto yy250;
- if (yych == 'd') goto yy250;
++ if (yych == 'H') goto yy254;
++ if (yych == 'h') goto yy254;
+ goto yy44;
+ yy155:
+ YYDEBUG(155, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'A') goto yy251;
- if (yych == 'a') goto yy251;
++ if (yych == 'S') goto yy255;
++ if (yych == 's') goto yy255;
+ goto yy44;
+ yy156:
+ YYDEBUG(156, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'I') goto yy252;
++ if (yych == 'P') goto yy256;
++ if (yych == 'p') goto yy256;
+ goto yy44;
+ yy157:
+ YYDEBUG(157, *YYCURSOR);
+ yych = *++YYCURSOR;
++ if (yych == 'D') goto yy257;
++ if (yych == 'd') goto yy257;
++ goto yy44;
++yy158:
++ YYDEBUG(158, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'A') goto yy258;
++ if (yych == 'a') goto yy258;
++ goto yy44;
++yy159:
++ YYDEBUG(159, *YYCURSOR);
++ yych = *++YYCURSOR;
+ if (yych <= 'T') {
- goto yy253;
++ if (yych == 'I') goto yy259;
+ if (yych <= 'S') goto yy44;
- goto yy252;
++ goto yy260;
+ } else {
+ if (yych <= 'i') {
+ if (yych <= 'h') goto yy44;
- if (yych == 't') goto yy253;
++ goto yy259;
+ } else {
-yy158:
- YYDEBUG(158, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'N') goto yy254;
- if (yych == 'n') goto yy254;
- goto yy44;
-yy159:
- YYDEBUG(159, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'R') goto yy255;
- if (yych == 'r') goto yy255;
- goto yy44;
++ if (yych == 't') goto yy260;
+ goto yy44;
+ }
+ }
- if (yych == 'N') goto yy257;
- if (yych == 'n') goto yy257;
+ yy160:
+ YYDEBUG(160, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'O') goto yy258;
- if (yych == 'o') goto yy258;
- goto yy44;
-yy162:
++ if (yych == 'N') goto yy261;
++ if (yych == 'n') goto yy261;
+ goto yy44;
+ yy161:
+ YYDEBUG(161, *YYCURSOR);
+ yych = *++YYCURSOR;
- yych = *++YYCURSOR;
- if (yych == 'T') goto yy259;
- if (yych == 't') goto yy259;
- goto yy44;
++ if (yybm[0+yych] & 16) {
++ goto yy43;
++ }
+ YYDEBUG(162, *YYCURSOR);
- YYDEBUG(164, *YYCURSOR);
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 1279 "Zend/zend_language_scanner.l"
++ {
++ RETURN_TOKEN(T_FN);
++}
++#line 3074 "Zend/zend_language_scanner.c"
+ yy163:
+ YYDEBUG(163, *YYCURSOR);
+ yych = *++YYCURSOR;
++ if (yych == 'R') goto yy262;
++ if (yych == 'r') goto yy262;
++ goto yy44;
++yy164:
++ YYDEBUG(164, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'N') goto yy264;
++ if (yych == 'n') goto yy264;
++ goto yy44;
++yy165:
++ YYDEBUG(165, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'O') goto yy265;
++ if (yych == 'o') goto yy265;
++ goto yy44;
++yy166:
++ YYDEBUG(166, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'T') goto yy266;
++ if (yych == 't') goto yy266;
++ goto yy44;
++yy167:
++ YYDEBUG(167, *YYCURSOR);
++ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1308 "Zend/zend_language_scanner.l"
++ YYDEBUG(168, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 3023 "Zend/zend_language_scanner.c"
-yy165:
- YYDEBUG(165, *YYCURSOR);
++#line 1321 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_IF);
+ }
- if (yych == 'P') goto yy260;
- if (yych == 'p') goto yy260;
++#line 3111 "Zend/zend_language_scanner.c"
++yy169:
++ YYDEBUG(169, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy166:
- YYDEBUG(166, *YYCURSOR);
++ if (yych == 'P') goto yy267;
++ if (yych == 'p') goto yy267;
+ goto yy44;
- goto yy261;
++yy170:
++ YYDEBUG(170, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'T') {
+ if (yych <= 'C') {
+ if (yych <= 'B') goto yy44;
- if (yych <= 'S') goto yy262;
- goto yy263;
++ goto yy268;
+ } else {
+ if (yych <= 'R') goto yy44;
- if (yych == 'c') goto yy261;
++ if (yych <= 'S') goto yy269;
++ goto yy270;
+ }
+ } else {
+ if (yych <= 'r') {
- if (yych <= 's') goto yy262;
- if (yych <= 't') goto yy263;
++ if (yych == 'c') goto yy268;
+ goto yy44;
+ } else {
-yy167:
- YYDEBUG(167, *YYCURSOR);
++ if (yych <= 's') goto yy269;
++ if (yych <= 't') goto yy270;
+ goto yy44;
+ }
+ }
- if (yych == 'S') goto yy264;
- if (yych == 's') goto yy264;
++yy171:
++ YYDEBUG(171, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy168:
- YYDEBUG(168, *YYCURSOR);
++ if (yych == 'S') goto yy271;
++ if (yych == 's') goto yy271;
+ goto yy44;
- if (yych == 'S') goto yy265;
- if (yych == 's') goto yy265;
++yy172:
++ YYDEBUG(172, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy169:
- YYDEBUG(169, *YYCURSOR);
++ if (yych == 'S') goto yy272;
++ if (yych == 's') goto yy272;
+ goto yy44;
- if (yych == 'M') goto yy266;
- if (yych == 'm') goto yy266;
++yy173:
++ YYDEBUG(173, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy170:
- YYDEBUG(170, *YYCURSOR);
++ if (yych == 'M') goto yy273;
++ if (yych == 'm') goto yy273;
+ goto yy44;
- if (yych == 'W') goto yy267;
- if (yych == 'w') goto yy267;
++yy174:
++ YYDEBUG(174, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy171:
- YYDEBUG(171, *YYCURSOR);
++ if (yych == 'W') goto yy274;
++ if (yych == 'w') goto yy274;
+ goto yy44;
- YYDEBUG(172, *YYCURSOR);
++yy175:
++ YYDEBUG(175, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1692 "Zend/zend_language_scanner.l"
++ YYDEBUG(176, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 3088 "Zend/zend_language_scanner.c"
-yy173:
- YYDEBUG(173, *YYCURSOR);
++#line 1716 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_LOGICAL_OR);
+ }
- if (yych == 'I') goto yy269;
++#line 3176 "Zend/zend_language_scanner.c"
++yy177:
++ YYDEBUG(177, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'O') {
- goto yy270;
++ if (yych == 'I') goto yy276;
+ if (yych <= 'N') goto yy44;
- goto yy269;
- } else {
- if (yych == 'o') goto yy270;
- goto yy44;
- }
- }
-yy174:
- YYDEBUG(174, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'B') goto yy271;
- if (yych == 'b') goto yy271;
- goto yy44;
-yy175:
- YYDEBUG(175, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych <= 'T') {
- if (yych == 'Q') goto yy272;
- if (yych <= 'S') goto yy44;
- goto yy273;
- } else {
- if (yych <= 'q') {
- if (yych <= 'p') goto yy44;
- goto yy272;
++ goto yy277;
+ } else {
+ if (yych <= 'i') {
+ if (yych <= 'h') goto yy44;
- if (yych == 't') goto yy273;
++ goto yy276;
+ } else {
-yy176:
- YYDEBUG(176, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'A') goto yy274;
- if (yych == 'a') goto yy274;
- goto yy44;
-yy177:
- YYDEBUG(177, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'I') goto yy275;
- if (yych == 'i') goto yy275;
- goto yy44;
++ if (yych == 'o') goto yy277;
+ goto yy44;
+ }
+ }
- if (yych == 'R') goto yy276;
- if (yych == 'r') goto yy276;
+ yy178:
+ YYDEBUG(178, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych <= 'Y') {
- if (yych == 'A') goto yy277;
- if (yych <= 'X') goto yy44;
- goto yy278;
++ if (yych == 'B') goto yy278;
++ if (yych == 'b') goto yy278;
+ goto yy44;
+ yy179:
+ YYDEBUG(179, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych <= 'a') {
- if (yych <= '`') goto yy44;
- goto yy277;
++ if (yych <= 'T') {
++ if (yych == 'Q') goto yy279;
++ if (yych <= 'S') goto yy44;
++ goto yy280;
+ } else {
- if (yych == 'y') goto yy278;
++ if (yych <= 'q') {
++ if (yych <= 'p') goto yy44;
++ goto yy279;
+ } else {
- if (yych == 'S') goto yy280;
- if (yych == 's') goto yy280;
++ if (yych == 't') goto yy280;
+ goto yy44;
+ }
+ }
+ yy180:
+ YYDEBUG(180, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'E') goto yy281;
- if (yych == 'e') goto yy281;
++ if (yych == 'A') goto yy281;
++ if (yych == 'a') goto yy281;
+ goto yy44;
+ yy181:
+ YYDEBUG(181, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'I') goto yy285;
- if (yych == 'i') goto yy285;
- goto yy44;
++ if (yych == 'I') goto yy282;
++ if (yych == 'i') goto yy282;
+ goto yy44;
+ yy182:
+ YYDEBUG(182, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych == 'R') goto yy283;
+ if (yych == 'r') goto yy283;
+ goto yy44;
+ yy183:
+ YYDEBUG(183, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'R') goto yy286;
- if (yych == 'r') goto yy286;
++ if (yych <= 'Y') {
++ if (yych == 'A') goto yy284;
++ if (yych <= 'X') goto yy44;
++ goto yy285;
++ } else {
++ if (yych <= 'a') {
++ if (yych <= '`') goto yy44;
++ goto yy284;
++ } else {
++ if (yych == 'y') goto yy285;
++ goto yy44;
++ }
++ }
+ yy184:
+ YYDEBUG(184, *YYCURSOR);
+ yych = *++YYCURSOR;
- ++YYCURSOR;
++ if (yych == 'S') goto yy287;
++ if (yych == 's') goto yy287;
+ goto yy44;
+ yy185:
+ YYDEBUG(185, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych == 'E') goto yy288;
+ if (yych == 'e') goto yy288;
+ goto yy44;
+ yy186:
+ YYDEBUG(186, *YYCURSOR);
-#line 1680 "Zend/zend_language_scanner.l"
++ yych = *++YYCURSOR;
++ if (yych == 'R') goto yy290;
++ if (yych == 'r') goto yy290;
++ goto yy44;
++yy187:
+ YYDEBUG(187, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'I') goto yy292;
++ if (yych == 'i') goto yy292;
++ goto yy44;
++yy188:
++ YYDEBUG(188, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'R') goto yy293;
++ if (yych == 'r') goto yy293;
++ goto yy44;
++yy189:
++ YYDEBUG(189, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'E') goto yy295;
++ if (yych == 'e') goto yy295;
++ goto yy44;
++yy190:
++ YYDEBUG(190, *YYCURSOR);
++ ++YYCURSOR;
++ YYDEBUG(191, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 3206 "Zend/zend_language_scanner.c"
-yy188:
- YYDEBUG(188, *YYCURSOR);
++#line 1700 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_XOR_EQUAL);
+ }
- case 'c': goto yy289;
++#line 3294 "Zend/zend_language_scanner.c"
++yy192:
++ YYDEBUG(192, *YYCURSOR);
+ yych = *++YYCURSOR;
+ switch (yych) {
+ case 'C':
- case 'd': goto yy290;
++ case 'c': goto yy296;
+ case 'D':
- case 'f': goto yy291;
++ case 'd': goto yy297;
+ case 'F':
- case 'h': goto yy292;
++ case 'f': goto yy298;
+ case 'H':
- case 'l': goto yy293;
++ case 'h': goto yy299;
+ case 'L':
- case 'm': goto yy294;
++ case 'l': goto yy300;
+ case 'M':
- case 'n': goto yy295;
++ case 'm': goto yy301;
+ case 'N':
- case 't': goto yy296;
++ case 'n': goto yy302;
+ case 'T':
-yy189:
- YYDEBUG(189, *YYCURSOR);
++ case 't': goto yy303;
+ default: goto yy44;
+ }
- YYDEBUG(190, *YYCURSOR);
++yy193:
++ YYDEBUG(193, *YYCURSOR);
+ ++YYCURSOR;
-#line 1676 "Zend/zend_language_scanner.l"
++ YYDEBUG(194, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 3238 "Zend/zend_language_scanner.c"
-yy191:
- YYDEBUG(191, *YYCURSOR);
++#line 1696 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_OR_EQUAL);
+ }
- YYDEBUG(192, *YYCURSOR);
++#line 3326 "Zend/zend_language_scanner.c"
++yy195:
++ YYDEBUG(195, *YYCURSOR);
+ ++YYCURSOR;
-#line 1684 "Zend/zend_language_scanner.l"
++ YYDEBUG(196, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 3248 "Zend/zend_language_scanner.c"
-yy193:
- YYDEBUG(193, *YYCURSOR);
++#line 1708 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_BOOLEAN_OR);
+ }
- YYDEBUG(194, *YYCURSOR);
++#line 3336 "Zend/zend_language_scanner.c"
++yy197:
++ YYDEBUG(197, *YYCURSOR);
+ ++YYCURSOR;
-#line 1608 "Zend/zend_language_scanner.l"
++ YYDEBUG(198, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 3258 "Zend/zend_language_scanner.c"
-yy195:
- YYDEBUG(195, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'R') goto yy297;
- if (yych == 'r') goto yy297;
- goto yy82;
-yy196:
- YYDEBUG(196, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'N') goto yy298;
- if (yych == 'n') goto yy298;
- goto yy82;
-yy197:
- YYDEBUG(197, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'O') goto yy299;
- if (yych == 'o') goto yy299;
- goto yy82;
-yy198:
- YYDEBUG(198, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'U') goto yy300;
- if (yych == 'u') goto yy300;
- goto yy82;
++#line 1628 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_IS_NOT_IDENTICAL);
+ }
- if (yych == 'O') goto yy301;
- if (yych == 'o') goto yy301;
++#line 3346 "Zend/zend_language_scanner.c"
+ yy199:
+ YYDEBUG(199, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'T') goto yy302;
- if (yych == 't') goto yy302;
++ if (yych == 'R') goto yy304;
++ if (yych == 'r') goto yy304;
+ goto yy82;
+ yy200:
+ YYDEBUG(200, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'J') goto yy303;
- if (yych == 'j') goto yy303;
++ if (yych == 'N') goto yy305;
++ if (yych == 'n') goto yy305;
+ goto yy82;
+ yy201:
+ YYDEBUG(201, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'A') goto yy304;
- if (yych == 'a') goto yy304;
++ if (yych == 'O') goto yy306;
++ if (yych == 'o') goto yy306;
+ goto yy82;
+ yy202:
+ YYDEBUG(202, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'R') goto yy305;
- if (yych == 'r') goto yy305;
++ if (yych == 'U') goto yy307;
++ if (yych == 'u') goto yy307;
+ goto yy82;
+ yy203:
+ YYDEBUG(203, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'S') goto yy306;
- if (yych == 's') goto yy306;
++ if (yych == 'O') goto yy308;
++ if (yych == 'o') goto yy308;
+ goto yy82;
+ yy204:
+ YYDEBUG(204, *YYCURSOR);
+ yych = *++YYCURSOR;
- ++YYCURSOR;
++ if (yych == 'T') goto yy309;
++ if (yych == 't') goto yy309;
+ goto yy82;
+ yy205:
+ YYDEBUG(205, *YYCURSOR);
-#line 1648 "Zend/zend_language_scanner.l"
++ yych = *++YYCURSOR;
++ if (yych == 'J') goto yy310;
++ if (yych == 'j') goto yy310;
++ goto yy82;
++yy206:
+ YYDEBUG(206, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'A') goto yy311;
++ if (yych == 'a') goto yy311;
++ goto yy82;
++yy207:
++ YYDEBUG(207, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'R') goto yy312;
++ if (yych == 'r') goto yy312;
++ goto yy82;
++yy208:
++ YYDEBUG(208, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'S') goto yy313;
++ if (yych == 's') goto yy313;
++ goto yy82;
++yy209:
++ YYDEBUG(209, *YYCURSOR);
++ ++YYCURSOR;
++ YYDEBUG(210, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 3328 "Zend/zend_language_scanner.c"
-yy207:
- YYDEBUG(207, *YYCURSOR);
++#line 1668 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_POW_EQUAL);
+ }
- YYDEBUG(208, *YYCURSOR);
++#line 3416 "Zend/zend_language_scanner.c"
++yy211:
++ YYDEBUG(211, *YYCURSOR);
+ ++YYCURSOR;
-#line 1456 "Zend/zend_language_scanner.l"
++ YYDEBUG(212, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 3338 "Zend/zend_language_scanner.c"
-yy209:
- YYDEBUG(209, *YYCURSOR);
++#line 1469 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_ELLIPSIS);
+ }
- if (yych <= '\n') goto yy307;
++#line 3426 "Zend/zend_language_scanner.c"
++yy213:
++ YYDEBUG(213, *YYCURSOR);
++ ++YYCURSOR;
++ YYFILL(1);
++ yych = *YYCURSOR;
++ if (yych <= '/') goto yy82;
++ if (yych <= '9') goto yy107;
++ goto yy82;
++yy214:
++ YYDEBUG(214, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '\f') {
+ if (yych <= 0x08) goto yy82;
- if (yych <= '\r') goto yy307;
- if (yych == ' ') goto yy307;
++ if (yych <= '\n') goto yy314;
+ goto yy82;
+ } else {
-yy210:
- YYDEBUG(210, *YYCURSOR);
- ++YYCURSOR;
++ if (yych <= '\r') goto yy314;
++ if (yych == ' ') goto yy314;
+ goto yy82;
+ }
- YYDEBUG(211, *YYCURSOR);
++yy215:
++ YYDEBUG(215, *YYCURSOR);
++ yyaccept = 6;
++ YYMARKER = ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- goto yy210;
++ YYDEBUG(216, *YYCURSOR);
+ if (yybm[0+yych] & 64) {
- YYDEBUG(212, *YYCURSOR);
++ goto yy215;
+ }
-#line 1753 "Zend/zend_language_scanner.l"
++ if (yych == '_') goto yy117;
++yy217:
++ YYDEBUG(217, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- char *bin = yytext + 2; /* Skip "0b" */
- int len = yyleng - 2;
- char *end;
++#line 1777 "Zend/zend_language_scanner.l"
+ {
- while (*bin == '0') {
++ /* The +/- 2 skips "0b" */
++ size_t len = yyleng - 2;
++ char *end, *bin = yytext + 2;
++ zend_bool contains_underscores;
+
+ /* Skip any leading 0s */
- ZEND_ASSERT(!errno && end == yytext + yyleng);
++ while (len > 0 && (*bin == '0' || *bin == '_')) {
+ ++bin;
+ --len;
+ }
+
++ contains_underscores = (memchr(bin, '_', len) != NULL);
++
++ if (contains_underscores) {
++ bin = estrndup(bin, len);
++ strip_underscores(bin, &len);
++ }
++
+ if (len < SIZEOF_ZEND_LONG * 8) {
+ if (len == 0) {
+ ZVAL_LONG(zendlval, 0);
+ } else {
+ errno = 0;
+ ZVAL_LONG(zendlval, ZEND_STRTOL(bin, &end, 2));
- ZEND_ASSERT(end == yytext + yyleng);
++ ZEND_ASSERT(!errno && end == bin + len);
++ }
++ if (contains_underscores) {
++ efree(bin);
+ }
+ RETURN_TOKEN_WITH_VAL(T_LNUMBER);
+ } else {
+ ZVAL_DOUBLE(zendlval, zend_bin_strtod(bin, (const char **)&end));
+ /* errno isn't checked since we allow HUGE_VAL/INF overflow */
-#line 3390 "Zend/zend_language_scanner.c"
-yy213:
- YYDEBUG(213, *YYCURSOR);
- yych = *++YYCURSOR;
++ ZEND_ASSERT(end == bin + len);
++ if (contains_underscores) {
++ efree(bin);
++ }
+ RETURN_TOKEN_WITH_VAL(T_DNUMBER);
+ }
+ }
-yy214:
- YYDEBUG(214, *YYCURSOR);
- ++YYCURSOR;
++#line 3503 "Zend/zend_language_scanner.c"
++yy218:
++ YYDEBUG(218, *YYCURSOR);
++ ++YYCURSOR;
++ YYFILL(1);
++ yych = *YYCURSOR;
+ if (yych <= '/') goto yy82;
+ if (yych >= ':') goto yy82;
- YYDEBUG(215, *YYCURSOR);
++yy219:
++ YYDEBUG(219, *YYCURSOR);
++ yyaccept = 3;
++ YYMARKER = ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- if (yych <= '9') goto yy214;
++ YYDEBUG(220, *YYCURSOR);
+ if (yych <= '/') goto yy109;
-yy216:
- YYDEBUG(216, *YYCURSOR);
- ++YYCURSOR;
++ if (yych <= '9') goto yy219;
++ if (yych == '_') goto yy218;
+ goto yy109;
- YYDEBUG(217, *YYCURSOR);
++yy221:
++ YYDEBUG(221, *YYCURSOR);
++ yyaccept = 7;
++ YYMARKER = ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- goto yy216;
++ YYDEBUG(222, *YYCURSOR);
+ if (yybm[0+yych] & 128) {
- YYDEBUG(218, *YYCURSOR);
++ goto yy221;
+ }
-#line 1833 "Zend/zend_language_scanner.l"
++ if (yych == '_') goto yy119;
++yy223:
++ YYDEBUG(223, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- char *hex = yytext + 2; /* Skip "0x" */
- int len = yyleng - 2;
- char *end;
++#line 1882 "Zend/zend_language_scanner.l"
+ {
- while (*hex == '0') {
- hex++;
- len--;
++ /* The +/- 2 skips "0x" */
++ size_t len = yyleng - 2;
++ char *end, *hex = yytext + 2;
++ zend_bool contains_underscores;
+
+ /* Skip any leading 0s */
-#line 3444 "Zend/zend_language_scanner.c"
-yy219:
- YYDEBUG(219, *YYCURSOR);
++ while (len > 0 && (*hex == '0' || *hex == '_')) {
++ ++hex;
++ --len;
++ }
++
++ contains_underscores = (memchr(hex, '_', len) != NULL);
++
++ if (contains_underscores) {
++ hex = estrndup(hex, len);
++ strip_underscores(hex, &len);
+ }
+
+ if (len < SIZEOF_ZEND_LONG * 2 || (len == SIZEOF_ZEND_LONG * 2 && *hex <= '7')) {
+ if (len == 0) {
+ ZVAL_LONG(zendlval, 0);
+ } else {
+ errno = 0;
+ ZVAL_LONG(zendlval, ZEND_STRTOL(hex, &end, 16));
+ ZEND_ASSERT(!errno && end == hex + len);
+ }
++ if (contains_underscores) {
++ efree(hex);
++ }
+ RETURN_TOKEN_WITH_VAL(T_LNUMBER);
+ } else {
+ ZVAL_DOUBLE(zendlval, zend_hex_strtod(hex, (const char **)&end));
+ /* errno isn't checked since we allow HUGE_VAL/INF overflow */
+ ZEND_ASSERT(end == hex + len);
++ if (contains_underscores) {
++ efree(hex);
++ }
+ RETURN_TOKEN_WITH_VAL(T_DNUMBER);
+ }
+ }
- YYDEBUG(220, *YYCURSOR);
++#line 3578 "Zend/zend_language_scanner.c"
++yy224:
++ YYDEBUG(224, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(2);
+ yych = *YYCURSOR;
- if (yych == '\t') goto yy219;
++ YYDEBUG(225, *YYCURSOR);
+ if (yych <= '\'') {
+ if (yych <= ' ') {
- goto yy219;
++ if (yych == '\t') goto yy224;
+ if (yych <= 0x1F) goto yy82;
- if (yych == '"') goto yy309;
++ goto yy224;
+ } else {
- goto yy310;
++ if (yych == '"') goto yy316;
+ if (yych <= '&') goto yy82;
- if (yych <= 'Z') goto yy311;
++ goto yy317;
+ }
+ } else {
+ if (yych <= '_') {
+ if (yych <= '@') goto yy82;
- goto yy311;
++ if (yych <= 'Z') goto yy318;
+ if (yych <= '^') goto yy82;
- if (yych <= 'z') goto yy311;
++ goto yy318;
+ } else {
+ if (yych <= '`') goto yy82;
- goto yy311;
++ if (yych <= 'z') goto yy318;
+ if (yych <= 0x7F) goto yy82;
-yy221:
- YYDEBUG(221, *YYCURSOR);
++ goto yy318;
+ }
+ }
- YYDEBUG(222, *YYCURSOR);
++yy226:
++ YYDEBUG(226, *YYCURSOR);
+ ++YYCURSOR;
-#line 1664 "Zend/zend_language_scanner.l"
++ YYDEBUG(227, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 3483 "Zend/zend_language_scanner.c"
-yy223:
- YYDEBUG(223, *YYCURSOR);
++#line 1684 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_SL_EQUAL);
+ }
- YYDEBUG(224, *YYCURSOR);
++#line 3617 "Zend/zend_language_scanner.c"
++yy228:
++ YYDEBUG(228, *YYCURSOR);
+ ++YYCURSOR;
-#line 1620 "Zend/zend_language_scanner.l"
++ YYDEBUG(229, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 3493 "Zend/zend_language_scanner.c"
-yy225:
- YYDEBUG(225, *YYCURSOR);
++#line 1640 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_SPACESHIP);
+ }
- YYDEBUG(226, *YYCURSOR);
++#line 3627 "Zend/zend_language_scanner.c"
++yy230:
++ YYDEBUG(230, *YYCURSOR);
+ ++YYCURSOR;
-#line 1604 "Zend/zend_language_scanner.l"
++ YYDEBUG(231, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 3503 "Zend/zend_language_scanner.c"
-yy227:
- YYDEBUG(227, *YYCURSOR);
- ++YYCURSOR;
- YYDEBUG(228, *YYCURSOR);
- yyleng = YYCURSOR - SCNG(yy_text);
-#line 1668 "Zend/zend_language_scanner.l"
- {
- RETURN_TOKEN(T_SR_EQUAL);
-}
-#line 3513 "Zend/zend_language_scanner.c"
-yy229:
- YYDEBUG(229, *YYCURSOR);
- ++YYCURSOR;
- goto yy135;
-yy230:
- YYDEBUG(230, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == '\n') goto yy229;
- goto yy135;
-yy231:
- YYDEBUG(231, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'T') goto yy313;
- if (yych == 't') goto yy313;
- goto yy44;
++#line 1624 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_IS_IDENTICAL);
+ }
- yych = *++YYCURSOR;
- if (yybm[0+yych] & 16) {
- goto yy43;
- }
++#line 3637 "Zend/zend_language_scanner.c"
+ yy232:
+ YYDEBUG(232, *YYCURSOR);
-#line 1696 "Zend/zend_language_scanner.l"
++ ++YYCURSOR;
+ YYDEBUG(233, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- RETURN_TOKEN(T_LOGICAL_AND);
++#line 1688 "Zend/zend_language_scanner.l"
+ {
-#line 3541 "Zend/zend_language_scanner.c"
++ RETURN_TOKEN(T_SR_EQUAL);
+ }
- yych = *++YYCURSOR;
- if (yych == 'A') goto yy314;
- if (yych == 'a') goto yy314;
- goto yy44;
++#line 3647 "Zend/zend_language_scanner.c"
+ yy234:
+ YYDEBUG(234, *YYCURSOR);
- if (yych == '<') goto yy219;
- goto yy82;
++ ++YYCURSOR;
++ goto yy137;
+ yy235:
+ YYDEBUG(235, *YYCURSOR);
+ yych = *++YYCURSOR;
- yych = *++YYCURSOR;
- if (yych == 'A') goto yy315;
- if (yych == 'a') goto yy315;
- goto yy44;
-yy237:
++ if (yych == '\n') goto yy234;
++ goto yy137;
+ yy236:
+ YYDEBUG(236, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'L') goto yy316;
- if (yych == 'l') goto yy316;
- goto yy44;
++ ++YYCURSOR;
+ YYDEBUG(237, *YYCURSOR);
- if (yych == 'E') goto yy317;
- if (yych == 'e') goto yy317;
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 1704 "Zend/zend_language_scanner.l"
++ {
++ RETURN_TOKEN(T_COALESCE_EQUAL);
++}
++#line 3666 "Zend/zend_language_scanner.c"
+ yy238:
+ YYDEBUG(238, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'C') goto yy319;
- if (yych == 'c') goto yy319;
- goto yy44;
-yy240:
++ if (yych == 'T') goto yy320;
++ if (yych == 't') goto yy320;
+ goto yy44;
+ yy239:
+ YYDEBUG(239, *YYCURSOR);
+ yych = *++YYCURSOR;
- yych = *++YYCURSOR;
- if (yych == 'S') goto yy320;
- if (yych == 's') goto yy320;
- goto yy44;
++ if (yybm[0+yych] & 16) {
++ goto yy43;
++ }
+ YYDEBUG(240, *YYCURSOR);
- if (yych == 'N') goto yy321;
- if (yych == 'n') goto yy321;
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 1720 "Zend/zend_language_scanner.l"
++ {
++ RETURN_TOKEN(T_LOGICAL_AND);
++}
++#line 3685 "Zend/zend_language_scanner.c"
+ yy241:
+ YYDEBUG(241, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych <= 'T') {
- if (yych <= 'R') goto yy44;
- if (yych <= 'S') goto yy322;
- goto yy323;
- } else {
- if (yych <= 'r') goto yy44;
- if (yych <= 's') goto yy322;
- if (yych <= 't') goto yy323;
- goto yy44;
- }
++ if (yych == 'A') goto yy321;
++ if (yych == 'a') goto yy321;
+ goto yy44;
+ yy242:
+ YYDEBUG(242, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'L') goto yy324;
- if (yych == 'l') goto yy324;
++ if (yych == '<') goto yy224;
++ goto yy82;
+ yy243:
+ YYDEBUG(243, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'A') goto yy325;
- if (yych == 'a') goto yy325;
++ if (yych == 'A') goto yy322;
++ if (yych == 'a') goto yy322;
+ goto yy44;
+ yy244:
+ YYDEBUG(244, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yybm[0+yych] & 16) {
- goto yy43;
- }
++ if (yych == 'L') goto yy323;
++ if (yych == 'l') goto yy323;
+ goto yy44;
+ yy245:
+ YYDEBUG(245, *YYCURSOR);
+ yych = *++YYCURSOR;
- yyleng = YYCURSOR - SCNG(yy_text);
-#line 1266 "Zend/zend_language_scanner.l"
- {
- RETURN_TOKEN(T_EXIT);
-}
-#line 3626 "Zend/zend_language_scanner.c"
++ if (yych == 'E') goto yy324;
++ if (yych == 'e') goto yy324;
++ goto yy44;
++yy246:
+ YYDEBUG(246, *YYCURSOR);
- if (yych == 'O') goto yy326;
- if (yych == 'o') goto yy326;
++ yych = *++YYCURSOR;
++ if (yych == 'C') goto yy326;
++ if (yych == 'c') goto yy326;
++ goto yy44;
+ yy247:
+ YYDEBUG(247, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'E') goto yy328;
- if (yych == 'e') goto yy328;
++ if (yych == 'S') goto yy327;
++ if (yych == 's') goto yy327;
+ goto yy44;
+ yy248:
+ YYDEBUG(248, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'T') goto yy330;
- if (yych == 't') goto yy330;
- goto yy44;
++ if (yych == 'N') goto yy328;
++ if (yych == 'n') goto yy328;
+ goto yy44;
+ yy249:
+ YYDEBUG(249, *YYCURSOR);
+ yych = *++YYCURSOR;
- switch (yych) {
- case 'D':
- case 'd': goto yy331;
- case 'F':
- case 'f': goto yy332;
- case 'I':
- case 'i': goto yy333;
- case 'S':
- case 's': goto yy334;
- case 'W':
- case 'w': goto yy335;
- default: goto yy44;
- }
++ if (yych <= 'T') {
++ if (yych <= 'R') goto yy44;
++ if (yych <= 'S') goto yy329;
++ goto yy330;
++ } else {
++ if (yych <= 'r') goto yy44;
++ if (yych <= 's') goto yy329;
++ if (yych <= 't') goto yy330;
++ goto yy44;
++ }
+ yy250:
+ YYDEBUG(250, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'L') goto yy336;
- if (yych == 'l') goto yy336;
++ if (yych == 'L') goto yy331;
++ if (yych == 'l') goto yy331;
++ goto yy44;
+ yy251:
+ YYDEBUG(251, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'T') goto yy338;
- if (yych == 't') goto yy338;
- goto yy44;
-yy253:
++ if (yych == 'A') goto yy332;
++ if (yych == 'a') goto yy332;
+ goto yy44;
+ yy252:
+ YYDEBUG(252, *YYCURSOR);
+ yych = *++YYCURSOR;
- yych = *++YYCURSOR;
- if (yych == 'E') goto yy340;
- if (yych == 'e') goto yy340;
- goto yy44;
++ if (yybm[0+yych] & 16) {
++ goto yy43;
++ }
+ YYDEBUG(253, *YYCURSOR);
- if (yych == 'A') goto yy341;
- if (yych == 'a') goto yy341;
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 1275 "Zend/zend_language_scanner.l"
++ {
++ RETURN_TOKEN(T_EXIT);
++}
++#line 3770 "Zend/zend_language_scanner.c"
+ yy254:
+ YYDEBUG(254, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych <= '^') {
- if (yych <= '@') {
- if (yych <= '/') goto yy256;
- if (yych <= '9') goto yy43;
- } else {
- if (yych == 'E') goto yy342;
- if (yych <= 'Z') goto yy43;
- }
- } else {
- if (yych <= 'd') {
- if (yych != '`') goto yy43;
- } else {
- if (yych <= 'e') goto yy342;
- if (yych <= 'z') goto yy43;
- if (yych >= 0x80) goto yy43;
- }
- }
++ if (yych == 'O') goto yy333;
++ if (yych == 'o') goto yy333;
+ goto yy44;
+ yy255:
+ YYDEBUG(255, *YYCURSOR);
+ yych = *++YYCURSOR;
- yyleng = YYCURSOR - SCNG(yy_text);
-#line 1336 "Zend/zend_language_scanner.l"
- {
- RETURN_TOKEN(T_FOR);
-}
-#line 3712 "Zend/zend_language_scanner.c"
++ if (yych == 'E') goto yy335;
++ if (yych == 'e') goto yy335;
++ goto yy44;
+ yy256:
+ YYDEBUG(256, *YYCURSOR);
- if (yych == 'C') goto yy343;
- if (yych == 'c') goto yy343;
- goto yy44;
++ yych = *++YYCURSOR;
++ if (yych == 'T') goto yy337;
++ if (yych == 't') goto yy337;
++ goto yy44;
+ yy257:
+ YYDEBUG(257, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'B') goto yy344;
- if (yych == 'b') goto yy344;
++ switch (yych) {
++ case 'D':
++ case 'd': goto yy338;
++ case 'F':
++ case 'f': goto yy339;
++ case 'I':
++ case 'i': goto yy340;
++ case 'S':
++ case 's': goto yy341;
++ case 'W':
++ case 'w': goto yy342;
++ default: goto yy44;
++ }
+ yy258:
+ YYDEBUG(258, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'O') goto yy345;
- if (yych == 'o') goto yy345;
++ if (yych == 'L') goto yy343;
++ if (yych == 'l') goto yy343;
+ goto yy44;
+ yy259:
+ YYDEBUG(259, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'L') goto yy347;
- if (yych == 'l') goto yy347;
++ if (yych == 'T') goto yy345;
++ if (yych == 't') goto yy345;
+ goto yy44;
+ yy260:
+ YYDEBUG(260, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'L') goto yy348;
- if (yych == 'l') goto yy348;
++ if (yych == 'E') goto yy347;
++ if (yych == 'e') goto yy347;
+ goto yy44;
+ yy261:
+ YYDEBUG(261, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'T') goto yy349;
- if (yych == 't') goto yy349;
- goto yy44;
++ if (yych == 'A') goto yy348;
++ if (yych == 'a') goto yy348;
+ goto yy44;
+ yy262:
+ YYDEBUG(262, *YYCURSOR);
+ yych = *++YYCURSOR;
- yych = *++YYCURSOR;
- if (yych == 'E') goto yy350;
- if (yych == 'e') goto yy350;
- goto yy44;
++ if (yych <= '^') {
++ if (yych <= '@') {
++ if (yych <= '/') goto yy263;
++ if (yych <= '9') goto yy43;
++ } else {
++ if (yych == 'E') goto yy349;
++ if (yych <= 'Z') goto yy43;
++ }
++ } else {
++ if (yych <= 'd') {
++ if (yych != '`') goto yy43;
++ } else {
++ if (yych <= 'e') goto yy349;
++ if (yych <= 'z') goto yy43;
++ if (yych >= 0x80) goto yy43;
++ }
++ }
+ yy263:
+ YYDEBUG(263, *YYCURSOR);
- if (yych == 'E') goto yy351;
- if (yych == 'e') goto yy351;
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 1349 "Zend/zend_language_scanner.l"
++ {
++ RETURN_TOKEN(T_FOR);
++}
++#line 3856 "Zend/zend_language_scanner.c"
+ yy264:
+ YYDEBUG(264, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'T') goto yy352;
- if (yych == 't') goto yy352;
++ if (yych == 'C') goto yy350;
++ if (yych == 'c') goto yy350;
+ goto yy44;
+ yy265:
+ YYDEBUG(265, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'E') goto yy354;
- if (yych == 'e') goto yy354;
++ if (yych == 'B') goto yy351;
++ if (yych == 'b') goto yy351;
+ goto yy44;
+ yy266:
+ YYDEBUG(266, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yybm[0+yych] & 16) {
- goto yy43;
- }
++ if (yych == 'O') goto yy352;
++ if (yych == 'o') goto yy352;
+ goto yy44;
+ yy267:
+ YYDEBUG(267, *YYCURSOR);
+ yych = *++YYCURSOR;
- yyleng = YYCURSOR - SCNG(yy_text);
-#line 1464 "Zend/zend_language_scanner.l"
- {
- RETURN_TOKEN(T_NEW);
-}
-#line 3785 "Zend/zend_language_scanner.c"
++ if (yych == 'L') goto yy354;
++ if (yych == 'l') goto yy354;
++ goto yy44;
++yy268:
+ YYDEBUG(268, *YYCURSOR);
- if (yych <= 'V') {
- if (yych == 'N') goto yy355;
- if (yych <= 'U') goto yy44;
- goto yy356;
- } else {
- if (yych <= 'n') {
- if (yych <= 'm') goto yy44;
- goto yy355;
- } else {
- if (yych == 'v') goto yy356;
- goto yy44;
- }
- }
++ yych = *++YYCURSOR;
++ if (yych == 'L') goto yy355;
++ if (yych == 'l') goto yy355;
++ goto yy44;
+ yy269:
+ YYDEBUG(269, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'T') goto yy357;
- if (yych == 't') goto yy357;
++ if (yych == 'T') goto yy356;
++ if (yych == 't') goto yy356;
++ goto yy44;
+ yy270:
+ YYDEBUG(270, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'L') goto yy358;
- if (yych == 'l') goto yy358;
++ if (yych == 'E') goto yy357;
++ if (yych == 'e') goto yy357;
+ goto yy44;
+ yy271:
+ YYDEBUG(271, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'U') goto yy359;
- if (yych == 'u') goto yy359;
++ if (yych == 'E') goto yy358;
++ if (yych == 'e') goto yy358;
+ goto yy44;
+ yy272:
+ YYDEBUG(272, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'U') goto yy360;
- if (yych == 'u') goto yy360;
++ if (yych == 'T') goto yy359;
++ if (yych == 't') goto yy359;
+ goto yy44;
+ yy273:
+ YYDEBUG(273, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'T') goto yy361;
- if (yych == 't') goto yy361;
- goto yy44;
-yy275:
++ if (yych == 'E') goto yy361;
++ if (yych == 'e') goto yy361;
+ goto yy44;
+ yy274:
+ YYDEBUG(274, *YYCURSOR);
+ yych = *++YYCURSOR;
- yych = *++YYCURSOR;
- if (yych == 'T') goto yy362;
- if (yych == 't') goto yy362;
- goto yy44;
++ if (yybm[0+yych] & 16) {
++ goto yy43;
++ }
+ YYDEBUG(275, *YYCURSOR);
- if (yych == 'O') goto yy363;
- if (yych == 'o') goto yy363;
- goto yy44;
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 1477 "Zend/zend_language_scanner.l"
++ {
++ RETURN_TOKEN(T_NEW);
++}
++#line 3929 "Zend/zend_language_scanner.c"
+ yy276:
+ YYDEBUG(276, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'I') goto yy364;
- if (yych == 'i') goto yy364;
++ if (yych <= 'V') {
++ if (yych == 'N') goto yy362;
++ if (yych <= 'U') goto yy44;
++ goto yy363;
++ } else {
++ if (yych <= 'n') {
++ if (yych <= 'm') goto yy44;
++ goto yy362;
++ } else {
++ if (yych == 'v') goto yy363;
++ goto yy44;
++ }
++ }
+ yy277:
+ YYDEBUG(277, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yybm[0+yych] & 16) {
- goto yy43;
- }
++ if (yych == 'T') goto yy364;
++ if (yych == 't') goto yy364;
+ goto yy44;
+ yy278:
+ YYDEBUG(278, *YYCURSOR);
+ yych = *++YYCURSOR;
- yyleng = YYCURSOR - SCNG(yy_text);
-#line 1292 "Zend/zend_language_scanner.l"
- {
- RETURN_TOKEN(T_TRY);
-}
-#line 3862 "Zend/zend_language_scanner.c"
++ if (yych == 'L') goto yy365;
++ if (yych == 'l') goto yy365;
++ goto yy44;
++yy279:
+ YYDEBUG(279, *YYCURSOR);
- if (yych == 'E') goto yy365;
- if (yych == 'e') goto yy365;
++ yych = *++YYCURSOR;
++ if (yych == 'U') goto yy366;
++ if (yych == 'u') goto yy366;
++ goto yy44;
+ yy280:
+ YYDEBUG(280, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yybm[0+yych] & 16) {
- goto yy43;
- }
++ if (yych == 'U') goto yy367;
++ if (yych == 'u') goto yy367;
+ goto yy44;
+ yy281:
+ YYDEBUG(281, *YYCURSOR);
+ yych = *++YYCURSOR;
- yyleng = YYCURSOR - SCNG(yy_text);
-#line 1528 "Zend/zend_language_scanner.l"
- {
- RETURN_TOKEN(T_USE);
-}
-#line 3881 "Zend/zend_language_scanner.c"
++ if (yych == 'T') goto yy368;
++ if (yych == 't') goto yy368;
++ goto yy44;
++yy282:
+ YYDEBUG(282, *YYCURSOR);
- YYDEBUG(284, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'T') goto yy369;
++ if (yych == 't') goto yy369;
++ goto yy44;
+ yy283:
+ YYDEBUG(283, *YYCURSOR);
+ yych = *++YYCURSOR;
++ if (yych == 'O') goto yy370;
++ if (yych == 'o') goto yy370;
++ goto yy44;
++yy284:
++ YYDEBUG(284, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'I') goto yy371;
++ if (yych == 'i') goto yy371;
++ goto yy44;
++yy285:
++ YYDEBUG(285, *YYCURSOR);
++ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1472 "Zend/zend_language_scanner.l"
++ YYDEBUG(286, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- RETURN_TOKEN(T_VAR);
++#line 1305 "Zend/zend_language_scanner.l"
+ {
-#line 3894 "Zend/zend_language_scanner.c"
-yy285:
- YYDEBUG(285, *YYCURSOR);
++ RETURN_TOKEN(T_TRY);
+ }
- if (yych == 'L') goto yy366;
- if (yych == 'l') goto yy366;
++#line 4006 "Zend/zend_language_scanner.c"
++yy287:
++ YYDEBUG(287, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy286:
- YYDEBUG(286, *YYCURSOR);
++ if (yych == 'E') goto yy372;
++ if (yych == 'e') goto yy372;
+ goto yy44;
- YYDEBUG(287, *YYCURSOR);
++yy288:
++ YYDEBUG(288, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1700 "Zend/zend_language_scanner.l"
++ YYDEBUG(289, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- RETURN_TOKEN(T_LOGICAL_XOR);
++#line 1548 "Zend/zend_language_scanner.l"
+ {
-#line 3913 "Zend/zend_language_scanner.c"
-yy288:
- YYDEBUG(288, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'L') goto yy367;
- if (yych == 'l') goto yy367;
- goto yy44;
-yy289:
- YYDEBUG(289, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'L') goto yy368;
- if (yych == 'l') goto yy368;
- goto yy44;
++ RETURN_TOKEN(T_USE);
+ }
- if (yych == 'I') goto yy369;
- if (yych == 'i') goto yy369;
- goto yy44;
-yy291:
- YYDEBUG(291, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych <= 'U') {
- if (yych == 'I') goto yy370;
- if (yych <= 'T') goto yy44;
- goto yy371;
- } else {
- if (yych <= 'i') {
- if (yych <= 'h') goto yy44;
- goto yy370;
- } else {
- if (yych == 'u') goto yy371;
- goto yy44;
- }
++#line 4025 "Zend/zend_language_scanner.c"
+ yy290:
+ YYDEBUG(290, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'A') goto yy372;
- if (yych == 'a') goto yy372;
++ if (yybm[0+yych] & 16) {
++ goto yy43;
+ }
++ YYDEBUG(291, *YYCURSOR);
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 1485 "Zend/zend_language_scanner.l"
++ {
++ RETURN_TOKEN(T_VAR);
++}
++#line 4038 "Zend/zend_language_scanner.c"
+ yy292:
+ YYDEBUG(292, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'I') goto yy373;
- if (yych == 'i') goto yy373;
- goto yy44;
-yy294:
++ if (yych == 'L') goto yy373;
++ if (yych == 'l') goto yy373;
+ goto yy44;
+ yy293:
+ YYDEBUG(293, *YYCURSOR);
+ yych = *++YYCURSOR;
- yych = *++YYCURSOR;
- if (yych == 'E') goto yy374;
- if (yych == 'e') goto yy374;
- goto yy44;
++ if (yybm[0+yych] & 16) {
++ goto yy43;
++ }
+ YYDEBUG(294, *YYCURSOR);
- if (yych == 'A') goto yy375;
- if (yych == 'a') goto yy375;
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 1724 "Zend/zend_language_scanner.l"
++ {
++ RETURN_TOKEN(T_LOGICAL_XOR);
++}
++#line 4057 "Zend/zend_language_scanner.c"
+ yy295:
+ YYDEBUG(295, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'R') goto yy376;
- if (yych == 'r') goto yy376;
++ if (yych == 'L') goto yy374;
++ if (yych == 'l') goto yy374;
+ goto yy44;
+ yy296:
+ YYDEBUG(296, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'A') goto yy377;
- if (yych == 'a') goto yy377;
- goto yy82;
++ if (yych == 'L') goto yy375;
++ if (yych == 'l') goto yy375;
+ goto yy44;
+ yy297:
+ YYDEBUG(297, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'A') goto yy378;
- if (yych == 'a') goto yy378;
- goto yy82;
++ if (yych == 'I') goto yy376;
++ if (yych == 'i') goto yy376;
++ goto yy44;
+ yy298:
+ YYDEBUG(298, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'L') goto yy379;
- if (yych == 'l') goto yy379;
- goto yy82;
++ if (yych <= 'U') {
++ if (yych == 'I') goto yy377;
++ if (yych <= 'T') goto yy44;
++ goto yy378;
++ } else {
++ if (yych <= 'i') {
++ if (yych <= 'h') goto yy44;
++ goto yy377;
++ } else {
++ if (yych == 'u') goto yy378;
++ goto yy44;
++ }
++ }
+ yy299:
+ YYDEBUG(299, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'B') goto yy380;
- if (yych == 'b') goto yy380;
- goto yy82;
++ if (yych == 'A') goto yy379;
++ if (yych == 'a') goto yy379;
++ goto yy44;
+ yy300:
+ YYDEBUG(300, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'A') goto yy381;
- if (yych == 'a') goto yy381;
- goto yy82;
++ if (yych == 'I') goto yy380;
++ if (yych == 'i') goto yy380;
++ goto yy44;
+ yy301:
+ YYDEBUG(301, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'E') goto yy386;
- if (yych == 'e') goto yy386;
- goto yy383;
++ if (yych == 'E') goto yy381;
++ if (yych == 'e') goto yy381;
++ goto yy44;
+ yy302:
+ YYDEBUG(302, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'E') goto yy387;
- if (yych == 'e') goto yy387;
- goto yy82;
++ if (yych == 'A') goto yy382;
++ if (yych == 'a') goto yy382;
++ goto yy44;
+ yy303:
+ YYDEBUG(303, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'L') goto yy388;
- if (yych == 'l') goto yy388;
++ if (yych == 'R') goto yy383;
++ if (yych == 'r') goto yy383;
++ goto yy44;
+ yy304:
+ YYDEBUG(304, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'I') goto yy390;
- if (yych == 'i') goto yy390;
++ if (yych == 'A') goto yy384;
++ if (yych == 'a') goto yy384;
+ goto yy82;
+ yy305:
+ YYDEBUG(305, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'E') goto yy391;
- if (yych == 'e') goto yy391;
++ if (yych == 'A') goto yy385;
++ if (yych == 'a') goto yy385;
+ goto yy82;
+ yy306:
+ YYDEBUG(306, *YYCURSOR);
+ yych = *++YYCURSOR;
- YYDEBUG(308, *YYCURSOR);
++ if (yych == 'L') goto yy386;
++ if (yych == 'l') goto yy386;
+ goto yy82;
+ yy307:
+ YYDEBUG(307, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'B') goto yy387;
++ if (yych == 'b') goto yy387;
++ goto yy82;
++yy308:
++ YYDEBUG(308, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'A') goto yy388;
++ if (yych == 'a') goto yy388;
++ goto yy82;
++yy309:
++ YYDEBUG(309, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'E') goto yy393;
++ if (yych == 'e') goto yy393;
++ goto yy390;
++yy310:
++ YYDEBUG(310, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'E') goto yy394;
++ if (yych == 'e') goto yy394;
++ goto yy82;
++yy311:
++ YYDEBUG(311, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'L') goto yy395;
++ if (yych == 'l') goto yy395;
++ goto yy82;
++yy312:
++ YYDEBUG(312, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'I') goto yy397;
++ if (yych == 'i') goto yy397;
++ goto yy82;
++yy313:
++ YYDEBUG(313, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'E') goto yy398;
++ if (yych == 'e') goto yy398;
++ goto yy82;
++yy314:
++ YYDEBUG(314, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- if (yych <= '\n') goto yy307;
++ YYDEBUG(315, *YYCURSOR);
+ if (yych <= '\f') {
+ if (yych <= 0x08) goto yy113;
- if (yych <= '\r') goto yy307;
- if (yych == ' ') goto yy307;
++ if (yych <= '\n') goto yy314;
+ goto yy113;
+ } else {
-yy309:
- YYDEBUG(309, *YYCURSOR);
++ if (yych <= '\r') goto yy314;
++ if (yych == ' ') goto yy314;
+ goto yy113;
+ }
- if (yych <= '/') goto yy393;
++yy316:
++ YYDEBUG(316, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych == '"') goto yy82;
- goto yy393;
-yy310:
- YYDEBUG(310, *YYCURSOR);
++ if (yych <= '/') goto yy400;
+ if (yych <= '9') goto yy82;
- if (yych <= '/') goto yy395;
++ goto yy400;
++yy317:
++ YYDEBUG(317, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych == '\'') goto yy82;
- goto yy395;
-yy311:
- YYDEBUG(311, *YYCURSOR);
++ if (yych <= '/') goto yy402;
+ if (yych <= '9') goto yy82;
- YYDEBUG(312, *YYCURSOR);
++ goto yy402;
++yy318:
++ YYDEBUG(318, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(2);
+ yych = *YYCURSOR;
- if (yych == '\n') goto yy396;
++ YYDEBUG(319, *YYCURSOR);
+ if (yych <= '@') {
+ if (yych <= '\f') {
- if (yych <= '\r') goto yy398;
++ if (yych == '\n') goto yy403;
+ goto yy82;
+ } else {
- if (yych <= '9') goto yy311;
++ if (yych <= '\r') goto yy405;
+ if (yych <= '/') goto yy82;
- if (yych <= 'Z') goto yy311;
++ if (yych <= '9') goto yy318;
+ goto yy82;
+ }
+ } else {
+ if (yych <= '_') {
- goto yy311;
++ if (yych <= 'Z') goto yy318;
+ if (yych <= '^') goto yy82;
- if (yych <= 'z') goto yy311;
++ goto yy318;
+ } else {
+ if (yych <= '`') goto yy82;
- goto yy311;
++ if (yych <= 'z') goto yy318;
+ if (yych <= 0x7F) goto yy82;
-yy313:
- YYDEBUG(313, *YYCURSOR);
++ goto yy318;
+ }
+ }
- if (yych == 'R') goto yy399;
- if (yych == 'r') goto yy399;
++yy320:
++ YYDEBUG(320, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy314:
- YYDEBUG(314, *YYCURSOR);
++ if (yych == 'R') goto yy406;
++ if (yych == 'r') goto yy406;
+ goto yy44;
- if (yych == 'Y') goto yy400;
- if (yych == 'y') goto yy400;
++yy321:
++ YYDEBUG(321, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy315:
- YYDEBUG(315, *YYCURSOR);
++ if (yych == 'Y') goto yy407;
++ if (yych == 'y') goto yy407;
+ goto yy44;
- if (yych == 'K') goto yy402;
- if (yych == 'k') goto yy402;
++yy322:
++ YYDEBUG(322, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy316:
- YYDEBUG(316, *YYCURSOR);
++ if (yych == 'K') goto yy409;
++ if (yych == 'k') goto yy409;
+ goto yy44;
- if (yych == 'A') goto yy404;
- if (yych == 'a') goto yy404;
++yy323:
++ YYDEBUG(323, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy317:
- YYDEBUG(317, *YYCURSOR);
++ if (yych == 'A') goto yy411;
++ if (yych == 'a') goto yy411;
+ goto yy44;
- YYDEBUG(318, *YYCURSOR);
++yy324:
++ YYDEBUG(324, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1376 "Zend/zend_language_scanner.l"
++ YYDEBUG(325, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4131 "Zend/zend_language_scanner.c"
-yy319:
- YYDEBUG(319, *YYCURSOR);
++#line 1389 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_CASE);
+ }
- if (yych == 'H') goto yy405;
- if (yych == 'h') goto yy405;
++#line 4275 "Zend/zend_language_scanner.c"
++yy326:
++ YYDEBUG(326, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy320:
- YYDEBUG(320, *YYCURSOR);
++ if (yych == 'H') goto yy412;
++ if (yych == 'h') goto yy412;
+ goto yy44;
- if (yych == 'S') goto yy407;
- if (yych == 's') goto yy407;
++yy327:
++ YYDEBUG(327, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy321:
- YYDEBUG(321, *YYCURSOR);
++ if (yych == 'S') goto yy414;
++ if (yych == 's') goto yy414;
+ goto yy44;
- if (yych == 'E') goto yy409;
- if (yych == 'e') goto yy409;
++yy328:
++ YYDEBUG(328, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy322:
- YYDEBUG(322, *YYCURSOR);
++ if (yych == 'E') goto yy416;
++ if (yych == 'e') goto yy416;
+ goto yy44;
- if (yych == 'T') goto yy411;
- if (yych == 't') goto yy411;
++yy329:
++ YYDEBUG(329, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy323:
- YYDEBUG(323, *YYCURSOR);
++ if (yych == 'T') goto yy418;
++ if (yych == 't') goto yy418;
+ goto yy44;
- if (yych == 'I') goto yy413;
- if (yych == 'i') goto yy413;
++yy330:
++ YYDEBUG(330, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy324:
- YYDEBUG(324, *YYCURSOR);
++ if (yych == 'I') goto yy420;
++ if (yych == 'i') goto yy420;
+ goto yy44;
- if (yych == 'A') goto yy414;
- if (yych == 'a') goto yy414;
++yy331:
++ YYDEBUG(331, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy325:
- YYDEBUG(325, *YYCURSOR);
++ if (yych == 'A') goto yy421;
++ if (yych == 'a') goto yy421;
+ goto yy44;
- if (yych == 'U') goto yy415;
- if (yych == 'u') goto yy415;
++yy332:
++ YYDEBUG(332, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy326:
- YYDEBUG(326, *YYCURSOR);
++ if (yych == 'U') goto yy422;
++ if (yych == 'u') goto yy422;
+ goto yy44;
- YYDEBUG(327, *YYCURSOR);
++yy333:
++ YYDEBUG(333, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1396 "Zend/zend_language_scanner.l"
++ YYDEBUG(334, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4186 "Zend/zend_language_scanner.c"
-yy328:
- YYDEBUG(328, *YYCURSOR);
++#line 1409 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_ECHO);
+ }
- if (yych <= '/') goto yy329;
++#line 4330 "Zend/zend_language_scanner.c"
++yy335:
++ YYDEBUG(335, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '^') {
+ if (yych <= '@') {
- if (yych == 'I') goto yy416;
++ if (yych <= '/') goto yy336;
+ if (yych <= '9') goto yy43;
+ } else {
- if (yych <= 'i') goto yy416;
++ if (yych == 'I') goto yy423;
+ if (yych <= 'Z') goto yy43;
+ }
+ } else {
+ if (yych <= 'h') {
+ if (yych != '`') goto yy43;
+ } else {
-yy329:
- YYDEBUG(329, *YYCURSOR);
++ if (yych <= 'i') goto yy423;
+ if (yych <= 'z') goto yy43;
+ if (yych >= 0x80) goto yy43;
+ }
+ }
-#line 1320 "Zend/zend_language_scanner.l"
++yy336:
++ YYDEBUG(336, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4214 "Zend/zend_language_scanner.c"
-yy330:
- YYDEBUG(330, *YYCURSOR);
++#line 1333 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_ELSE);
+ }
- if (yych == 'Y') goto yy417;
- if (yych == 'y') goto yy417;
++#line 4358 "Zend/zend_language_scanner.c"
++yy337:
++ YYDEBUG(337, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy331:
- YYDEBUG(331, *YYCURSOR);
++ if (yych == 'Y') goto yy424;
++ if (yych == 'y') goto yy424;
+ goto yy44;
- if (yych == 'E') goto yy419;
- if (yych == 'e') goto yy419;
++yy338:
++ YYDEBUG(338, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy332:
- YYDEBUG(332, *YYCURSOR);
++ if (yych == 'E') goto yy426;
++ if (yych == 'e') goto yy426;
+ goto yy44;
- if (yych == 'O') goto yy420;
- if (yych == 'o') goto yy420;
++yy339:
++ YYDEBUG(339, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy333:
- YYDEBUG(333, *YYCURSOR);
++ if (yych == 'O') goto yy427;
++ if (yych == 'o') goto yy427;
+ goto yy44;
- if (yych == 'F') goto yy421;
- if (yych == 'f') goto yy421;
++yy340:
++ YYDEBUG(340, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy334:
- YYDEBUG(334, *YYCURSOR);
++ if (yych == 'F') goto yy428;
++ if (yych == 'f') goto yy428;
+ goto yy44;
- if (yych == 'W') goto yy423;
- if (yych == 'w') goto yy423;
++yy341:
++ YYDEBUG(341, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy335:
- YYDEBUG(335, *YYCURSOR);
++ if (yych == 'W') goto yy430;
++ if (yych == 'w') goto yy430;
+ goto yy44;
- if (yych == 'H') goto yy424;
- if (yych == 'h') goto yy424;
++yy342:
++ YYDEBUG(342, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy336:
- YYDEBUG(336, *YYCURSOR);
++ if (yych == 'H') goto yy431;
++ if (yych == 'h') goto yy431;
+ goto yy44;
- YYDEBUG(337, *YYCURSOR);
++yy343:
++ YYDEBUG(343, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1504 "Zend/zend_language_scanner.l"
++ YYDEBUG(344, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4263 "Zend/zend_language_scanner.c"
-yy338:
- YYDEBUG(338, *YYCURSOR);
++#line 1524 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_EVAL);
+ }
- YYDEBUG(339, *YYCURSOR);
++#line 4407 "Zend/zend_language_scanner.c"
++yy345:
++ YYDEBUG(345, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1262 "Zend/zend_language_scanner.l"
++ YYDEBUG(346, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4276 "Zend/zend_language_scanner.c"
-yy340:
- YYDEBUG(340, *YYCURSOR);
++#line 1271 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_EXIT);
+ }
- if (yych == 'N') goto yy425;
- if (yych == 'n') goto yy425;
++#line 4420 "Zend/zend_language_scanner.c"
++yy347:
++ YYDEBUG(347, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy341:
- YYDEBUG(341, *YYCURSOR);
++ if (yych == 'N') goto yy432;
++ if (yych == 'n') goto yy432;
+ goto yy44;
- if (yych == 'L') goto yy426;
- if (yych == 'l') goto yy426;
++yy348:
++ YYDEBUG(348, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy342:
- YYDEBUG(342, *YYCURSOR);
++ if (yych == 'L') goto yy433;
++ if (yych == 'l') goto yy433;
+ goto yy44;
- if (yych == 'A') goto yy428;
- if (yych == 'a') goto yy428;
++yy349:
++ YYDEBUG(349, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy343:
- YYDEBUG(343, *YYCURSOR);
++ if (yych == 'A') goto yy435;
++ if (yych == 'a') goto yy435;
+ goto yy44;
- if (yych == 'T') goto yy429;
- if (yych == 't') goto yy429;
++yy350:
++ YYDEBUG(350, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy344:
- YYDEBUG(344, *YYCURSOR);
++ if (yych == 'T') goto yy436;
++ if (yych == 't') goto yy436;
+ goto yy44;
- if (yych == 'A') goto yy430;
- if (yych == 'a') goto yy430;
++yy351:
++ YYDEBUG(351, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy345:
- YYDEBUG(345, *YYCURSOR);
++ if (yych == 'A') goto yy437;
++ if (yych == 'a') goto yy437;
+ goto yy44;
- YYDEBUG(346, *YYCURSOR);
++yy352:
++ YYDEBUG(352, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1392 "Zend/zend_language_scanner.l"
++ YYDEBUG(353, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4319 "Zend/zend_language_scanner.c"
-yy347:
- YYDEBUG(347, *YYCURSOR);
++#line 1405 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_GOTO);
+ }
- if (yych == 'E') goto yy431;
- if (yych == 'e') goto yy431;
++#line 4463 "Zend/zend_language_scanner.c"
++yy354:
++ YYDEBUG(354, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy348:
- YYDEBUG(348, *YYCURSOR);
++ if (yych == 'E') goto yy438;
++ if (yych == 'e') goto yy438;
+ goto yy44;
- if (yych == 'U') goto yy432;
- if (yych == 'u') goto yy432;
++yy355:
++ YYDEBUG(355, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy349:
- YYDEBUG(349, *YYCURSOR);
++ if (yych == 'U') goto yy439;
++ if (yych == 'u') goto yy439;
+ goto yy44;
- if (yych == 'A') goto yy433;
++yy356:
++ YYDEBUG(356, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= 'E') {
- goto yy434;
++ if (yych == 'A') goto yy440;
+ if (yych <= 'D') goto yy44;
- goto yy433;
++ goto yy441;
+ } else {
+ if (yych <= 'a') {
+ if (yych <= '`') goto yy44;
- if (yych == 'e') goto yy434;
++ goto yy440;
+ } else {
-yy350:
- YYDEBUG(350, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'R') goto yy435;
- if (yych == 'r') goto yy435;
- goto yy44;
-yy351:
- YYDEBUG(351, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'T') goto yy436;
- if (yych == 't') goto yy436;
- goto yy44;
-yy352:
- YYDEBUG(352, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yybm[0+yych] & 16) {
- goto yy43;
- }
- YYDEBUG(353, *YYCURSOR);
- yyleng = YYCURSOR - SCNG(yy_text);
-#line 1584 "Zend/zend_language_scanner.l"
- {
- RETURN_TOKEN(T_LIST);
-}
-#line 4372 "Zend/zend_language_scanner.c"
-yy354:
- YYDEBUG(354, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'S') goto yy438;
- if (yych == 's') goto yy438;
- goto yy44;
-yy355:
- YYDEBUG(355, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'T') goto yy439;
- if (yych == 't') goto yy439;
- goto yy44;
-yy356:
- YYDEBUG(356, *YYCURSOR);
- yych = *++YYCURSOR;
- if (yych == 'A') goto yy441;
- if (yych == 'a') goto yy441;
- goto yy44;
++ if (yych == 'e') goto yy441;
+ goto yy44;
+ }
+ }
- if (yych == 'E') goto yy442;
- if (yych == 'e') goto yy442;
+ yy357:
+ YYDEBUG(357, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'I') goto yy443;
- if (yych == 'i') goto yy443;
++ if (yych == 'R') goto yy442;
++ if (yych == 'r') goto yy442;
+ goto yy44;
+ yy358:
+ YYDEBUG(358, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'I') goto yy444;
- if (yych == 'i') goto yy444;
- goto yy44;
-yy360:
++ if (yych == 'T') goto yy443;
++ if (yych == 't') goto yy443;
+ goto yy44;
+ yy359:
+ YYDEBUG(359, *YYCURSOR);
+ yych = *++YYCURSOR;
- yych = *++YYCURSOR;
- if (yych == 'R') goto yy445;
- if (yych == 'r') goto yy445;
- goto yy44;
++ if (yybm[0+yych] & 16) {
++ goto yy43;
++ }
+ YYDEBUG(360, *YYCURSOR);
- if (yych == 'I') goto yy446;
- if (yych == 'i') goto yy446;
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 1604 "Zend/zend_language_scanner.l"
++ {
++ RETURN_TOKEN(T_LIST);
++}
++#line 4516 "Zend/zend_language_scanner.c"
+ yy361:
+ YYDEBUG(361, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'C') goto yy447;
- if (yych == 'c') goto yy447;
++ if (yych == 'S') goto yy445;
++ if (yych == 's') goto yy445;
+ goto yy44;
+ yy362:
+ YYDEBUG(362, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'W') goto yy448;
- if (yych == 'w') goto yy448;
++ if (yych == 'T') goto yy446;
++ if (yych == 't') goto yy446;
+ goto yy44;
+ yy363:
+ YYDEBUG(363, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'T') goto yy450;
- if (yych == 't') goto yy450;
++ if (yych == 'A') goto yy448;
++ if (yych == 'a') goto yy448;
+ goto yy44;
+ yy364:
+ YYDEBUG(364, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'T') goto yy452;
- if (yych == 't') goto yy452;
++ if (yych == 'E') goto yy449;
++ if (yych == 'e') goto yy449;
+ goto yy44;
+ yy365:
+ YYDEBUG(365, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'E') goto yy454;
- if (yych == 'e') goto yy454;
++ if (yych == 'I') goto yy450;
++ if (yych == 'i') goto yy450;
+ goto yy44;
+ yy366:
+ YYDEBUG(366, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'D') goto yy456;
- if (yych == 'd') goto yy456;
++ if (yych == 'I') goto yy451;
++ if (yych == 'i') goto yy451;
+ goto yy44;
+ yy367:
+ YYDEBUG(367, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'A') goto yy458;
- if (yych == 'a') goto yy458;
++ if (yych == 'R') goto yy452;
++ if (yych == 'r') goto yy452;
+ goto yy44;
+ yy368:
+ YYDEBUG(368, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'R') goto yy459;
- if (yych == 'r') goto yy459;
++ if (yych == 'I') goto yy453;
++ if (yych == 'i') goto yy453;
+ goto yy44;
+ yy369:
+ YYDEBUG(369, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'L') goto yy460;
- if (yych == 'l') goto yy460;
++ if (yych == 'C') goto yy454;
++ if (yych == 'c') goto yy454;
+ goto yy44;
+ yy370:
+ YYDEBUG(370, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'N') goto yy461;
- if (yych == 'n') goto yy461;
++ if (yych == 'W') goto yy455;
++ if (yych == 'w') goto yy455;
+ goto yy44;
+ yy371:
+ YYDEBUG(371, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'L') goto yy462;
- if (yych == 'l') goto yy462;
++ if (yych == 'T') goto yy457;
++ if (yych == 't') goto yy457;
+ goto yy44;
+ yy372:
+ YYDEBUG(372, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'N') goto yy463;
- if (yych == 'n') goto yy463;
++ if (yych == 'T') goto yy459;
++ if (yych == 't') goto yy459;
+ goto yy44;
+ yy373:
+ YYDEBUG(373, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'T') goto yy464;
- if (yych == 't') goto yy464;
++ if (yych == 'E') goto yy461;
++ if (yych == 'e') goto yy461;
+ goto yy44;
+ yy374:
+ YYDEBUG(374, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'M') goto yy465;
- if (yych == 'm') goto yy465;
++ if (yych == 'D') goto yy463;
++ if (yych == 'd') goto yy463;
+ goto yy44;
+ yy375:
+ YYDEBUG(375, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'A') goto yy466;
- if (yych == 'a') goto yy466;
++ if (yych == 'A') goto yy465;
++ if (yych == 'a') goto yy465;
+ goto yy44;
+ yy376:
+ YYDEBUG(376, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'Y') goto yy467;
- if (yych == 'y') goto yy467;
- goto yy82;
++ if (yych == 'R') goto yy466;
++ if (yych == 'r') goto yy466;
+ goto yy44;
+ yy377:
+ YYDEBUG(377, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'R') goto yy469;
- if (yych == 'r') goto yy469;
- goto yy82;
++ if (yych == 'L') goto yy467;
++ if (yych == 'l') goto yy467;
++ goto yy44;
+ yy378:
+ YYDEBUG(378, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'E') goto yy474;
- if (yych == 'e') goto yy474;
- goto yy471;
++ if (yych == 'N') goto yy468;
++ if (yych == 'n') goto yy468;
++ goto yy44;
+ yy379:
+ YYDEBUG(379, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'L') goto yy475;
- if (yych == 'l') goto yy475;
- goto yy82;
++ if (yych == 'L') goto yy469;
++ if (yych == 'l') goto yy469;
++ goto yy44;
+ yy380:
+ YYDEBUG(380, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'T') goto yy388;
- if (yych == 't') goto yy388;
- goto yy82;
++ if (yych == 'N') goto yy470;
++ if (yych == 'n') goto yy470;
++ goto yy44;
+ yy381:
+ YYDEBUG(381, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy383:
- YYDEBUG(383, *YYCURSOR);
++ if (yych == 'T') goto yy471;
++ if (yych == 't') goto yy471;
++ goto yy44;
+ yy382:
+ YYDEBUG(382, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'M') goto yy472;
++ if (yych == 'm') goto yy472;
++ goto yy44;
++yy383:
++ YYDEBUG(383, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'A') goto yy473;
++ if (yych == 'a') goto yy473;
++ goto yy44;
++yy384:
++ YYDEBUG(384, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'Y') goto yy474;
++ if (yych == 'y') goto yy474;
++ goto yy82;
++yy385:
++ YYDEBUG(385, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'R') goto yy476;
++ if (yych == 'r') goto yy476;
++ goto yy82;
++yy386:
++ YYDEBUG(386, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'E') goto yy481;
++ if (yych == 'e') goto yy481;
++ goto yy478;
++yy387:
++ YYDEBUG(387, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'L') goto yy482;
++ if (yych == 'l') goto yy482;
++ goto yy82;
++yy388:
++ YYDEBUG(388, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych == 'T') goto yy483;
++ if (yych == 't') goto yy483;
++ goto yy82;
++yy389:
++ YYDEBUG(389, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- if (yych == '\t') goto yy382;
++yy390:
++ YYDEBUG(390, *YYCURSOR);
+ if (yych <= 0x1F) {
- if (yych <= ' ') goto yy382;
++ if (yych == '\t') goto yy389;
+ goto yy82;
+ } else {
- YYDEBUG(384, *YYCURSOR);
++ if (yych <= ' ') goto yy389;
+ if (yych != ')') goto yy82;
+ }
- YYDEBUG(385, *YYCURSOR);
++ YYDEBUG(391, *YYCURSOR);
+ ++YYCURSOR;
-#line 1476 "Zend/zend_language_scanner.l"
++ YYDEBUG(392, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4563 "Zend/zend_language_scanner.c"
-yy386:
- YYDEBUG(386, *YYCURSOR);
++#line 1489 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_INT_CAST);
+ }
- if (yych == 'G') goto yy476;
- if (yych == 'g') goto yy476;
++#line 4707 "Zend/zend_language_scanner.c"
++yy393:
++ YYDEBUG(393, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy387:
- YYDEBUG(387, *YYCURSOR);
++ if (yych == 'G') goto yy485;
++ if (yych == 'g') goto yy485;
+ goto yy82;
- if (yych == 'C') goto yy477;
- if (yych == 'c') goto yy477;
++yy394:
++ YYDEBUG(394, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy388:
- YYDEBUG(388, *YYCURSOR);
++ if (yych == 'C') goto yy486;
++ if (yych == 'c') goto yy486;
+ goto yy82;
- YYDEBUG(389, *YYCURSOR);
++yy395:
++ YYDEBUG(395, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- if (yych == '\t') goto yy388;
++ YYDEBUG(396, *YYCURSOR);
+ if (yych <= 0x1F) {
- if (yych <= ' ') goto yy388;
- if (yych == ')') goto yy478;
++ if (yych == '\t') goto yy395;
+ goto yy82;
+ } else {
-yy390:
- YYDEBUG(390, *YYCURSOR);
++ if (yych <= ' ') goto yy395;
++ if (yych == ')') goto yy487;
+ goto yy82;
+ }
- if (yych == 'N') goto yy480;
- if (yych == 'n') goto yy480;
++yy397:
++ YYDEBUG(397, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy391:
- YYDEBUG(391, *YYCURSOR);
++ if (yych == 'N') goto yy489;
++ if (yych == 'n') goto yy489;
+ goto yy82;
- if (yych == 'T') goto yy481;
- if (yych == 't') goto yy481;
++yy398:
++ YYDEBUG(398, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy392:
- YYDEBUG(392, *YYCURSOR);
++ if (yych == 'T') goto yy490;
++ if (yych == 't') goto yy490;
+ goto yy82;
-yy393:
- YYDEBUG(393, *YYCURSOR);
++yy399:
++ YYDEBUG(399, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(3);
+ yych = *YYCURSOR;
- if (yych == '"') goto yy483;
++yy400:
++ YYDEBUG(400, *YYCURSOR);
+ if (yych <= 'Z') {
+ if (yych <= '/') {
- if (yych <= '9') goto yy392;
++ if (yych == '"') goto yy492;
+ goto yy82;
+ } else {
- goto yy392;
++ if (yych <= '9') goto yy399;
+ if (yych <= '@') goto yy82;
- if (yych == '_') goto yy392;
++ goto yy399;
+ }
+ } else {
+ if (yych <= '`') {
- if (yych <= 'z') goto yy392;
++ if (yych == '_') goto yy399;
+ goto yy82;
+ } else {
- goto yy392;
++ if (yych <= 'z') goto yy399;
+ if (yych <= 0x7F) goto yy82;
-yy394:
- YYDEBUG(394, *YYCURSOR);
++ goto yy399;
+ }
+ }
-yy395:
- YYDEBUG(395, *YYCURSOR);
++yy401:
++ YYDEBUG(401, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(3);
+ yych = *YYCURSOR;
- if (yych == '\'') goto yy483;
++yy402:
++ YYDEBUG(402, *YYCURSOR);
+ if (yych <= 'Z') {
+ if (yych <= '/') {
- if (yych <= '9') goto yy394;
++ if (yych == '\'') goto yy492;
+ goto yy82;
+ } else {
- goto yy394;
++ if (yych <= '9') goto yy401;
+ if (yych <= '@') goto yy82;
- if (yych == '_') goto yy394;
++ goto yy401;
+ }
+ } else {
+ if (yych <= '`') {
- if (yych <= 'z') goto yy394;
++ if (yych == '_') goto yy401;
+ goto yy82;
+ } else {
- goto yy394;
++ if (yych <= 'z') goto yy401;
+ if (yych <= 0x7F) goto yy82;
-yy396:
- YYDEBUG(396, *YYCURSOR);
++ goto yy401;
+ }
+ }
-yy397:
- YYDEBUG(397, *YYCURSOR);
++yy403:
++ YYDEBUG(403, *YYCURSOR);
+ ++YYCURSOR;
-#line 2270 "Zend/zend_language_scanner.l"
++yy404:
++ YYDEBUG(404, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4804 "Zend/zend_language_scanner.c"
-yy398:
- YYDEBUG(398, *YYCURSOR);
++#line 2364 "Zend/zend_language_scanner.l"
+ {
+ char *s;
+ unsigned char *saved_cursor;
+ int bprefix = (yytext[0] != '<') ? 1 : 0, spacing = 0, indentation = 0;
+ zend_heredoc_label *heredoc_label = emalloc(sizeof(zend_heredoc_label));
+ zend_bool is_heredoc = 1;
+
+ CG(zend_lineno)++;
+ heredoc_label->length = yyleng-bprefix-3-1-(yytext[yyleng-2]=='\r'?1:0);
+ s = yytext+bprefix+3;
+ while ((*s == ' ') || (*s == '\t')) {
+ s++;
+ heredoc_label->length--;
+ }
+
+ if (*s == '\'') {
+ s++;
+ heredoc_label->length -= 2;
+ is_heredoc = 0;
+
+ BEGIN(ST_NOWDOC);
+ } else {
+ if (*s == '"') {
+ s++;
+ heredoc_label->length -= 2;
+ }
+
+ BEGIN(ST_HEREDOC);
+ }
+
+ heredoc_label->label = estrndup(s, heredoc_label->length);
+ heredoc_label->indentation = 0;
+ saved_cursor = YYCURSOR;
+
+ zend_ptr_stack_push(&SCNG(heredoc_label_stack), (void *) heredoc_label);
+
+ while (YYCURSOR < YYLIMIT && (*YYCURSOR == ' ' || *YYCURSOR == '\t')) {
+ if (*YYCURSOR == '\t') {
+ spacing |= HEREDOC_USING_TABS;
+ } else {
+ spacing |= HEREDOC_USING_SPACES;
+ }
+ ++YYCURSOR;
+ ++indentation;
+ }
+
+ if (YYCURSOR == YYLIMIT) {
+ YYCURSOR = saved_cursor;
+ RETURN_TOKEN(T_START_HEREDOC);
+ }
+
+ /* Check for ending label on the next line */
+ if (heredoc_label->length < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, s, heredoc_label->length)) {
+ if (!IS_LABEL_SUCCESSOR(YYCURSOR[heredoc_label->length])) {
+ if (spacing == (HEREDOC_USING_SPACES | HEREDOC_USING_TABS)) {
+ zend_throw_exception(zend_ce_parse_error, "Invalid indentation - tabs and spaces cannot be mixed", 0);
+ if (PARSER_MODE()) {
+ RETURN_TOKEN(T_ERROR);
+ }
+ }
+
+ YYCURSOR = saved_cursor;
+ heredoc_label->indentation = indentation;
+
+ BEGIN(ST_END_HEREDOC);
+ RETURN_TOKEN(T_START_HEREDOC);
+ }
+ }
+
+ YYCURSOR = saved_cursor;
+
+ if (is_heredoc && !SCNG(heredoc_scan_ahead)) {
+ zend_lex_state current_state;
+ zend_string *saved_doc_comment = CG(doc_comment);
+ int heredoc_nesting_level = 1;
+ int first_token = 0;
+ int error = 0;
+
+ zend_save_lexical_state(¤t_state);
+
+ SCNG(heredoc_scan_ahead) = 1;
+ SCNG(heredoc_indentation) = 0;
+ SCNG(heredoc_indentation_uses_spaces) = 0;
+ LANG_SCNG(on_event) = NULL;
+ CG(doc_comment) = NULL;
+
+ zend_ptr_stack_reverse_apply(¤t_state.heredoc_label_stack, copy_heredoc_label_stack);
+
+ zend_exception_save();
+ while (heredoc_nesting_level) {
+ zval zv;
+ int retval;
+
+ ZVAL_UNDEF(&zv);
+ retval = lex_scan(&zv, NULL);
+ zval_ptr_dtor_nogc(&zv);
+
+ if (EG(exception)) {
+ zend_clear_exception();
+ break;
+ }
+
+ if (!first_token) {
+ first_token = retval;
+ }
+
+ switch (retval) {
+ case T_START_HEREDOC:
+ ++heredoc_nesting_level;
+ break;
+ case T_END_HEREDOC:
+ --heredoc_nesting_level;
+ break;
+ case END:
+ heredoc_nesting_level = 0;
+ }
+ }
+ zend_exception_restore();
+
+ if (
+ (first_token == T_VARIABLE
+ || first_token == T_DOLLAR_OPEN_CURLY_BRACES
+ || first_token == T_CURLY_OPEN
+ ) && SCNG(heredoc_indentation)) {
+ zend_throw_exception_ex(zend_ce_parse_error, 0, "Invalid body indentation level (expecting an indentation level of at least %d)", SCNG(heredoc_indentation));
+ error = 1;
+ }
+
+ heredoc_label->indentation = SCNG(heredoc_indentation);
+ heredoc_label->indentation_uses_spaces = SCNG(heredoc_indentation_uses_spaces);
+
+ zend_restore_lexical_state(¤t_state);
+ SCNG(heredoc_scan_ahead) = 0;
+ CG(increment_lineno) = 0;
+ CG(doc_comment) = saved_doc_comment;
+
+ if (PARSER_MODE() && error) {
+ RETURN_TOKEN(T_ERROR);
+ }
+ }
+
+ RETURN_TOKEN(T_START_HEREDOC);
+ }
- if (yych == '\n') goto yy396;
- goto yy397;
-yy399:
- YYDEBUG(399, *YYCURSOR);
++#line 4948 "Zend/zend_language_scanner.c"
++yy405:
++ YYDEBUG(405, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'A') goto yy484;
- if (yych == 'a') goto yy484;
++ if (yych == '\n') goto yy403;
++ goto yy404;
++yy406:
++ YYDEBUG(406, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy400:
- YYDEBUG(400, *YYCURSOR);
++ if (yych == 'A') goto yy493;
++ if (yych == 'a') goto yy493;
+ goto yy44;
- YYDEBUG(401, *YYCURSOR);
++yy407:
++ YYDEBUG(407, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1588 "Zend/zend_language_scanner.l"
++ YYDEBUG(408, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4828 "Zend/zend_language_scanner.c"
-yy402:
- YYDEBUG(402, *YYCURSOR);
++#line 1608 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_ARRAY);
+ }
- YYDEBUG(403, *YYCURSOR);
++#line 4972 "Zend/zend_language_scanner.c"
++yy409:
++ YYDEBUG(409, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1384 "Zend/zend_language_scanner.l"
++ YYDEBUG(410, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4841 "Zend/zend_language_scanner.c"
-yy404:
- YYDEBUG(404, *YYCURSOR);
++#line 1397 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_BREAK);
+ }
- if (yych == 'B') goto yy485;
- if (yych == 'b') goto yy485;
++#line 4985 "Zend/zend_language_scanner.c"
++yy411:
++ YYDEBUG(411, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy405:
- YYDEBUG(405, *YYCURSOR);
++ if (yych == 'B') goto yy494;
++ if (yych == 'b') goto yy494;
+ goto yy44;
- YYDEBUG(406, *YYCURSOR);
++yy412:
++ YYDEBUG(412, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1296 "Zend/zend_language_scanner.l"
++ YYDEBUG(413, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4860 "Zend/zend_language_scanner.c"
-yy407:
- YYDEBUG(407, *YYCURSOR);
++#line 1309 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_CATCH);
+ }
- YYDEBUG(408, *YYCURSOR);
++#line 5004 "Zend/zend_language_scanner.c"
++yy414:
++ YYDEBUG(414, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1404 "Zend/zend_language_scanner.l"
++ YYDEBUG(415, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4873 "Zend/zend_language_scanner.c"
-yy409:
- YYDEBUG(409, *YYCURSOR);
++#line 1417 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_CLASS);
+ }
- YYDEBUG(410, *YYCURSOR);
++#line 5017 "Zend/zend_language_scanner.c"
++yy416:
++ YYDEBUG(416, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1468 "Zend/zend_language_scanner.l"
++ YYDEBUG(417, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4886 "Zend/zend_language_scanner.c"
-yy411:
- YYDEBUG(411, *YYCURSOR);
++#line 1481 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_CLONE);
+ }
- YYDEBUG(412, *YYCURSOR);
++#line 5030 "Zend/zend_language_scanner.c"
++yy418:
++ YYDEBUG(418, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1274 "Zend/zend_language_scanner.l"
++ YYDEBUG(419, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4899 "Zend/zend_language_scanner.c"
-yy413:
- YYDEBUG(413, *YYCURSOR);
++#line 1287 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_CONST);
+ }
- if (yych == 'N') goto yy486;
- if (yych == 'n') goto yy486;
++#line 5043 "Zend/zend_language_scanner.c"
++yy420:
++ YYDEBUG(420, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy414:
- YYDEBUG(414, *YYCURSOR);
++ if (yych == 'N') goto yy495;
++ if (yych == 'n') goto yy495;
+ goto yy44;
- if (yych == 'R') goto yy487;
- if (yych == 'r') goto yy487;
++yy421:
++ YYDEBUG(421, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy415:
- YYDEBUG(415, *YYCURSOR);
++ if (yych == 'R') goto yy496;
++ if (yych == 'r') goto yy496;
+ goto yy44;
- if (yych == 'L') goto yy488;
- if (yych == 'l') goto yy488;
++yy422:
++ YYDEBUG(422, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy416:
- YYDEBUG(416, *YYCURSOR);
++ if (yych == 'L') goto yy497;
++ if (yych == 'l') goto yy497;
+ goto yy44;
- if (yych == 'F') goto yy489;
- if (yych == 'f') goto yy489;
++yy423:
++ YYDEBUG(423, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy417:
- YYDEBUG(417, *YYCURSOR);
++ if (yych == 'F') goto yy498;
++ if (yych == 'f') goto yy498;
+ goto yy44;
- YYDEBUG(418, *YYCURSOR);
++yy424:
++ YYDEBUG(424, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1544 "Zend/zend_language_scanner.l"
++ YYDEBUG(425, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4936 "Zend/zend_language_scanner.c"
-yy419:
- YYDEBUG(419, *YYCURSOR);
++#line 1564 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_EMPTY);
+ }
- if (yych == 'C') goto yy491;
- if (yych == 'c') goto yy491;
++#line 5080 "Zend/zend_language_scanner.c"
++yy426:
++ YYDEBUG(426, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy420:
- YYDEBUG(420, *YYCURSOR);
++ if (yych == 'C') goto yy500;
++ if (yych == 'c') goto yy500;
+ goto yy44;
- if (yych == 'R') goto yy492;
- if (yych == 'r') goto yy492;
++yy427:
++ YYDEBUG(427, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy421:
- YYDEBUG(421, *YYCURSOR);
++ if (yych == 'R') goto yy501;
++ if (yych == 'r') goto yy501;
+ goto yy44;
- YYDEBUG(422, *YYCURSOR);
++yy428:
++ YYDEBUG(428, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1316 "Zend/zend_language_scanner.l"
++ YYDEBUG(429, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 4961 "Zend/zend_language_scanner.c"
-yy423:
- YYDEBUG(423, *YYCURSOR);
++#line 1329 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_ENDIF);
+ }
- if (yych == 'I') goto yy494;
- if (yych == 'i') goto yy494;
++#line 5105 "Zend/zend_language_scanner.c"
++yy430:
++ YYDEBUG(430, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy424:
- YYDEBUG(424, *YYCURSOR);
++ if (yych == 'I') goto yy503;
++ if (yych == 'i') goto yy503;
+ goto yy44;
- if (yych == 'I') goto yy495;
- if (yych == 'i') goto yy495;
++yy431:
++ YYDEBUG(431, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy425:
- YYDEBUG(425, *YYCURSOR);
++ if (yych == 'I') goto yy504;
++ if (yych == 'i') goto yy504;
+ goto yy44;
- if (yych == 'D') goto yy496;
- if (yych == 'd') goto yy496;
++yy432:
++ YYDEBUG(432, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy426:
- YYDEBUG(426, *YYCURSOR);
++ if (yych == 'D') goto yy505;
++ if (yych == 'd') goto yy505;
+ goto yy44;
- if (yych <= '/') goto yy427;
++yy433:
++ YYDEBUG(433, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '^') {
+ if (yych <= '@') {
- if (yych == 'L') goto yy497;
++ if (yych <= '/') goto yy434;
+ if (yych <= '9') goto yy43;
+ } else {
- if (yych <= 'l') goto yy497;
++ if (yych == 'L') goto yy506;
+ if (yych <= 'Z') goto yy43;
+ }
+ } else {
+ if (yych <= 'k') {
+ if (yych != '`') goto yy43;
+ } else {
-yy427:
- YYDEBUG(427, *YYCURSOR);
++ if (yych <= 'l') goto yy506;
+ if (yych <= 'z') goto yy43;
+ if (yych >= 0x80) goto yy43;
+ }
+ }
-#line 1560 "Zend/zend_language_scanner.l"
++yy434:
++ YYDEBUG(434, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5007 "Zend/zend_language_scanner.c"
-yy428:
- YYDEBUG(428, *YYCURSOR);
++#line 1580 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_FINAL);
+ }
- if (yych == 'C') goto yy498;
- if (yych == 'c') goto yy498;
++#line 5151 "Zend/zend_language_scanner.c"
++yy435:
++ YYDEBUG(435, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy429:
- YYDEBUG(429, *YYCURSOR);
++ if (yych == 'C') goto yy507;
++ if (yych == 'c') goto yy507;
+ goto yy44;
- if (yych == 'I') goto yy499;
- if (yych == 'i') goto yy499;
++yy436:
++ YYDEBUG(436, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy430:
- YYDEBUG(430, *YYCURSOR);
++ if (yych == 'I') goto yy508;
++ if (yych == 'i') goto yy508;
+ goto yy44;
- if (yych == 'L') goto yy500;
- if (yych == 'l') goto yy500;
++yy437:
++ YYDEBUG(437, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy431:
- YYDEBUG(431, *YYCURSOR);
++ if (yych == 'L') goto yy509;
++ if (yych == 'l') goto yy509;
+ goto yy44;
- if (yych == 'M') goto yy502;
- if (yych == 'm') goto yy502;
++yy438:
++ YYDEBUG(438, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy432:
- YYDEBUG(432, *YYCURSOR);
++ if (yych == 'M') goto yy511;
++ if (yych == 'm') goto yy511;
+ goto yy44;
- if (yych == 'D') goto yy503;
- if (yych == 'd') goto yy503;
++yy439:
++ YYDEBUG(439, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy433:
- YYDEBUG(433, *YYCURSOR);
++ if (yych == 'D') goto yy512;
++ if (yych == 'd') goto yy512;
+ goto yy44;
- if (yych == 'N') goto yy504;
- if (yych == 'n') goto yy504;
++yy440:
++ YYDEBUG(440, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy434:
- YYDEBUG(434, *YYCURSOR);
++ if (yych == 'N') goto yy513;
++ if (yych == 'n') goto yy513;
+ goto yy44;
- if (yych == 'A') goto yy505;
- if (yych == 'a') goto yy505;
++yy441:
++ YYDEBUG(441, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy435:
- YYDEBUG(435, *YYCURSOR);
++ if (yych == 'A') goto yy514;
++ if (yych == 'a') goto yy514;
+ goto yy44;
- if (yych == 'F') goto yy506;
- if (yych == 'f') goto yy506;
++yy442:
++ YYDEBUG(442, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy436:
- YYDEBUG(436, *YYCURSOR);
++ if (yych == 'F') goto yy515;
++ if (yych == 'f') goto yy515;
+ goto yy44;
- YYDEBUG(437, *YYCURSOR);
++yy443:
++ YYDEBUG(443, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1540 "Zend/zend_language_scanner.l"
++ YYDEBUG(444, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5068 "Zend/zend_language_scanner.c"
-yy438:
- YYDEBUG(438, *YYCURSOR);
++#line 1560 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_ISSET);
+ }
- if (yych == 'P') goto yy507;
- if (yych == 'p') goto yy507;
++#line 5212 "Zend/zend_language_scanner.c"
++yy445:
++ YYDEBUG(445, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy439:
- YYDEBUG(439, *YYCURSOR);
++ if (yych == 'P') goto yy516;
++ if (yych == 'p') goto yy516;
+ goto yy44;
- YYDEBUG(440, *YYCURSOR);
++yy446:
++ YYDEBUG(446, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1400 "Zend/zend_language_scanner.l"
++ YYDEBUG(447, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5087 "Zend/zend_language_scanner.c"
-yy441:
- YYDEBUG(441, *YYCURSOR);
++#line 1413 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_PRINT);
+ }
- if (yych == 'T') goto yy508;
- if (yych == 't') goto yy508;
++#line 5231 "Zend/zend_language_scanner.c"
++yy448:
++ YYDEBUG(448, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy442:
- YYDEBUG(442, *YYCURSOR);
++ if (yych == 'T') goto yy517;
++ if (yych == 't') goto yy517;
+ goto yy44;
- if (yych == 'C') goto yy509;
- if (yych == 'c') goto yy509;
++yy449:
++ YYDEBUG(449, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy443:
- YYDEBUG(443, *YYCURSOR);
++ if (yych == 'C') goto yy518;
++ if (yych == 'c') goto yy518;
+ goto yy44;
- if (yych == 'C') goto yy510;
- if (yych == 'c') goto yy510;
++yy450:
++ YYDEBUG(450, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy444:
- YYDEBUG(444, *YYCURSOR);
++ if (yych == 'C') goto yy519;
++ if (yych == 'c') goto yy519;
+ goto yy44;
- if (yych == 'R') goto yy512;
- if (yych == 'r') goto yy512;
++yy451:
++ YYDEBUG(451, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy445:
- YYDEBUG(445, *YYCURSOR);
++ if (yych == 'R') goto yy521;
++ if (yych == 'r') goto yy521;
+ goto yy44;
- if (yych == 'N') goto yy513;
- if (yych == 'n') goto yy513;
++yy452:
++ YYDEBUG(452, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy446:
- YYDEBUG(446, *YYCURSOR);
++ if (yych == 'N') goto yy522;
++ if (yych == 'n') goto yy522;
+ goto yy44;
- if (yych == 'C') goto yy515;
- if (yych == 'c') goto yy515;
++yy453:
++ YYDEBUG(453, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy447:
- YYDEBUG(447, *YYCURSOR);
++ if (yych == 'C') goto yy524;
++ if (yych == 'c') goto yy524;
+ goto yy44;
- if (yych == 'H') goto yy517;
- if (yych == 'h') goto yy517;
++yy454:
++ YYDEBUG(454, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy448:
- YYDEBUG(448, *YYCURSOR);
++ if (yych == 'H') goto yy526;
++ if (yych == 'h') goto yy526;
+ goto yy44;
- YYDEBUG(449, *YYCURSOR);
++yy455:
++ YYDEBUG(455, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1304 "Zend/zend_language_scanner.l"
++ YYDEBUG(456, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5142 "Zend/zend_language_scanner.c"
-yy450:
- YYDEBUG(450, *YYCURSOR);
++#line 1317 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_THROW);
+ }
- YYDEBUG(451, *YYCURSOR);
++#line 5286 "Zend/zend_language_scanner.c"
++yy457:
++ YYDEBUG(457, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1412 "Zend/zend_language_scanner.l"
++ YYDEBUG(458, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5155 "Zend/zend_language_scanner.c"
-yy452:
- YYDEBUG(452, *YYCURSOR);
++#line 1425 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_TRAIT);
+ }
- YYDEBUG(453, *YYCURSOR);
++#line 5299 "Zend/zend_language_scanner.c"
++yy459:
++ YYDEBUG(459, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1576 "Zend/zend_language_scanner.l"
++ YYDEBUG(460, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5168 "Zend/zend_language_scanner.c"
-yy454:
- YYDEBUG(454, *YYCURSOR);
++#line 1596 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_UNSET);
+ }
- YYDEBUG(455, *YYCURSOR);
++#line 5312 "Zend/zend_language_scanner.c"
++yy461:
++ YYDEBUG(461, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1324 "Zend/zend_language_scanner.l"
++ YYDEBUG(462, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5181 "Zend/zend_language_scanner.c"
-yy456:
- YYDEBUG(456, *YYCURSOR);
- yyaccept = 6;
++#line 1337 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_WHILE);
+ }
- if (yych <= 0x08) goto yy457;
- if (yych <= '\n') goto yy519;
++#line 5325 "Zend/zend_language_scanner.c"
++yy463:
++ YYDEBUG(463, *YYCURSOR);
++ yyaccept = 8;
+ yych = *(YYMARKER = ++YYCURSOR);
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
+ if (yych <= '\f') {
- if (yych <= '\r') goto yy519;
- if (yych == ' ') goto yy519;
++ if (yych <= 0x08) goto yy464;
++ if (yych <= '\n') goto yy528;
+ } else {
-yy457:
- YYDEBUG(457, *YYCURSOR);
++ if (yych <= '\r') goto yy528;
++ if (yych == ' ') goto yy528;
+ }
-#line 1288 "Zend/zend_language_scanner.l"
++yy464:
++ YYDEBUG(464, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5203 "Zend/zend_language_scanner.c"
-yy458:
- YYDEBUG(458, *YYCURSOR);
++#line 1301 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_YIELD);
+ }
- if (yych == 'S') goto yy521;
- if (yych == 's') goto yy521;
++#line 5347 "Zend/zend_language_scanner.c"
++yy465:
++ YYDEBUG(465, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy459:
- YYDEBUG(459, *YYCURSOR);
++ if (yych == 'S') goto yy530;
++ if (yych == 's') goto yy530;
+ goto yy44;
- if (yych == '_') goto yy522;
++yy466:
++ YYDEBUG(466, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy460:
- YYDEBUG(460, *YYCURSOR);
++ if (yych == '_') goto yy531;
+ goto yy44;
- if (yych == 'E') goto yy523;
- if (yych == 'e') goto yy523;
++yy467:
++ YYDEBUG(467, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy461:
- YYDEBUG(461, *YYCURSOR);
++ if (yych == 'E') goto yy532;
++ if (yych == 'e') goto yy532;
+ goto yy44;
- if (yych == 'C') goto yy524;
- if (yych == 'c') goto yy524;
++yy468:
++ YYDEBUG(468, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy462:
- YYDEBUG(462, *YYCURSOR);
++ if (yych == 'C') goto yy533;
++ if (yych == 'c') goto yy533;
+ goto yy44;
- if (yych == 'T') goto yy525;
- if (yych == 't') goto yy525;
++yy469:
++ YYDEBUG(469, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy463:
- YYDEBUG(463, *YYCURSOR);
++ if (yych == 'T') goto yy534;
++ if (yych == 't') goto yy534;
+ goto yy44;
- if (yych == 'E') goto yy526;
- if (yych == 'e') goto yy526;
++yy470:
++ YYDEBUG(470, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy464:
- YYDEBUG(464, *YYCURSOR);
++ if (yych == 'E') goto yy535;
++ if (yych == 'e') goto yy535;
+ goto yy44;
- if (yych == 'H') goto yy527;
- if (yych == 'h') goto yy527;
++yy471:
++ YYDEBUG(471, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy465:
- YYDEBUG(465, *YYCURSOR);
++ if (yych == 'H') goto yy536;
++ if (yych == 'h') goto yy536;
+ goto yy44;
- if (yych == 'E') goto yy528;
- if (yych == 'e') goto yy528;
++yy472:
++ YYDEBUG(472, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy466:
- YYDEBUG(466, *YYCURSOR);
++ if (yych == 'E') goto yy537;
++ if (yych == 'e') goto yy537;
+ goto yy44;
- if (yych == 'I') goto yy529;
- if (yych == 'i') goto yy529;
++yy473:
++ YYDEBUG(473, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy467:
- YYDEBUG(467, *YYCURSOR);
++ if (yych == 'I') goto yy538;
++ if (yych == 'i') goto yy538;
+ goto yy44;
- YYDEBUG(468, *YYCURSOR);
++yy474:
++ YYDEBUG(474, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- if (yych == '\t') goto yy467;
++ YYDEBUG(475, *YYCURSOR);
+ if (yych <= 0x1F) {
- if (yych <= ' ') goto yy467;
- if (yych == ')') goto yy530;
++ if (yych == '\t') goto yy474;
+ goto yy82;
+ } else {
-yy469:
- YYDEBUG(469, *YYCURSOR);
++ if (yych <= ' ') goto yy474;
++ if (yych == ')') goto yy539;
+ goto yy82;
+ }
- if (yych == 'Y') goto yy532;
- if (yych == 'y') goto yy532;
++yy476:
++ YYDEBUG(476, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy470:
- YYDEBUG(470, *YYCURSOR);
++ if (yych == 'Y') goto yy541;
++ if (yych == 'y') goto yy541;
+ goto yy82;
-yy471:
- YYDEBUG(471, *YYCURSOR);
++yy477:
++ YYDEBUG(477, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- if (yych == '\t') goto yy470;
++yy478:
++ YYDEBUG(478, *YYCURSOR);
+ if (yych <= 0x1F) {
- if (yych <= ' ') goto yy470;
++ if (yych == '\t') goto yy477;
+ goto yy82;
+ } else {
- YYDEBUG(472, *YYCURSOR);
++ if (yych <= ' ') goto yy477;
+ if (yych != ')') goto yy82;
+ }
- YYDEBUG(473, *YYCURSOR);
++ YYDEBUG(479, *YYCURSOR);
+ ++YYCURSOR;
-#line 1496 "Zend/zend_language_scanner.l"
++ YYDEBUG(480, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5299 "Zend/zend_language_scanner.c"
-yy474:
- YYDEBUG(474, *YYCURSOR);
++#line 1516 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_BOOL_CAST);
+ }
- if (yych == 'A') goto yy534;
- if (yych == 'a') goto yy534;
++#line 5443 "Zend/zend_language_scanner.c"
++yy481:
++ YYDEBUG(481, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy475:
- YYDEBUG(475, *YYCURSOR);
++ if (yych == 'A') goto yy543;
++ if (yych == 'a') goto yy543;
+ goto yy82;
- if (yych == 'E') goto yy388;
- if (yych == 'e') goto yy388;
- goto yy82;
-yy476:
- YYDEBUG(476, *YYCURSOR);
++yy482:
++ YYDEBUG(482, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == 'E') goto yy535;
- if (yych == 'e') goto yy535;
++ if (yych == 'E') goto yy483;
++ if (yych != 'e') goto yy82;
++yy483:
++ YYDEBUG(483, *YYCURSOR);
++ ++YYCURSOR;
++ YYFILL(1);
++ yych = *YYCURSOR;
++ YYDEBUG(484, *YYCURSOR);
++ if (yych <= 0x1F) {
++ if (yych == '\t') goto yy483;
++ goto yy82;
++ } else {
++ if (yych <= ' ') goto yy483;
++ if (yych == ')') goto yy544;
++ goto yy82;
++ }
++yy485:
++ YYDEBUG(485, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy477:
- YYDEBUG(477, *YYCURSOR);
++ if (yych == 'E') goto yy546;
++ if (yych == 'e') goto yy546;
+ goto yy82;
- if (yych == 'T') goto yy536;
- if (yych == 't') goto yy536;
++yy486:
++ YYDEBUG(486, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy478:
- YYDEBUG(478, *YYCURSOR);
++ if (yych == 'T') goto yy547;
++ if (yych == 't') goto yy547;
+ goto yy82;
- YYDEBUG(479, *YYCURSOR);
++yy487:
++ YYDEBUG(487, *YYCURSOR);
+ ++YYCURSOR;
-#line 1480 "Zend/zend_language_scanner.l"
++ YYDEBUG(488, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5333 "Zend/zend_language_scanner.c"
-yy480:
- YYDEBUG(480, *YYCURSOR);
++#line 1497 "Zend/zend_language_scanner.l"
+ {
++ if (PARSER_MODE()) {
++ zend_error(E_DEPRECATED, "The (real) cast is deprecated, use (float) instead");
++ }
+ RETURN_TOKEN(T_DOUBLE_CAST);
+ }
- if (yych == 'G') goto yy532;
- if (yych == 'g') goto yy532;
++#line 5493 "Zend/zend_language_scanner.c"
++yy489:
++ YYDEBUG(489, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy481:
- YYDEBUG(481, *YYCURSOR);
++ if (yych == 'G') goto yy541;
++ if (yych == 'g') goto yy541;
+ goto yy82;
- YYDEBUG(482, *YYCURSOR);
++yy490:
++ YYDEBUG(490, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- if (yych == '\t') goto yy481;
++ YYDEBUG(491, *YYCURSOR);
+ if (yych <= 0x1F) {
- if (yych <= ' ') goto yy481;
- if (yych == ')') goto yy538;
++ if (yych == '\t') goto yy490;
+ goto yy82;
+ } else {
-yy483:
- YYDEBUG(483, *YYCURSOR);
++ if (yych <= ' ') goto yy490;
++ if (yych == ')') goto yy549;
+ goto yy82;
+ }
- if (yych == '\n') goto yy396;
- if (yych == '\r') goto yy398;
++yy492:
++ YYDEBUG(492, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy484:
- YYDEBUG(484, *YYCURSOR);
++ if (yych == '\n') goto yy403;
++ if (yych == '\r') goto yy405;
+ goto yy82;
- if (yych == 'C') goto yy540;
- if (yych == 'c') goto yy540;
++yy493:
++ YYDEBUG(493, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy485:
- YYDEBUG(485, *YYCURSOR);
++ if (yych == 'C') goto yy551;
++ if (yych == 'c') goto yy551;
+ goto yy44;
- if (yych == 'L') goto yy541;
- if (yych == 'l') goto yy541;
++yy494:
++ YYDEBUG(494, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy486:
- YYDEBUG(486, *YYCURSOR);
++ if (yych == 'L') goto yy552;
++ if (yych == 'l') goto yy552;
+ goto yy44;
- if (yych == 'U') goto yy542;
- if (yych == 'u') goto yy542;
++yy495:
++ YYDEBUG(495, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy487:
- YYDEBUG(487, *YYCURSOR);
++ if (yych == 'U') goto yy553;
++ if (yych == 'u') goto yy553;
+ goto yy44;
- if (yych == 'E') goto yy543;
- if (yych == 'e') goto yy543;
++yy496:
++ YYDEBUG(496, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy488:
- YYDEBUG(488, *YYCURSOR);
++ if (yych == 'E') goto yy554;
++ if (yych == 'e') goto yy554;
+ goto yy44;
- if (yych == 'T') goto yy545;
- if (yych == 't') goto yy545;
++yy497:
++ YYDEBUG(497, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy489:
- YYDEBUG(489, *YYCURSOR);
++ if (yych == 'T') goto yy556;
++ if (yych == 't') goto yy556;
+ goto yy44;
- YYDEBUG(490, *YYCURSOR);
++yy498:
++ YYDEBUG(498, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1312 "Zend/zend_language_scanner.l"
++ YYDEBUG(499, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5402 "Zend/zend_language_scanner.c"
-yy491:
- YYDEBUG(491, *YYCURSOR);
++#line 1325 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_ELSEIF);
+ }
- if (yych == 'L') goto yy547;
- if (yych == 'l') goto yy547;
++#line 5562 "Zend/zend_language_scanner.c"
++yy500:
++ YYDEBUG(500, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy492:
- YYDEBUG(492, *YYCURSOR);
++ if (yych == 'L') goto yy558;
++ if (yych == 'l') goto yy558;
+ goto yy44;
- if (yych <= '/') goto yy493;
++yy501:
++ YYDEBUG(501, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '^') {
+ if (yych <= '@') {
- if (yych == 'E') goto yy548;
++ if (yych <= '/') goto yy502;
+ if (yych <= '9') goto yy43;
+ } else {
- if (yych <= 'e') goto yy548;
++ if (yych == 'E') goto yy559;
+ if (yych <= 'Z') goto yy43;
+ }
+ } else {
+ if (yych <= 'd') {
+ if (yych != '`') goto yy43;
+ } else {
-yy493:
- YYDEBUG(493, *YYCURSOR);
++ if (yych <= 'e') goto yy559;
+ if (yych <= 'z') goto yy43;
+ if (yych >= 0x80) goto yy43;
+ }
+ }
-#line 1340 "Zend/zend_language_scanner.l"
++yy502:
++ YYDEBUG(502, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5436 "Zend/zend_language_scanner.c"
-yy494:
- YYDEBUG(494, *YYCURSOR);
++#line 1353 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_ENDFOR);
+ }
- if (yych == 'T') goto yy549;
- if (yych == 't') goto yy549;
++#line 5596 "Zend/zend_language_scanner.c"
++yy503:
++ YYDEBUG(503, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy495:
- YYDEBUG(495, *YYCURSOR);
++ if (yych == 'T') goto yy560;
++ if (yych == 't') goto yy560;
+ goto yy44;
- if (yych == 'L') goto yy550;
- if (yych == 'l') goto yy550;
++yy504:
++ YYDEBUG(504, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy496:
- YYDEBUG(496, *YYCURSOR);
++ if (yych == 'L') goto yy561;
++ if (yych == 'l') goto yy561;
+ goto yy44;
- if (yych == 'S') goto yy551;
- if (yych == 's') goto yy551;
++yy505:
++ YYDEBUG(505, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy497:
- YYDEBUG(497, *YYCURSOR);
++ if (yych == 'S') goto yy562;
++ if (yych == 's') goto yy562;
+ goto yy44;
- if (yych == 'Y') goto yy553;
- if (yych == 'y') goto yy553;
++yy506:
++ YYDEBUG(506, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy498:
- YYDEBUG(498, *YYCURSOR);
++ if (yych == 'Y') goto yy564;
++ if (yych == 'y') goto yy564;
+ goto yy44;
- if (yych == 'H') goto yy555;
- if (yych == 'h') goto yy555;
++yy507:
++ YYDEBUG(507, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy499:
- YYDEBUG(499, *YYCURSOR);
++ if (yych == 'H') goto yy566;
++ if (yych == 'h') goto yy566;
+ goto yy44;
- if (yych == 'O') goto yy557;
- if (yych == 'o') goto yy557;
++yy508:
++ YYDEBUG(508, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy500:
- YYDEBUG(500, *YYCURSOR);
++ if (yych == 'O') goto yy568;
++ if (yych == 'o') goto yy568;
+ goto yy44;
- YYDEBUG(501, *YYCURSOR);
++yy509:
++ YYDEBUG(509, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1536 "Zend/zend_language_scanner.l"
++ YYDEBUG(510, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5485 "Zend/zend_language_scanner.c"
-yy502:
- YYDEBUG(502, *YYCURSOR);
++#line 1556 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_GLOBAL);
+ }
- if (yych == 'E') goto yy558;
- if (yych == 'e') goto yy558;
++#line 5645 "Zend/zend_language_scanner.c"
++yy511:
++ YYDEBUG(511, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy503:
- YYDEBUG(503, *YYCURSOR);
++ if (yych == 'E') goto yy569;
++ if (yych == 'e') goto yy569;
+ goto yy44;
- if (yych == 'E') goto yy559;
- if (yych == 'e') goto yy559;
++yy512:
++ YYDEBUG(512, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy504:
- YYDEBUG(504, *YYCURSOR);
++ if (yych == 'E') goto yy570;
++ if (yych == 'e') goto yy570;
+ goto yy44;
- if (yych == 'C') goto yy561;
- if (yych == 'c') goto yy561;
++yy513:
++ YYDEBUG(513, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy505:
- YYDEBUG(505, *YYCURSOR);
++ if (yych == 'C') goto yy572;
++ if (yych == 'c') goto yy572;
+ goto yy44;
- if (yych == 'D') goto yy562;
- if (yych == 'd') goto yy562;
++yy514:
++ YYDEBUG(514, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy506:
- YYDEBUG(506, *YYCURSOR);
++ if (yych == 'D') goto yy573;
++ if (yych == 'd') goto yy573;
+ goto yy44;
- if (yych == 'A') goto yy563;
- if (yych == 'a') goto yy563;
++yy515:
++ YYDEBUG(515, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy507:
- YYDEBUG(507, *YYCURSOR);
++ if (yych == 'A') goto yy574;
++ if (yych == 'a') goto yy574;
+ goto yy44;
- if (yych == 'A') goto yy564;
- if (yych == 'a') goto yy564;
++yy516:
++ YYDEBUG(516, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy508:
- YYDEBUG(508, *YYCURSOR);
++ if (yych == 'A') goto yy575;
++ if (yych == 'a') goto yy575;
+ goto yy44;
- if (yych == 'E') goto yy565;
- if (yych == 'e') goto yy565;
++yy517:
++ YYDEBUG(517, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy509:
- YYDEBUG(509, *YYCURSOR);
++ if (yych == 'E') goto yy576;
++ if (yych == 'e') goto yy576;
+ goto yy44;
- if (yych == 'T') goto yy567;
- if (yych == 't') goto yy567;
++yy518:
++ YYDEBUG(518, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy510:
- YYDEBUG(510, *YYCURSOR);
++ if (yych == 'T') goto yy578;
++ if (yych == 't') goto yy578;
+ goto yy44;
- YYDEBUG(511, *YYCURSOR);
++yy519:
++ YYDEBUG(519, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1572 "Zend/zend_language_scanner.l"
++ YYDEBUG(520, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5546 "Zend/zend_language_scanner.c"
-yy512:
- YYDEBUG(512, *YYCURSOR);
++#line 1592 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_PUBLIC);
+ }
- if (yych == 'E') goto yy568;
- if (yych == 'e') goto yy568;
++#line 5706 "Zend/zend_language_scanner.c"
++yy521:
++ YYDEBUG(521, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy513:
- YYDEBUG(513, *YYCURSOR);
++ if (yych == 'E') goto yy579;
++ if (yych == 'e') goto yy579;
+ goto yy44;
- YYDEBUG(514, *YYCURSOR);
++yy522:
++ YYDEBUG(522, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1278 "Zend/zend_language_scanner.l"
++ YYDEBUG(523, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5565 "Zend/zend_language_scanner.c"
-yy515:
- YYDEBUG(515, *YYCURSOR);
++#line 1291 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_RETURN);
+ }
- YYDEBUG(516, *YYCURSOR);
++#line 5725 "Zend/zend_language_scanner.c"
++yy524:
++ YYDEBUG(524, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1552 "Zend/zend_language_scanner.l"
++ YYDEBUG(525, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5578 "Zend/zend_language_scanner.c"
-yy517:
- YYDEBUG(517, *YYCURSOR);
++#line 1572 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_STATIC);
+ }
- YYDEBUG(518, *YYCURSOR);
++#line 5738 "Zend/zend_language_scanner.c"
++yy526:
++ YYDEBUG(526, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1368 "Zend/zend_language_scanner.l"
++ YYDEBUG(527, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5591 "Zend/zend_language_scanner.c"
-yy519:
- YYDEBUG(519, *YYCURSOR);
++#line 1381 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_SWITCH);
+ }
- YYDEBUG(520, *YYCURSOR);
++#line 5751 "Zend/zend_language_scanner.c"
++yy528:
++ YYDEBUG(528, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(5);
+ yych = *YYCURSOR;
- goto yy519;
++ YYDEBUG(529, *YYCURSOR);
+ if (yych <= 0x1F) {
+ if (yych <= '\n') {
+ if (yych <= 0x08) goto yy82;
- if (yych == '\r') goto yy519;
++ goto yy528;
+ } else {
- if (yych <= ' ') goto yy519;
++ if (yych == '\r') goto yy528;
+ goto yy82;
+ }
+ } else {
+ if (yych <= 'F') {
- goto yy570;
++ if (yych <= ' ') goto yy528;
+ if (yych <= 'E') goto yy82;
- if (yych == 'f') goto yy570;
++ goto yy581;
+ } else {
-yy521:
- YYDEBUG(521, *YYCURSOR);
++ if (yych == 'f') goto yy581;
+ goto yy82;
+ }
+ }
- if (yych == 'S') goto yy571;
- if (yych == 's') goto yy571;
++yy530:
++ YYDEBUG(530, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy522:
- YYDEBUG(522, *YYCURSOR);
++ if (yych == 'S') goto yy582;
++ if (yych == 's') goto yy582;
+ goto yy44;
- if (yych == '_') goto yy572;
++yy531:
++ YYDEBUG(531, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy523:
- YYDEBUG(523, *YYCURSOR);
++ if (yych == '_') goto yy583;
+ goto yy44;
- if (yych == '_') goto yy574;
++yy532:
++ YYDEBUG(532, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy524:
- YYDEBUG(524, *YYCURSOR);
++ if (yych == '_') goto yy585;
+ goto yy44;
- if (yych == 'T') goto yy575;
- if (yych == 't') goto yy575;
++yy533:
++ YYDEBUG(533, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy525:
- YYDEBUG(525, *YYCURSOR);
++ if (yych == 'T') goto yy586;
++ if (yych == 't') goto yy586;
+ goto yy44;
- if (yych == '_') goto yy576;
++yy534:
++ YYDEBUG(534, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy526:
- YYDEBUG(526, *YYCURSOR);
++ if (yych == '_') goto yy587;
+ goto yy44;
- if (yych == '_') goto yy577;
++yy535:
++ YYDEBUG(535, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy527:
- YYDEBUG(527, *YYCURSOR);
++ if (yych == '_') goto yy588;
+ goto yy44;
- if (yych == 'O') goto yy578;
- if (yych == 'o') goto yy578;
++yy536:
++ YYDEBUG(536, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy528:
- YYDEBUG(528, *YYCURSOR);
++ if (yych == 'O') goto yy589;
++ if (yych == 'o') goto yy589;
+ goto yy44;
- if (yych == 'S') goto yy579;
- if (yych == 's') goto yy579;
++yy537:
++ YYDEBUG(537, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy529:
- YYDEBUG(529, *YYCURSOR);
++ if (yych == 'S') goto yy590;
++ if (yych == 's') goto yy590;
+ goto yy44;
- if (yych == 'T') goto yy580;
- if (yych == 't') goto yy580;
++yy538:
++ YYDEBUG(538, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy530:
- YYDEBUG(530, *YYCURSOR);
++ if (yych == 'T') goto yy591;
++ if (yych == 't') goto yy591;
+ goto yy44;
- YYDEBUG(531, *YYCURSOR);
++yy539:
++ YYDEBUG(539, *YYCURSOR);
+ ++YYCURSOR;
-#line 1488 "Zend/zend_language_scanner.l"
++ YYDEBUG(540, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5675 "Zend/zend_language_scanner.c"
-yy532:
- YYDEBUG(532, *YYCURSOR);
++#line 1508 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_ARRAY_CAST);
+ }
- YYDEBUG(533, *YYCURSOR);
++#line 5835 "Zend/zend_language_scanner.c"
++yy541:
++ YYDEBUG(541, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- if (yych == '\t') goto yy532;
++ YYDEBUG(542, *YYCURSOR);
+ if (yych <= 0x1F) {
- if (yych <= ' ') goto yy532;
- if (yych == ')') goto yy581;
++ if (yych == '\t') goto yy541;
+ goto yy82;
+ } else {
-yy534:
- YYDEBUG(534, *YYCURSOR);
++ if (yych <= ' ') goto yy541;
++ if (yych == ')') goto yy592;
+ goto yy82;
+ }
- if (yych == 'N') goto yy470;
- if (yych == 'n') goto yy470;
++yy543:
++ YYDEBUG(543, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy535:
- YYDEBUG(535, *YYCURSOR);
++ if (yych == 'N') goto yy477;
++ if (yych == 'n') goto yy477;
+ goto yy82;
- if (yych == 'R') goto yy382;
- if (yych == 'r') goto yy382;
++yy544:
++ YYDEBUG(544, *YYCURSOR);
++ ++YYCURSOR;
++ YYDEBUG(545, *YYCURSOR);
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 1493 "Zend/zend_language_scanner.l"
++ {
++ RETURN_TOKEN(T_DOUBLE_CAST);
++}
++#line 5865 "Zend/zend_language_scanner.c"
++yy546:
++ YYDEBUG(546, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy536:
- YYDEBUG(536, *YYCURSOR);
++ if (yych == 'R') goto yy389;
++ if (yych == 'r') goto yy389;
+ goto yy82;
- YYDEBUG(537, *YYCURSOR);
++yy547:
++ YYDEBUG(547, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- if (yych == '\t') goto yy536;
++ YYDEBUG(548, *YYCURSOR);
+ if (yych <= 0x1F) {
- if (yych <= ' ') goto yy536;
- if (yych == ')') goto yy583;
++ if (yych == '\t') goto yy547;
+ goto yy82;
+ } else {
-yy538:
- YYDEBUG(538, *YYCURSOR);
++ if (yych <= ' ') goto yy547;
++ if (yych == ')') goto yy594;
+ goto yy82;
+ }
- YYDEBUG(539, *YYCURSOR);
++yy549:
++ YYDEBUG(549, *YYCURSOR);
+ ++YYCURSOR;
-#line 1500 "Zend/zend_language_scanner.l"
++ YYDEBUG(550, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5725 "Zend/zend_language_scanner.c"
-yy540:
- YYDEBUG(540, *YYCURSOR);
++#line 1520 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_UNSET_CAST);
+ }
- if (yych == 'T') goto yy585;
- if (yych == 't') goto yy585;
++#line 5895 "Zend/zend_language_scanner.c"
++yy551:
++ YYDEBUG(551, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy541:
- YYDEBUG(541, *YYCURSOR);
++ if (yych == 'T') goto yy596;
++ if (yych == 't') goto yy596;
+ goto yy44;
- if (yych == 'E') goto yy587;
- if (yych == 'e') goto yy587;
++yy552:
++ YYDEBUG(552, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy542:
- YYDEBUG(542, *YYCURSOR);
++ if (yych == 'E') goto yy598;
++ if (yych == 'e') goto yy598;
+ goto yy44;
- if (yych == 'E') goto yy589;
- if (yych == 'e') goto yy589;
++yy553:
++ YYDEBUG(553, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy543:
- YYDEBUG(543, *YYCURSOR);
++ if (yych == 'E') goto yy600;
++ if (yych == 'e') goto yy600;
+ goto yy44;
- YYDEBUG(544, *YYCURSOR);
++yy554:
++ YYDEBUG(554, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1352 "Zend/zend_language_scanner.l"
++ YYDEBUG(555, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5756 "Zend/zend_language_scanner.c"
-yy545:
- YYDEBUG(545, *YYCURSOR);
++#line 1365 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_DECLARE);
+ }
- YYDEBUG(546, *YYCURSOR);
++#line 5926 "Zend/zend_language_scanner.c"
++yy556:
++ YYDEBUG(556, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1380 "Zend/zend_language_scanner.l"
++ YYDEBUG(557, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5769 "Zend/zend_language_scanner.c"
-yy547:
- YYDEBUG(547, *YYCURSOR);
++#line 1393 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_DEFAULT);
+ }
- if (yych == 'A') goto yy591;
- if (yych == 'a') goto yy591;
++#line 5939 "Zend/zend_language_scanner.c"
++yy558:
++ YYDEBUG(558, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy548:
- YYDEBUG(548, *YYCURSOR);
++ if (yych == 'A') goto yy602;
++ if (yych == 'a') goto yy602;
+ goto yy44;
- if (yych == 'A') goto yy592;
- if (yych == 'a') goto yy592;
++yy559:
++ YYDEBUG(559, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy549:
- YYDEBUG(549, *YYCURSOR);
++ if (yych == 'A') goto yy603;
++ if (yych == 'a') goto yy603;
+ goto yy44;
- if (yych == 'C') goto yy593;
- if (yych == 'c') goto yy593;
++yy560:
++ YYDEBUG(560, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy550:
- YYDEBUG(550, *YYCURSOR);
++ if (yych == 'C') goto yy604;
++ if (yych == 'c') goto yy604;
+ goto yy44;
- if (yych == 'E') goto yy594;
- if (yych == 'e') goto yy594;
++yy561:
++ YYDEBUG(561, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy551:
- YYDEBUG(551, *YYCURSOR);
++ if (yych == 'E') goto yy605;
++ if (yych == 'e') goto yy605;
+ goto yy44;
- YYDEBUG(552, *YYCURSOR);
++yy562:
++ YYDEBUG(562, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1416 "Zend/zend_language_scanner.l"
++ YYDEBUG(563, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5806 "Zend/zend_language_scanner.c"
-yy553:
- YYDEBUG(553, *YYCURSOR);
++#line 1429 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_EXTENDS);
+ }
- YYDEBUG(554, *YYCURSOR);
++#line 5976 "Zend/zend_language_scanner.c"
++yy564:
++ YYDEBUG(564, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1300 "Zend/zend_language_scanner.l"
++ YYDEBUG(565, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5819 "Zend/zend_language_scanner.c"
-yy555:
- YYDEBUG(555, *YYCURSOR);
++#line 1313 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_FINALLY);
+ }
- YYDEBUG(556, *YYCURSOR);
++#line 5989 "Zend/zend_language_scanner.c"
++yy566:
++ YYDEBUG(566, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1344 "Zend/zend_language_scanner.l"
++ YYDEBUG(567, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5832 "Zend/zend_language_scanner.c"
-yy557:
- YYDEBUG(557, *YYCURSOR);
++#line 1357 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_FOREACH);
+ }
- if (yych == 'N') goto yy596;
- if (yych == 'n') goto yy596;
++#line 6002 "Zend/zend_language_scanner.c"
++yy568:
++ YYDEBUG(568, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy558:
- YYDEBUG(558, *YYCURSOR);
++ if (yych == 'N') goto yy607;
++ if (yych == 'n') goto yy607;
+ goto yy44;
- if (yych == 'N') goto yy598;
- if (yych == 'n') goto yy598;
++yy569:
++ YYDEBUG(569, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy559:
- YYDEBUG(559, *YYCURSOR);
++ if (yych == 'N') goto yy609;
++ if (yych == 'n') goto yy609;
+ goto yy44;
- if (yych <= '@') goto yy560;
++yy570:
++ YYDEBUG(570, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '^') {
+ if (yych <= '9') {
+ if (yych >= '0') goto yy43;
+ } else {
- if (yych <= '_') goto yy599;
++ if (yych <= '@') goto yy571;
+ if (yych <= 'Z') goto yy43;
+ }
+ } else {
+ if (yych <= '`') {
-yy560:
- YYDEBUG(560, *YYCURSOR);
++ if (yych <= '_') goto yy610;
+ } else {
+ if (yych <= 'z') goto yy43;
+ if (yych >= 0x80) goto yy43;
+ }
+ }
-#line 1508 "Zend/zend_language_scanner.l"
++yy571:
++ YYDEBUG(571, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5870 "Zend/zend_language_scanner.c"
-yy561:
- YYDEBUG(561, *YYCURSOR);
++#line 1528 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_INCLUDE);
+ }
- if (yych == 'E') goto yy600;
- if (yych == 'e') goto yy600;
++#line 6040 "Zend/zend_language_scanner.c"
++yy572:
++ YYDEBUG(572, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy562:
- YYDEBUG(562, *YYCURSOR);
++ if (yych == 'E') goto yy611;
++ if (yych == 'e') goto yy611;
+ goto yy44;
- if (yych == 'O') goto yy601;
- if (yych == 'o') goto yy601;
++yy573:
++ YYDEBUG(573, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy563:
- YYDEBUG(563, *YYCURSOR);
++ if (yych == 'O') goto yy612;
++ if (yych == 'o') goto yy612;
+ goto yy44;
- if (yych == 'C') goto yy602;
- if (yych == 'c') goto yy602;
++yy574:
++ YYDEBUG(574, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy564:
- YYDEBUG(564, *YYCURSOR);
++ if (yych == 'C') goto yy613;
++ if (yych == 'c') goto yy613;
+ goto yy44;
- if (yych == 'C') goto yy603;
- if (yych == 'c') goto yy603;
++yy575:
++ YYDEBUG(575, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy565:
- YYDEBUG(565, *YYCURSOR);
++ if (yych == 'C') goto yy614;
++ if (yych == 'c') goto yy614;
+ goto yy44;
- YYDEBUG(566, *YYCURSOR);
++yy576:
++ YYDEBUG(576, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1564 "Zend/zend_language_scanner.l"
++ YYDEBUG(577, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5907 "Zend/zend_language_scanner.c"
-yy567:
- YYDEBUG(567, *YYCURSOR);
++#line 1584 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_PRIVATE);
+ }
- if (yych == 'E') goto yy604;
- if (yych == 'e') goto yy604;
++#line 6077 "Zend/zend_language_scanner.c"
++yy578:
++ YYDEBUG(578, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy568:
- YYDEBUG(568, *YYCURSOR);
++ if (yych == 'E') goto yy615;
++ if (yych == 'e') goto yy615;
+ goto yy44;
- if (yych <= '@') goto yy569;
++yy579:
++ YYDEBUG(579, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '^') {
+ if (yych <= '9') {
+ if (yych >= '0') goto yy43;
+ } else {
- if (yych <= '_') goto yy605;
++ if (yych <= '@') goto yy580;
+ if (yych <= 'Z') goto yy43;
+ }
+ } else {
+ if (yych <= '`') {
-yy569:
- YYDEBUG(569, *YYCURSOR);
++ if (yych <= '_') goto yy616;
+ } else {
+ if (yych <= 'z') goto yy43;
+ if (yych >= 0x80) goto yy43;
+ }
+ }
-#line 1516 "Zend/zend_language_scanner.l"
++yy580:
++ YYDEBUG(580, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5939 "Zend/zend_language_scanner.c"
-yy570:
- YYDEBUG(570, *YYCURSOR);
++#line 1536 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_REQUIRE);
+ }
- if (yych == 'R') goto yy606;
- if (yych == 'r') goto yy606;
++#line 6109 "Zend/zend_language_scanner.c"
++yy581:
++ YYDEBUG(581, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy571:
- YYDEBUG(571, *YYCURSOR);
++ if (yych == 'R') goto yy617;
++ if (yych == 'r') goto yy617;
+ goto yy82;
- if (yych == '_') goto yy607;
++yy582:
++ YYDEBUG(582, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy572:
- YYDEBUG(572, *YYCURSOR);
++ if (yych == '_') goto yy618;
+ goto yy44;
- YYDEBUG(573, *YYCURSOR);
++yy583:
++ YYDEBUG(583, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1919 "Zend/zend_language_scanner.l"
++ YYDEBUG(584, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 5963 "Zend/zend_language_scanner.c"
-yy574:
- YYDEBUG(574, *YYCURSOR);
++#line 1993 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_DIR);
+ }
- if (yych == '_') goto yy608;
++#line 6133 "Zend/zend_language_scanner.c"
++yy585:
++ YYDEBUG(585, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy575:
- YYDEBUG(575, *YYCURSOR);
++ if (yych == '_') goto yy619;
+ goto yy44;
- if (yych == 'I') goto yy610;
- if (yych == 'i') goto yy610;
++yy586:
++ YYDEBUG(586, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy576:
- YYDEBUG(576, *YYCURSOR);
++ if (yych == 'I') goto yy621;
++ if (yych == 'i') goto yy621;
+ goto yy44;
- if (yych == 'C') goto yy611;
- if (yych == 'c') goto yy611;
++yy587:
++ YYDEBUG(587, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy577:
- YYDEBUG(577, *YYCURSOR);
++ if (yych == 'C') goto yy622;
++ if (yych == 'c') goto yy622;
+ goto yy44;
- if (yych == '_') goto yy612;
++yy588:
++ YYDEBUG(588, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy578:
- YYDEBUG(578, *YYCURSOR);
++ if (yych == '_') goto yy623;
+ goto yy44;
- if (yych == 'D') goto yy614;
- if (yych == 'd') goto yy614;
++yy589:
++ YYDEBUG(589, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy579:
- YYDEBUG(579, *YYCURSOR);
++ if (yych == 'D') goto yy625;
++ if (yych == 'd') goto yy625;
+ goto yy44;
- if (yych == 'P') goto yy615;
- if (yych == 'p') goto yy615;
++yy590:
++ YYDEBUG(590, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy580:
- YYDEBUG(580, *YYCURSOR);
++ if (yych == 'P') goto yy626;
++ if (yych == 'p') goto yy626;
+ goto yy44;
- if (yych == '_') goto yy616;
++yy591:
++ YYDEBUG(591, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy581:
- YYDEBUG(581, *YYCURSOR);
++ if (yych == '_') goto yy627;
+ goto yy44;
- YYDEBUG(582, *YYCURSOR);
++yy592:
++ YYDEBUG(592, *YYCURSOR);
+ ++YYCURSOR;
-#line 1484 "Zend/zend_language_scanner.l"
++ YYDEBUG(593, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6012 "Zend/zend_language_scanner.c"
-yy583:
- YYDEBUG(583, *YYCURSOR);
++#line 1504 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_STRING_CAST);
+ }
- YYDEBUG(584, *YYCURSOR);
++#line 6182 "Zend/zend_language_scanner.c"
++yy594:
++ YYDEBUG(594, *YYCURSOR);
+ ++YYCURSOR;
-#line 1492 "Zend/zend_language_scanner.l"
++ YYDEBUG(595, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6022 "Zend/zend_language_scanner.c"
-yy585:
- YYDEBUG(585, *YYCURSOR);
++#line 1512 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_OBJECT_CAST);
+ }
- YYDEBUG(586, *YYCURSOR);
++#line 6192 "Zend/zend_language_scanner.c"
++yy596:
++ YYDEBUG(596, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1556 "Zend/zend_language_scanner.l"
++ YYDEBUG(597, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6035 "Zend/zend_language_scanner.c"
-yy587:
- YYDEBUG(587, *YYCURSOR);
++#line 1576 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_ABSTRACT);
+ }
- YYDEBUG(588, *YYCURSOR);
++#line 6205 "Zend/zend_language_scanner.c"
++yy598:
++ YYDEBUG(598, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1592 "Zend/zend_language_scanner.l"
++ YYDEBUG(599, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6048 "Zend/zend_language_scanner.c"
-yy589:
- YYDEBUG(589, *YYCURSOR);
++#line 1612 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_CALLABLE);
+ }
- YYDEBUG(590, *YYCURSOR);
++#line 6218 "Zend/zend_language_scanner.c"
++yy600:
++ YYDEBUG(600, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1388 "Zend/zend_language_scanner.l"
++ YYDEBUG(601, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6061 "Zend/zend_language_scanner.c"
-yy591:
- YYDEBUG(591, *YYCURSOR);
++#line 1401 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_CONTINUE);
+ }
- if (yych == 'R') goto yy617;
- if (yych == 'r') goto yy617;
++#line 6231 "Zend/zend_language_scanner.c"
++yy602:
++ YYDEBUG(602, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy592:
- YYDEBUG(592, *YYCURSOR);
++ if (yych == 'R') goto yy628;
++ if (yych == 'r') goto yy628;
+ goto yy44;
- if (yych == 'C') goto yy618;
- if (yych == 'c') goto yy618;
++yy603:
++ YYDEBUG(603, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy593:
- YYDEBUG(593, *YYCURSOR);
++ if (yych == 'C') goto yy629;
++ if (yych == 'c') goto yy629;
+ goto yy44;
- if (yych == 'H') goto yy619;
- if (yych == 'h') goto yy619;
++yy604:
++ YYDEBUG(604, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy594:
- YYDEBUG(594, *YYCURSOR);
++ if (yych == 'H') goto yy630;
++ if (yych == 'h') goto yy630;
+ goto yy44;
- YYDEBUG(595, *YYCURSOR);
++yy605:
++ YYDEBUG(605, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1328 "Zend/zend_language_scanner.l"
++ YYDEBUG(606, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6092 "Zend/zend_language_scanner.c"
-yy596:
- YYDEBUG(596, *YYCURSOR);
++#line 1341 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_ENDWHILE);
+ }
- YYDEBUG(597, *YYCURSOR);
++#line 6262 "Zend/zend_language_scanner.c"
++yy607:
++ YYDEBUG(607, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1270 "Zend/zend_language_scanner.l"
++ YYDEBUG(608, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6105 "Zend/zend_language_scanner.c"
-yy598:
- YYDEBUG(598, *YYCURSOR);
++#line 1283 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_FUNCTION);
+ }
- if (yych == 'T') goto yy621;
- if (yych == 't') goto yy621;
++#line 6275 "Zend/zend_language_scanner.c"
++yy609:
++ YYDEBUG(609, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy599:
- YYDEBUG(599, *YYCURSOR);
++ if (yych == 'T') goto yy632;
++ if (yych == 't') goto yy632;
+ goto yy44;
- if (yych == 'O') goto yy622;
- if (yych == 'o') goto yy622;
++yy610:
++ YYDEBUG(610, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy600:
- YYDEBUG(600, *YYCURSOR);
++ if (yych == 'O') goto yy633;
++ if (yych == 'o') goto yy633;
+ goto yy44;
- if (yych == 'O') goto yy623;
- if (yych == 'o') goto yy623;
++yy611:
++ YYDEBUG(611, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy601:
- YYDEBUG(601, *YYCURSOR);
++ if (yych == 'O') goto yy634;
++ if (yych == 'o') goto yy634;
+ goto yy44;
- if (yych == 'F') goto yy624;
- if (yych == 'f') goto yy624;
++yy612:
++ YYDEBUG(612, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy602:
- YYDEBUG(602, *YYCURSOR);
++ if (yych == 'F') goto yy635;
++ if (yych == 'f') goto yy635;
+ goto yy44;
- if (yych == 'E') goto yy626;
- if (yych == 'e') goto yy626;
++yy613:
++ YYDEBUG(613, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy603:
- YYDEBUG(603, *YYCURSOR);
++ if (yych == 'E') goto yy637;
++ if (yych == 'e') goto yy637;
+ goto yy44;
- if (yych == 'E') goto yy628;
- if (yych == 'e') goto yy628;
++yy614:
++ YYDEBUG(614, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy604:
- YYDEBUG(604, *YYCURSOR);
++ if (yych == 'E') goto yy639;
++ if (yych == 'e') goto yy639;
+ goto yy44;
- if (yych == 'D') goto yy630;
- if (yych == 'd') goto yy630;
++yy615:
++ YYDEBUG(615, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy605:
- YYDEBUG(605, *YYCURSOR);
++ if (yych == 'D') goto yy641;
++ if (yych == 'd') goto yy641;
+ goto yy44;
- if (yych == 'O') goto yy632;
- if (yych == 'o') goto yy632;
++yy616:
++ YYDEBUG(616, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy606:
- YYDEBUG(606, *YYCURSOR);
++ if (yych == 'O') goto yy643;
++ if (yych == 'o') goto yy643;
+ goto yy44;
- if (yych == 'O') goto yy633;
- if (yych == 'o') goto yy633;
++yy617:
++ YYDEBUG(617, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy607:
- YYDEBUG(607, *YYCURSOR);
++ if (yych == 'O') goto yy644;
++ if (yych == 'o') goto yy644;
+ goto yy82;
- if (yych == '_') goto yy634;
++yy618:
++ YYDEBUG(618, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy608:
- YYDEBUG(608, *YYCURSOR);
++ if (yych == '_') goto yy645;
+ goto yy44;
- YYDEBUG(609, *YYCURSOR);
++yy619:
++ YYDEBUG(619, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1915 "Zend/zend_language_scanner.l"
++ YYDEBUG(620, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6177 "Zend/zend_language_scanner.c"
-yy610:
- YYDEBUG(610, *YYCURSOR);
++#line 1989 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_FILE);
+ }
- if (yych == 'O') goto yy636;
- if (yych == 'o') goto yy636;
++#line 6347 "Zend/zend_language_scanner.c"
++yy621:
++ YYDEBUG(621, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy611:
- YYDEBUG(611, *YYCURSOR);
++ if (yych == 'O') goto yy647;
++ if (yych == 'o') goto yy647;
+ goto yy44;
- if (yych == 'O') goto yy637;
- if (yych == 'o') goto yy637;
++yy622:
++ YYDEBUG(622, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy612:
- YYDEBUG(612, *YYCURSOR);
++ if (yych == 'O') goto yy648;
++ if (yych == 'o') goto yy648;
+ goto yy44;
- YYDEBUG(613, *YYCURSOR);
++yy623:
++ YYDEBUG(623, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1911 "Zend/zend_language_scanner.l"
++ YYDEBUG(624, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6202 "Zend/zend_language_scanner.c"
-yy614:
- YYDEBUG(614, *YYCURSOR);
++#line 1985 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_LINE);
+ }
- if (yych == '_') goto yy638;
++#line 6372 "Zend/zend_language_scanner.c"
++yy625:
++ YYDEBUG(625, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy615:
- YYDEBUG(615, *YYCURSOR);
++ if (yych == '_') goto yy649;
+ goto yy44;
- if (yych == 'A') goto yy639;
- if (yych == 'a') goto yy639;
++yy626:
++ YYDEBUG(626, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy616:
- YYDEBUG(616, *YYCURSOR);
++ if (yych == 'A') goto yy650;
++ if (yych == 'a') goto yy650;
+ goto yy44;
- if (yych == '_') goto yy640;
++yy627:
++ YYDEBUG(627, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy617:
- YYDEBUG(617, *YYCURSOR);
++ if (yych == '_') goto yy651;
+ goto yy44;
- if (yych == 'E') goto yy642;
- if (yych == 'e') goto yy642;
++yy628:
++ YYDEBUG(628, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy618:
- YYDEBUG(618, *YYCURSOR);
++ if (yych == 'E') goto yy653;
++ if (yych == 'e') goto yy653;
+ goto yy44;
- if (yych == 'H') goto yy644;
- if (yych == 'h') goto yy644;
++yy629:
++ YYDEBUG(629, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy619:
- YYDEBUG(619, *YYCURSOR);
++ if (yych == 'H') goto yy655;
++ if (yych == 'h') goto yy655;
+ goto yy44;
- YYDEBUG(620, *YYCURSOR);
++yy630:
++ YYDEBUG(630, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1372 "Zend/zend_language_scanner.l"
++ YYDEBUG(631, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6243 "Zend/zend_language_scanner.c"
-yy621:
- YYDEBUG(621, *YYCURSOR);
++#line 1385 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_ENDSWITCH);
+ }
- if (yych == 'S') goto yy646;
- if (yych == 's') goto yy646;
++#line 6413 "Zend/zend_language_scanner.c"
++yy632:
++ YYDEBUG(632, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy622:
- YYDEBUG(622, *YYCURSOR);
++ if (yych == 'S') goto yy657;
++ if (yych == 's') goto yy657;
+ goto yy44;
- if (yych == 'N') goto yy648;
- if (yych == 'n') goto yy648;
++yy633:
++ YYDEBUG(633, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy623:
- YYDEBUG(623, *YYCURSOR);
++ if (yych == 'N') goto yy659;
++ if (yych == 'n') goto yy659;
+ goto yy44;
- if (yych == 'F') goto yy649;
- if (yych == 'f') goto yy649;
++yy634:
++ YYDEBUG(634, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy624:
- YYDEBUG(624, *YYCURSOR);
++ if (yych == 'F') goto yy660;
++ if (yych == 'f') goto yy660;
+ goto yy44;
- YYDEBUG(625, *YYCURSOR);
++yy635:
++ YYDEBUG(635, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1532 "Zend/zend_language_scanner.l"
++ YYDEBUG(636, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6274 "Zend/zend_language_scanner.c"
-yy626:
- YYDEBUG(626, *YYCURSOR);
++#line 1552 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_INSTEADOF);
+ }
- YYDEBUG(627, *YYCURSOR);
++#line 6444 "Zend/zend_language_scanner.c"
++yy637:
++ YYDEBUG(637, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1408 "Zend/zend_language_scanner.l"
++ YYDEBUG(638, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6287 "Zend/zend_language_scanner.c"
-yy628:
- YYDEBUG(628, *YYCURSOR);
++#line 1421 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_INTERFACE);
+ }
- YYDEBUG(629, *YYCURSOR);
++#line 6457 "Zend/zend_language_scanner.c"
++yy639:
++ YYDEBUG(639, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1524 "Zend/zend_language_scanner.l"
++ YYDEBUG(640, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6300 "Zend/zend_language_scanner.c"
-yy630:
- YYDEBUG(630, *YYCURSOR);
++#line 1544 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_NAMESPACE);
+ }
- YYDEBUG(631, *YYCURSOR);
++#line 6470 "Zend/zend_language_scanner.c"
++yy641:
++ YYDEBUG(641, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1568 "Zend/zend_language_scanner.l"
++ YYDEBUG(642, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6313 "Zend/zend_language_scanner.c"
-yy632:
- YYDEBUG(632, *YYCURSOR);
++#line 1588 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_PROTECTED);
+ }
- if (yych == 'N') goto yy651;
- if (yych == 'n') goto yy651;
++#line 6483 "Zend/zend_language_scanner.c"
++yy643:
++ YYDEBUG(643, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy633:
- YYDEBUG(633, *YYCURSOR);
++ if (yych == 'N') goto yy662;
++ if (yych == 'n') goto yy662;
+ goto yy44;
- if (yych == 'M') goto yy652;
- if (yych == 'm') goto yy652;
++yy644:
++ YYDEBUG(644, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy634:
- YYDEBUG(634, *YYCURSOR);
++ if (yych == 'M') goto yy663;
++ if (yych == 'm') goto yy663;
+ goto yy82;
- YYDEBUG(635, *YYCURSOR);
++yy645:
++ YYDEBUG(645, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1895 "Zend/zend_language_scanner.l"
++ YYDEBUG(646, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6338 "Zend/zend_language_scanner.c"
-yy636:
- YYDEBUG(636, *YYCURSOR);
++#line 1969 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_CLASS_C);
+ }
- if (yych == 'N') goto yy653;
- if (yych == 'n') goto yy653;
++#line 6508 "Zend/zend_language_scanner.c"
++yy647:
++ YYDEBUG(647, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy637:
- YYDEBUG(637, *YYCURSOR);
++ if (yych == 'N') goto yy664;
++ if (yych == 'n') goto yy664;
+ goto yy44;
- if (yych == 'M') goto yy654;
- if (yych == 'm') goto yy654;
++yy648:
++ YYDEBUG(648, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy638:
- YYDEBUG(638, *YYCURSOR);
++ if (yych == 'M') goto yy665;
++ if (yych == 'm') goto yy665;
+ goto yy44;
- if (yych == '_') goto yy655;
++yy649:
++ YYDEBUG(649, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy639:
- YYDEBUG(639, *YYCURSOR);
++ if (yych == '_') goto yy666;
+ goto yy44;
- if (yych == 'C') goto yy657;
- if (yych == 'c') goto yy657;
++yy650:
++ YYDEBUG(650, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy640:
- YYDEBUG(640, *YYCURSOR);
++ if (yych == 'C') goto yy668;
++ if (yych == 'c') goto yy668;
+ goto yy44;
- YYDEBUG(641, *YYCURSOR);
++yy651:
++ YYDEBUG(651, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1899 "Zend/zend_language_scanner.l"
++ YYDEBUG(652, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6374 "Zend/zend_language_scanner.c"
-yy642:
- YYDEBUG(642, *YYCURSOR);
++#line 1973 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_TRAIT_C);
+ }
- YYDEBUG(643, *YYCURSOR);
++#line 6544 "Zend/zend_language_scanner.c"
++yy653:
++ YYDEBUG(653, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1356 "Zend/zend_language_scanner.l"
++ YYDEBUG(654, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6387 "Zend/zend_language_scanner.c"
-yy644:
- YYDEBUG(644, *YYCURSOR);
++#line 1369 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_ENDDECLARE);
+ }
- YYDEBUG(645, *YYCURSOR);
++#line 6557 "Zend/zend_language_scanner.c"
++yy655:
++ YYDEBUG(655, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1348 "Zend/zend_language_scanner.l"
++ YYDEBUG(656, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6400 "Zend/zend_language_scanner.c"
-yy646:
- YYDEBUG(646, *YYCURSOR);
++#line 1361 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_ENDFOREACH);
+ }
- YYDEBUG(647, *YYCURSOR);
++#line 6570 "Zend/zend_language_scanner.c"
++yy657:
++ YYDEBUG(657, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1420 "Zend/zend_language_scanner.l"
++ YYDEBUG(658, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6413 "Zend/zend_language_scanner.c"
-yy648:
- YYDEBUG(648, *YYCURSOR);
++#line 1433 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_IMPLEMENTS);
+ }
- if (yych == 'C') goto yy658;
- if (yych == 'c') goto yy658;
- goto yy44;
-yy649:
- YYDEBUG(649, *YYCURSOR);
++#line 6583 "Zend/zend_language_scanner.c"
++yy659:
++ YYDEBUG(659, *YYCURSOR);
+ yych = *++YYCURSOR;
- YYDEBUG(650, *YYCURSOR);
++ if (yych == 'C') goto yy669;
++ if (yych == 'c') goto yy669;
++ goto yy44;
++yy660:
++ YYDEBUG(660, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1360 "Zend/zend_language_scanner.l"
++ YYDEBUG(661, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6432 "Zend/zend_language_scanner.c"
-yy651:
- YYDEBUG(651, *YYCURSOR);
++#line 1373 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_INSTANCEOF);
+ }
- if (yych == 'C') goto yy659;
- if (yych == 'c') goto yy659;
++#line 6602 "Zend/zend_language_scanner.c"
++yy662:
++ YYDEBUG(662, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy652:
- YYDEBUG(652, *YYCURSOR);
++ if (yych == 'C') goto yy670;
++ if (yych == 'c') goto yy670;
+ goto yy44;
- if (yych <= '/') goto yy660;
++yy663:
++ YYDEBUG(663, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '^') {
+ if (yych <= '9') {
- if (yych <= '@') goto yy660;
++ if (yych <= '/') goto yy671;
+ goto yy82;
+ } else {
- goto yy660;
++ if (yych <= '@') goto yy671;
+ if (yych <= 'Z') goto yy82;
- goto yy660;
++ goto yy671;
+ }
+ } else {
+ if (yych <= '`') {
+ if (yych <= '_') goto yy82;
- if (yych <= 0x7F) goto yy660;
++ goto yy671;
+ } else {
+ if (yych <= 'z') goto yy82;
-yy653:
- YYDEBUG(653, *YYCURSOR);
++ if (yych <= 0x7F) goto yy671;
+ goto yy82;
+ }
+ }
- if (yych == '_') goto yy662;
++yy664:
++ YYDEBUG(664, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy654:
- YYDEBUG(654, *YYCURSOR);
++ if (yych == '_') goto yy673;
+ goto yy44;
- if (yych == 'P') goto yy663;
- if (yych == 'p') goto yy663;
++yy665:
++ YYDEBUG(665, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy655:
- YYDEBUG(655, *YYCURSOR);
++ if (yych == 'P') goto yy674;
++ if (yych == 'p') goto yy674;
+ goto yy44;
- YYDEBUG(656, *YYCURSOR);
++yy666:
++ YYDEBUG(666, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1907 "Zend/zend_language_scanner.l"
++ YYDEBUG(667, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6484 "Zend/zend_language_scanner.c"
-yy657:
- YYDEBUG(657, *YYCURSOR);
++#line 1981 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_METHOD_C);
+ }
- if (yych == 'E') goto yy664;
- if (yych == 'e') goto yy664;
++#line 6654 "Zend/zend_language_scanner.c"
++yy668:
++ YYDEBUG(668, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy658:
- YYDEBUG(658, *YYCURSOR);
++ if (yych == 'E') goto yy675;
++ if (yych == 'e') goto yy675;
+ goto yy44;
- if (yych == 'E') goto yy665;
- if (yych == 'e') goto yy665;
++yy669:
++ YYDEBUG(669, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy659:
- YYDEBUG(659, *YYCURSOR);
++ if (yych == 'E') goto yy676;
++ if (yych == 'e') goto yy676;
+ goto yy44;
- if (yych == 'E') goto yy667;
- if (yych == 'e') goto yy667;
++yy670:
++ YYDEBUG(670, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy660:
- YYDEBUG(660, *YYCURSOR);
++ if (yych == 'E') goto yy678;
++ if (yych == 'e') goto yy678;
+ goto yy44;
- YYDEBUG(661, *YYCURSOR);
++yy671:
++ YYDEBUG(671, *YYCURSOR);
+ ++YYCURSOR;
-#line 1282 "Zend/zend_language_scanner.l"
++ YYDEBUG(672, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6514 "Zend/zend_language_scanner.c"
-yy662:
- YYDEBUG(662, *YYCURSOR);
++#line 1295 "Zend/zend_language_scanner.l"
+ {
+ yyless(yyleng - 1);
+ HANDLE_NEWLINES(yytext, yyleng);
+ RETURN_TOKEN(T_YIELD_FROM);
+ }
- if (yych == '_') goto yy669;
++#line 6684 "Zend/zend_language_scanner.c"
++yy673:
++ YYDEBUG(673, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy663:
- YYDEBUG(663, *YYCURSOR);
++ if (yych == '_') goto yy680;
+ goto yy44;
- if (yych == 'I') goto yy671;
- if (yych == 'i') goto yy671;
++yy674:
++ YYDEBUG(674, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy664:
- YYDEBUG(664, *YYCURSOR);
++ if (yych == 'I') goto yy682;
++ if (yych == 'i') goto yy682;
+ goto yy44;
- if (yych == '_') goto yy672;
++yy675:
++ YYDEBUG(675, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy665:
- YYDEBUG(665, *YYCURSOR);
++ if (yych == '_') goto yy683;
+ goto yy44;
- YYDEBUG(666, *YYCURSOR);
++yy676:
++ YYDEBUG(676, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1512 "Zend/zend_language_scanner.l"
++ YYDEBUG(677, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6543 "Zend/zend_language_scanner.c"
-yy667:
- YYDEBUG(667, *YYCURSOR);
++#line 1532 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_INCLUDE_ONCE);
+ }
- YYDEBUG(668, *YYCURSOR);
++#line 6713 "Zend/zend_language_scanner.c"
++yy678:
++ YYDEBUG(678, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1520 "Zend/zend_language_scanner.l"
++ YYDEBUG(679, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6556 "Zend/zend_language_scanner.c"
-yy669:
- YYDEBUG(669, *YYCURSOR);
++#line 1540 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_REQUIRE_ONCE);
+ }
- YYDEBUG(670, *YYCURSOR);
++#line 6726 "Zend/zend_language_scanner.c"
++yy680:
++ YYDEBUG(680, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1903 "Zend/zend_language_scanner.l"
++ YYDEBUG(681, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6569 "Zend/zend_language_scanner.c"
-yy671:
- YYDEBUG(671, *YYCURSOR);
++#line 1977 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_FUNC_C);
+ }
- if (yych == 'L') goto yy673;
- if (yych == 'l') goto yy673;
++#line 6739 "Zend/zend_language_scanner.c"
++yy682:
++ YYDEBUG(682, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy672:
- YYDEBUG(672, *YYCURSOR);
++ if (yych == 'L') goto yy684;
++ if (yych == 'l') goto yy684;
+ goto yy44;
- if (yych == '_') goto yy674;
++yy683:
++ YYDEBUG(683, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy673:
- YYDEBUG(673, *YYCURSOR);
++ if (yych == '_') goto yy685;
+ goto yy44;
- if (yych == 'E') goto yy676;
- if (yych == 'e') goto yy676;
++yy684:
++ YYDEBUG(684, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy674:
- YYDEBUG(674, *YYCURSOR);
++ if (yych == 'E') goto yy687;
++ if (yych == 'e') goto yy687;
+ goto yy44;
- YYDEBUG(675, *YYCURSOR);
++yy685:
++ YYDEBUG(685, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1923 "Zend/zend_language_scanner.l"
++ YYDEBUG(686, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6599 "Zend/zend_language_scanner.c"
-yy676:
- YYDEBUG(676, *YYCURSOR);
++#line 1997 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_NS_C);
+ }
- if (yych == 'R') goto yy677;
++#line 6769 "Zend/zend_language_scanner.c"
++yy687:
++ YYDEBUG(687, *YYCURSOR);
+ yych = *++YYCURSOR;
-yy677:
- YYDEBUG(677, *YYCURSOR);
++ if (yych == 'R') goto yy688;
+ if (yych != 'r') goto yy44;
- YYDEBUG(678, *YYCURSOR);
++yy688:
++ YYDEBUG(688, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yybm[0+yych] & 16) {
+ goto yy43;
+ }
-#line 1548 "Zend/zend_language_scanner.l"
++ YYDEBUG(689, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6617 "Zend/zend_language_scanner.c"
++#line 1568 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_HALT_COMPILER);
+ }
- YYDEBUG(679, *YYCURSOR);
++#line 6787 "Zend/zend_language_scanner.c"
+ }
+ /* *********************************** */
+ yyc_ST_LOOKING_FOR_PROPERTY:
+ {
+ static const unsigned char yybm[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 64, 64, 0, 0, 64, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 64, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 0, 0, 0, 0, 0, 0,
+ 0, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 0, 0, 0, 0, 128,
+ 0, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 0, 0, 0, 0, 0,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ };
- goto yy683;
++ YYDEBUG(690, *YYCURSOR);
+ YYFILL(2);
+ yych = *YYCURSOR;
+ if (yybm[0+yych] & 64) {
- if (yych >= '-') goto yy686;
++ goto yy694;
+ }
+ if (yych <= '^') {
+ if (yych <= '-') {
- if (yych <= '@') goto yy681;
- if (yych <= 'Z') goto yy687;
++ if (yych >= '-') goto yy697;
+ } else {
- if (yych <= '_') goto yy687;
++ if (yych <= '@') goto yy692;
++ if (yych <= 'Z') goto yy698;
+ }
+ } else {
+ if (yych <= '`') {
- if (yych <= 'z') goto yy687;
- if (yych >= 0x80) goto yy687;
++ if (yych <= '_') goto yy698;
+ } else {
-yy681:
- YYDEBUG(681, *YYCURSOR);
++ if (yych <= 'z') goto yy698;
++ if (yych >= 0x80) goto yy698;
+ }
+ }
-yy682:
- YYDEBUG(682, *YYCURSOR);
++yy692:
++ YYDEBUG(692, *YYCURSOR);
+ ++YYCURSOR;
-#line 1442 "Zend/zend_language_scanner.l"
++yy693:
++ YYDEBUG(693, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6689 "Zend/zend_language_scanner.c"
-yy683:
- YYDEBUG(683, *YYCURSOR);
++#line 1455 "Zend/zend_language_scanner.l"
+ {
+ yyless(0);
+ yy_pop_state();
+ goto restart;
+ }
- YYDEBUG(684, *YYCURSOR);
++#line 6859 "Zend/zend_language_scanner.c"
++yy694:
++ YYDEBUG(694, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- goto yy683;
++ YYDEBUG(695, *YYCURSOR);
+ if (yybm[0+yych] & 64) {
- YYDEBUG(685, *YYCURSOR);
++ goto yy694;
+ }
-#line 1429 "Zend/zend_language_scanner.l"
++ YYDEBUG(696, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6705 "Zend/zend_language_scanner.c"
-yy686:
- YYDEBUG(686, *YYCURSOR);
++#line 1442 "Zend/zend_language_scanner.l"
+ {
+ goto return_whitespace;
+ }
- if (yych == '>') goto yy690;
- goto yy682;
-yy687:
- YYDEBUG(687, *YYCURSOR);
++#line 6875 "Zend/zend_language_scanner.c"
++yy697:
++ YYDEBUG(697, *YYCURSOR);
+ yych = *++YYCURSOR;
- YYDEBUG(688, *YYCURSOR);
++ if (yych == '>') goto yy701;
++ goto yy693;
++yy698:
++ YYDEBUG(698, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- goto yy687;
++ YYDEBUG(699, *YYCURSOR);
+ if (yybm[0+yych] & 128) {
- YYDEBUG(689, *YYCURSOR);
++ goto yy698;
+ }
-#line 1437 "Zend/zend_language_scanner.l"
++ YYDEBUG(700, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6727 "Zend/zend_language_scanner.c"
-yy690:
- YYDEBUG(690, *YYCURSOR);
++#line 1450 "Zend/zend_language_scanner.l"
+ {
+ yy_pop_state();
+ RETURN_TOKEN_WITH_STR(T_STRING, 0);
+ }
- YYDEBUG(691, *YYCURSOR);
++#line 6897 "Zend/zend_language_scanner.c"
++yy701:
++ YYDEBUG(701, *YYCURSOR);
+ ++YYCURSOR;
-#line 1433 "Zend/zend_language_scanner.l"
++ YYDEBUG(702, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6737 "Zend/zend_language_scanner.c"
++#line 1446 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN(T_OBJECT_OPERATOR);
+ }
- YYDEBUG(692, *YYCURSOR);
++#line 6907 "Zend/zend_language_scanner.c"
+ }
+ /* *********************************** */
+ yyc_ST_BACKQUOTE:
+ {
+ static const unsigned char yybm[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 0, 0, 0, 0, 0, 0,
+ 0, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 0, 0, 0, 0, 128,
+ 0, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 0, 0, 0, 0, 0,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ };
- if (yych == '$') goto yy696;
++ YYDEBUG(703, *YYCURSOR);
+ YYFILL(2);
+ yych = *YYCURSOR;
+ if (yych <= '_') {
- if (yych <= '`') goto yy697;
- if (yych == '{') goto yy699;
++ if (yych == '$') goto yy707;
+ } else {
- YYDEBUG(694, *YYCURSOR);
++ if (yych <= '`') goto yy708;
++ if (yych == '{') goto yy710;
+ }
-yy695:
- YYDEBUG(695, *YYCURSOR);
++ YYDEBUG(705, *YYCURSOR);
+ ++YYCURSOR;
-#line 2507 "Zend/zend_language_scanner.l"
++yy706:
++ YYDEBUG(706, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6835 "Zend/zend_language_scanner.c"
-yy696:
- YYDEBUG(696, *YYCURSOR);
++#line 2601 "Zend/zend_language_scanner.l"
+ {
+ if (YYCURSOR > YYLIMIT) {
+ RETURN_TOKEN(END);
+ }
+ if (yytext[0] == '\\' && YYCURSOR < YYLIMIT) {
+ YYCURSOR++;
+ }
+
+ while (YYCURSOR < YYLIMIT) {
+ switch (*YYCURSOR++) {
+ case '`':
+ break;
+ case '$':
+ if (IS_LABEL_START(*YYCURSOR) || *YYCURSOR == '{') {
+ break;
+ }
+ continue;
+ case '{':
+ if (*YYCURSOR == '$') {
+ break;
+ }
+ continue;
+ case '\\':
+ if (YYCURSOR < YYLIMIT) {
+ YYCURSOR++;
+ }
+ /* fall through */
+ default:
+ continue;
+ }
+
+ YYCURSOR--;
+ break;
+ }
+
+ yyleng = YYCURSOR - SCNG(yy_text);
+
+ if (EXPECTED(zend_scan_escape_string(zendlval, yytext, yyleng, '`') == SUCCESS)
+ || !PARSER_MODE()) {
+ RETURN_TOKEN_WITH_VAL(T_ENCAPSED_AND_WHITESPACE);
+ } else {
+ RETURN_TOKEN(T_ERROR);
+ }
+ }
- if (yych <= '@') goto yy695;
- if (yych <= 'Z') goto yy700;
- if (yych <= '^') goto yy695;
- goto yy700;
++#line 7005 "Zend/zend_language_scanner.c"
++yy707:
++ YYDEBUG(707, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '_') {
- if (yych <= '`') goto yy695;
- goto yy700;
++ if (yych <= '@') goto yy706;
++ if (yych <= 'Z') goto yy711;
++ if (yych <= '^') goto yy706;
++ goto yy711;
+ } else {
+ if (yych <= 'z') {
- if (yych <= '{') goto yy703;
- if (yych <= 0x7F) goto yy695;
- goto yy700;
++ if (yych <= '`') goto yy706;
++ goto yy711;
+ } else {
-yy697:
- YYDEBUG(697, *YYCURSOR);
++ if (yych <= '{') goto yy714;
++ if (yych <= 0x7F) goto yy706;
++ goto yy711;
+ }
+ }
- YYDEBUG(698, *YYCURSOR);
++yy708:
++ YYDEBUG(708, *YYCURSOR);
+ ++YYCURSOR;
-#line 2447 "Zend/zend_language_scanner.l"
++ YYDEBUG(709, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6864 "Zend/zend_language_scanner.c"
-yy699:
- YYDEBUG(699, *YYCURSOR);
++#line 2541 "Zend/zend_language_scanner.l"
+ {
+ BEGIN(ST_IN_SCRIPTING);
+ RETURN_TOKEN('`');
+ }
- if (yych == '$') goto yy705;
- goto yy695;
-yy700:
- YYDEBUG(700, *YYCURSOR);
++#line 7034 "Zend/zend_language_scanner.c"
++yy710:
++ YYDEBUG(710, *YYCURSOR);
+ yych = *++YYCURSOR;
- YYDEBUG(701, *YYCURSOR);
++ if (yych == '$') goto yy716;
++ goto yy706;
++yy711:
++ YYDEBUG(711, *YYCURSOR);
+ YYMARKER = ++YYCURSOR;
+ YYFILL(3);
+ yych = *YYCURSOR;
- goto yy700;
++ YYDEBUG(712, *YYCURSOR);
+ if (yybm[0+yych] & 128) {
- if (yych == '-') goto yy707;
- if (yych <= '@') goto yy702;
- if (yych <= '[') goto yy709;
-yy702:
- YYDEBUG(702, *YYCURSOR);
++ goto yy711;
+ }
-#line 2024 "Zend/zend_language_scanner.l"
++ if (yych == '-') goto yy718;
++ if (yych <= '@') goto yy713;
++ if (yych <= '[') goto yy720;
++yy713:
++ YYDEBUG(713, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6889 "Zend/zend_language_scanner.c"
-yy703:
- YYDEBUG(703, *YYCURSOR);
++#line 2122 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN_WITH_STR(T_VARIABLE, 1);
+ }
- YYDEBUG(704, *YYCURSOR);
++#line 7059 "Zend/zend_language_scanner.c"
++yy714:
++ YYDEBUG(714, *YYCURSOR);
+ ++YYCURSOR;
-#line 1723 "Zend/zend_language_scanner.l"
++ YYDEBUG(715, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6900 "Zend/zend_language_scanner.c"
-yy705:
- YYDEBUG(705, *YYCURSOR);
++#line 1747 "Zend/zend_language_scanner.l"
+ {
+ yy_push_state(ST_LOOKING_FOR_VARNAME);
+ RETURN_TOKEN(T_DOLLAR_OPEN_CURLY_BRACES);
+ }
- YYDEBUG(706, *YYCURSOR);
++#line 7070 "Zend/zend_language_scanner.c"
++yy716:
++ YYDEBUG(716, *YYCURSOR);
+ ++YYCURSOR;
-#line 2435 "Zend/zend_language_scanner.l"
++ YYDEBUG(717, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6912 "Zend/zend_language_scanner.c"
-yy707:
- YYDEBUG(707, *YYCURSOR);
++#line 2529 "Zend/zend_language_scanner.l"
+ {
+ yy_push_state(ST_IN_SCRIPTING);
+ yyless(1);
+ RETURN_TOKEN(T_CURLY_OPEN);
+ }
- if (yych == '>') goto yy711;
-yy708:
- YYDEBUG(708, *YYCURSOR);
++#line 7082 "Zend/zend_language_scanner.c"
++yy718:
++ YYDEBUG(718, *YYCURSOR);
+ yych = *++YYCURSOR;
- goto yy702;
-yy709:
- YYDEBUG(709, *YYCURSOR);
++ if (yych == '>') goto yy722;
++yy719:
++ YYDEBUG(719, *YYCURSOR);
+ YYCURSOR = YYMARKER;
- YYDEBUG(710, *YYCURSOR);
++ goto yy713;
++yy720:
++ YYDEBUG(720, *YYCURSOR);
+ ++YYCURSOR;
-#line 2018 "Zend/zend_language_scanner.l"
++ YYDEBUG(721, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6932 "Zend/zend_language_scanner.c"
-yy711:
- YYDEBUG(711, *YYCURSOR);
++#line 2116 "Zend/zend_language_scanner.l"
+ {
+ yyless(yyleng - 1);
+ yy_push_state(ST_VAR_OFFSET);
+ RETURN_TOKEN_WITH_STR(T_VARIABLE, 1);
+ }
- if (yych <= '@') goto yy708;
- if (yych <= 'Z') goto yy712;
- if (yych <= '^') goto yy708;
++#line 7102 "Zend/zend_language_scanner.c"
++yy722:
++ YYDEBUG(722, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '_') {
- if (yych <= '`') goto yy708;
- if (yych <= 'z') goto yy712;
- if (yych <= 0x7F) goto yy708;
++ if (yych <= '@') goto yy719;
++ if (yych <= 'Z') goto yy723;
++ if (yych <= '^') goto yy719;
+ } else {
-yy712:
- YYDEBUG(712, *YYCURSOR);
++ if (yych <= '`') goto yy719;
++ if (yych <= 'z') goto yy723;
++ if (yych <= 0x7F) goto yy719;
+ }
- YYDEBUG(713, *YYCURSOR);
++yy723:
++ YYDEBUG(723, *YYCURSOR);
+ ++YYCURSOR;
-#line 2010 "Zend/zend_language_scanner.l"
++ YYDEBUG(724, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 6956 "Zend/zend_language_scanner.c"
++#line 2108 "Zend/zend_language_scanner.l"
+ {
+ yyless(yyleng - 3);
+ yy_push_state(ST_LOOKING_FOR_PROPERTY);
+ RETURN_TOKEN_WITH_STR(T_VARIABLE, 1);
+ }
- YYDEBUG(714, *YYCURSOR);
++#line 7126 "Zend/zend_language_scanner.c"
+ }
+ /* *********************************** */
+ yyc_ST_DOUBLE_QUOTES:
+ {
+ static const unsigned char yybm[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 0, 0, 0, 0, 0, 0,
+ 0, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 0, 0, 0, 0, 128,
+ 0, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 0, 0, 0, 0, 0,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ };
- if (yych == '"') goto yy718;
++ YYDEBUG(725, *YYCURSOR);
+ YYFILL(2);
+ yych = *YYCURSOR;
+ if (yych <= '#') {
- if (yych <= '$') goto yy720;
- if (yych == '{') goto yy721;
++ if (yych == '"') goto yy729;
+ } else {
- YYDEBUG(716, *YYCURSOR);
++ if (yych <= '$') goto yy731;
++ if (yych == '{') goto yy732;
+ }
-yy717:
- YYDEBUG(717, *YYCURSOR);
++ YYDEBUG(727, *YYCURSOR);
+ ++YYCURSOR;
-#line 2453 "Zend/zend_language_scanner.l"
++yy728:
++ YYDEBUG(728, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7062 "Zend/zend_language_scanner.c"
-yy718:
- YYDEBUG(718, *YYCURSOR);
++#line 2547 "Zend/zend_language_scanner.l"
+ {
+ if (GET_DOUBLE_QUOTES_SCANNED_LENGTH()) {
+ YYCURSOR += GET_DOUBLE_QUOTES_SCANNED_LENGTH() - 1;
+ SET_DOUBLE_QUOTES_SCANNED_LENGTH(0);
+
+ goto double_quotes_scan_done;
+ }
+
+ if (YYCURSOR > YYLIMIT) {
+ RETURN_TOKEN(END);
+ }
+ if (yytext[0] == '\\' && YYCURSOR < YYLIMIT) {
+ YYCURSOR++;
+ }
+
+ while (YYCURSOR < YYLIMIT) {
+ switch (*YYCURSOR++) {
+ case '"':
+ break;
+ case '$':
+ if (IS_LABEL_START(*YYCURSOR) || *YYCURSOR == '{') {
+ break;
+ }
+ continue;
+ case '{':
+ if (*YYCURSOR == '$') {
+ break;
+ }
+ continue;
+ case '\\':
+ if (YYCURSOR < YYLIMIT) {
+ YYCURSOR++;
+ }
+ /* fall through */
+ default:
+ continue;
+ }
+
+ YYCURSOR--;
+ break;
+ }
+
+ double_quotes_scan_done:
+ yyleng = YYCURSOR - SCNG(yy_text);
+
+ if (EXPECTED(zend_scan_escape_string(zendlval, yytext, yyleng, '"') == SUCCESS)
+ || !PARSER_MODE()) {
+ RETURN_TOKEN_WITH_VAL(T_ENCAPSED_AND_WHITESPACE);
+ } else {
+ RETURN_TOKEN(T_ERROR);
+ }
+ }
- YYDEBUG(719, *YYCURSOR);
++#line 7232 "Zend/zend_language_scanner.c"
++yy729:
++ YYDEBUG(729, *YYCURSOR);
+ ++YYCURSOR;
-#line 2442 "Zend/zend_language_scanner.l"
++ YYDEBUG(730, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7073 "Zend/zend_language_scanner.c"
-yy720:
- YYDEBUG(720, *YYCURSOR);
++#line 2536 "Zend/zend_language_scanner.l"
+ {
+ BEGIN(ST_IN_SCRIPTING);
+ RETURN_TOKEN('"');
+ }
- if (yych <= '@') goto yy717;
- if (yych <= 'Z') goto yy722;
- if (yych <= '^') goto yy717;
- goto yy722;
++#line 7243 "Zend/zend_language_scanner.c"
++yy731:
++ YYDEBUG(731, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '_') {
- if (yych <= '`') goto yy717;
- goto yy722;
++ if (yych <= '@') goto yy728;
++ if (yych <= 'Z') goto yy733;
++ if (yych <= '^') goto yy728;
++ goto yy733;
+ } else {
+ if (yych <= 'z') {
- if (yych <= '{') goto yy725;
- if (yych <= 0x7F) goto yy717;
- goto yy722;
++ if (yych <= '`') goto yy728;
++ goto yy733;
+ } else {
-yy721:
- YYDEBUG(721, *YYCURSOR);
++ if (yych <= '{') goto yy736;
++ if (yych <= 0x7F) goto yy728;
++ goto yy733;
+ }
+ }
- if (yych == '$') goto yy727;
- goto yy717;
-yy722:
- YYDEBUG(722, *YYCURSOR);
++yy732:
++ YYDEBUG(732, *YYCURSOR);
+ yych = *++YYCURSOR;
- YYDEBUG(723, *YYCURSOR);
++ if (yych == '$') goto yy738;
++ goto yy728;
++yy733:
++ YYDEBUG(733, *YYCURSOR);
+ YYMARKER = ++YYCURSOR;
+ YYFILL(3);
+ yych = *YYCURSOR;
- goto yy722;
++ YYDEBUG(734, *YYCURSOR);
+ if (yybm[0+yych] & 128) {
- if (yych == '-') goto yy729;
- if (yych <= '@') goto yy724;
- if (yych <= '[') goto yy731;
-yy724:
- YYDEBUG(724, *YYCURSOR);
++ goto yy733;
+ }
-#line 2024 "Zend/zend_language_scanner.l"
++ if (yych == '-') goto yy740;
++ if (yych <= '@') goto yy735;
++ if (yych <= '[') goto yy742;
++yy735:
++ YYDEBUG(735, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7116 "Zend/zend_language_scanner.c"
-yy725:
- YYDEBUG(725, *YYCURSOR);
++#line 2122 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN_WITH_STR(T_VARIABLE, 1);
+ }
- YYDEBUG(726, *YYCURSOR);
++#line 7286 "Zend/zend_language_scanner.c"
++yy736:
++ YYDEBUG(736, *YYCURSOR);
+ ++YYCURSOR;
-#line 1723 "Zend/zend_language_scanner.l"
++ YYDEBUG(737, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7127 "Zend/zend_language_scanner.c"
-yy727:
- YYDEBUG(727, *YYCURSOR);
++#line 1747 "Zend/zend_language_scanner.l"
+ {
+ yy_push_state(ST_LOOKING_FOR_VARNAME);
+ RETURN_TOKEN(T_DOLLAR_OPEN_CURLY_BRACES);
+ }
- YYDEBUG(728, *YYCURSOR);
++#line 7297 "Zend/zend_language_scanner.c"
++yy738:
++ YYDEBUG(738, *YYCURSOR);
+ ++YYCURSOR;
-#line 2435 "Zend/zend_language_scanner.l"
++ YYDEBUG(739, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7139 "Zend/zend_language_scanner.c"
-yy729:
- YYDEBUG(729, *YYCURSOR);
++#line 2529 "Zend/zend_language_scanner.l"
+ {
+ yy_push_state(ST_IN_SCRIPTING);
+ yyless(1);
+ RETURN_TOKEN(T_CURLY_OPEN);
+ }
- if (yych == '>') goto yy733;
-yy730:
- YYDEBUG(730, *YYCURSOR);
++#line 7309 "Zend/zend_language_scanner.c"
++yy740:
++ YYDEBUG(740, *YYCURSOR);
+ yych = *++YYCURSOR;
- goto yy724;
-yy731:
- YYDEBUG(731, *YYCURSOR);
++ if (yych == '>') goto yy744;
++yy741:
++ YYDEBUG(741, *YYCURSOR);
+ YYCURSOR = YYMARKER;
- YYDEBUG(732, *YYCURSOR);
++ goto yy735;
++yy742:
++ YYDEBUG(742, *YYCURSOR);
+ ++YYCURSOR;
-#line 2018 "Zend/zend_language_scanner.l"
++ YYDEBUG(743, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7159 "Zend/zend_language_scanner.c"
-yy733:
- YYDEBUG(733, *YYCURSOR);
++#line 2116 "Zend/zend_language_scanner.l"
+ {
+ yyless(yyleng - 1);
+ yy_push_state(ST_VAR_OFFSET);
+ RETURN_TOKEN_WITH_STR(T_VARIABLE, 1);
+ }
- if (yych <= '@') goto yy730;
- if (yych <= 'Z') goto yy734;
- if (yych <= '^') goto yy730;
++#line 7329 "Zend/zend_language_scanner.c"
++yy744:
++ YYDEBUG(744, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '_') {
- if (yych <= '`') goto yy730;
- if (yych <= 'z') goto yy734;
- if (yych <= 0x7F) goto yy730;
++ if (yych <= '@') goto yy741;
++ if (yych <= 'Z') goto yy745;
++ if (yych <= '^') goto yy741;
+ } else {
-yy734:
- YYDEBUG(734, *YYCURSOR);
++ if (yych <= '`') goto yy741;
++ if (yych <= 'z') goto yy745;
++ if (yych <= 0x7F) goto yy741;
+ }
- YYDEBUG(735, *YYCURSOR);
++yy745:
++ YYDEBUG(745, *YYCURSOR);
+ ++YYCURSOR;
-#line 2010 "Zend/zend_language_scanner.l"
++ YYDEBUG(746, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7183 "Zend/zend_language_scanner.c"
++#line 2108 "Zend/zend_language_scanner.l"
+ {
+ yyless(yyleng - 3);
+ yy_push_state(ST_LOOKING_FOR_PROPERTY);
+ RETURN_TOKEN_WITH_STR(T_VARIABLE, 1);
+ }
- YYDEBUG(736, *YYCURSOR);
++#line 7353 "Zend/zend_language_scanner.c"
+ }
+ /* *********************************** */
+ yyc_ST_HEREDOC:
+ {
+ static const unsigned char yybm[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 0, 0, 0, 0, 0, 0,
+ 0, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 0, 0, 0, 0, 128,
+ 0, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 0, 0, 0, 0, 0,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ };
- if (yych == '$') goto yy740;
- if (yych == '{') goto yy741;
- YYDEBUG(738, *YYCURSOR);
++ YYDEBUG(747, *YYCURSOR);
+ YYFILL(2);
+ yych = *YYCURSOR;
-yy739:
- YYDEBUG(739, *YYCURSOR);
++ if (yych == '$') goto yy751;
++ if (yych == '{') goto yy752;
++ YYDEBUG(749, *YYCURSOR);
+ ++YYCURSOR;
-#line 2553 "Zend/zend_language_scanner.l"
++yy750:
++ YYDEBUG(750, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7355 "Zend/zend_language_scanner.c"
-yy740:
- YYDEBUG(740, *YYCURSOR);
++#line 2647 "Zend/zend_language_scanner.l"
+ {
+ zend_heredoc_label *heredoc_label = zend_ptr_stack_top(&SCNG(heredoc_label_stack));
+ int newline = 0, indentation = 0, spacing = 0;
+
+ if (YYCURSOR > YYLIMIT) {
+ RETURN_TOKEN(END);
+ }
+
+ YYCURSOR--;
+
+ while (YYCURSOR < YYLIMIT) {
+ switch (*YYCURSOR++) {
+ case '\r':
+ if (*YYCURSOR == '\n') {
+ YYCURSOR++;
+ }
+ /* fall through */
+ case '\n':
+ indentation = spacing = 0;
+
+ while (YYCURSOR < YYLIMIT && (*YYCURSOR == ' ' || *YYCURSOR == '\t')) {
+ if (*YYCURSOR == '\t') {
+ spacing |= HEREDOC_USING_TABS;
+ } else {
+ spacing |= HEREDOC_USING_SPACES;
+ }
+ ++YYCURSOR;
+ ++indentation;
+ }
+
+ if (YYCURSOR == YYLIMIT) {
+ yyleng = YYCURSOR - SCNG(yy_text);
+ HANDLE_NEWLINES(yytext, yyleng);
+ ZVAL_NULL(zendlval);
+ RETURN_TOKEN_WITH_VAL(T_ENCAPSED_AND_WHITESPACE);
+ }
+
+ /* Check for ending label on the next line */
+ if (IS_LABEL_START(*YYCURSOR) && heredoc_label->length < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, heredoc_label->label, heredoc_label->length)) {
+ if (IS_LABEL_SUCCESSOR(YYCURSOR[heredoc_label->length])) {
+ continue;
+ }
+
+ if (spacing == (HEREDOC_USING_SPACES | HEREDOC_USING_TABS)) {
+ zend_throw_exception(zend_ce_parse_error, "Invalid indentation - tabs and spaces cannot be mixed", 0);
+ if (PARSER_MODE()) {
+ RETURN_TOKEN(T_ERROR);
+ }
+ }
+
+ /* newline before label will be subtracted from returned text, but
+ * yyleng/yytext will include it, for zend_highlight/strip, tokenizer, etc. */
+ if (YYCURSOR[-indentation - 2] == '\r' && YYCURSOR[-indentation - 1] == '\n') {
+ newline = 2; /* Windows newline */
+ } else {
+ newline = 1;
+ }
+
+ CG(increment_lineno) = 1; /* For newline before label */
+
+ if (SCNG(heredoc_scan_ahead)) {
+ SCNG(heredoc_indentation) = indentation;
+ SCNG(heredoc_indentation_uses_spaces) = (spacing == HEREDOC_USING_SPACES);
+ } else {
+ YYCURSOR -= indentation;
+ }
+
+ BEGIN(ST_END_HEREDOC);
+
+ goto heredoc_scan_done;
+ }
+ continue;
+ case '$':
+ if (IS_LABEL_START(*YYCURSOR) || *YYCURSOR == '{') {
+ break;
+ }
+ continue;
+ case '{':
+ if (*YYCURSOR == '$') {
+ break;
+ }
+ continue;
+ case '\\':
+ if (YYCURSOR < YYLIMIT && *YYCURSOR != '\n' && *YYCURSOR != '\r') {
+ YYCURSOR++;
+ }
+ /* fall through */
+ default:
+ continue;
+ }
+
+ YYCURSOR--;
+ break;
+ }
+
+ heredoc_scan_done:
+
+ yyleng = YYCURSOR - SCNG(yy_text);
+ ZVAL_STRINGL(zendlval, yytext, yyleng - newline);
+
+ if (!SCNG(heredoc_scan_ahead) && !EG(exception) && PARSER_MODE()) {
+ zend_bool newline_at_start = *(yytext - 1) == '\n' || *(yytext - 1) == '\r';
+ zend_string *copy = Z_STR_P(zendlval);
+
+ if (!strip_multiline_string_indentation(
+ zendlval, heredoc_label->indentation, heredoc_label->indentation_uses_spaces,
+ newline_at_start, newline != 0)) {
+ RETURN_TOKEN(T_ERROR);
+ }
+
+ if (UNEXPECTED(zend_scan_escape_string(zendlval, ZSTR_VAL(copy), ZSTR_LEN(copy), 0) != SUCCESS)) {
+ zend_string_efree(copy);
+ RETURN_TOKEN(T_ERROR);
+ }
+
+ zend_string_efree(copy);
+ } else {
+ HANDLE_NEWLINES(yytext, yyleng - newline);
+ }
+
+ RETURN_TOKEN_WITH_VAL(T_ENCAPSED_AND_WHITESPACE);
+ }
- if (yych <= '@') goto yy739;
- if (yych <= 'Z') goto yy742;
- if (yych <= '^') goto yy739;
- goto yy742;
++#line 7525 "Zend/zend_language_scanner.c"
++yy751:
++ YYDEBUG(751, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '_') {
- if (yych <= '`') goto yy739;
- goto yy742;
++ if (yych <= '@') goto yy750;
++ if (yych <= 'Z') goto yy753;
++ if (yych <= '^') goto yy750;
++ goto yy753;
+ } else {
+ if (yych <= 'z') {
- if (yych <= '{') goto yy745;
- if (yych <= 0x7F) goto yy739;
- goto yy742;
++ if (yych <= '`') goto yy750;
++ goto yy753;
+ } else {
-yy741:
- YYDEBUG(741, *YYCURSOR);
++ if (yych <= '{') goto yy756;
++ if (yych <= 0x7F) goto yy750;
++ goto yy753;
+ }
+ }
- if (yych == '$') goto yy747;
- goto yy739;
-yy742:
- YYDEBUG(742, *YYCURSOR);
++yy752:
++ YYDEBUG(752, *YYCURSOR);
+ yych = *++YYCURSOR;
- YYDEBUG(743, *YYCURSOR);
++ if (yych == '$') goto yy758;
++ goto yy750;
++yy753:
++ YYDEBUG(753, *YYCURSOR);
+ YYMARKER = ++YYCURSOR;
+ YYFILL(3);
+ yych = *YYCURSOR;
- goto yy742;
++ YYDEBUG(754, *YYCURSOR);
+ if (yybm[0+yych] & 128) {
- if (yych == '-') goto yy749;
- if (yych <= '@') goto yy744;
- if (yych <= '[') goto yy751;
-yy744:
- YYDEBUG(744, *YYCURSOR);
++ goto yy753;
+ }
-#line 2024 "Zend/zend_language_scanner.l"
++ if (yych == '-') goto yy760;
++ if (yych <= '@') goto yy755;
++ if (yych <= '[') goto yy762;
++yy755:
++ YYDEBUG(755, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7398 "Zend/zend_language_scanner.c"
-yy745:
- YYDEBUG(745, *YYCURSOR);
++#line 2122 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN_WITH_STR(T_VARIABLE, 1);
+ }
- YYDEBUG(746, *YYCURSOR);
++#line 7568 "Zend/zend_language_scanner.c"
++yy756:
++ YYDEBUG(756, *YYCURSOR);
+ ++YYCURSOR;
-#line 1723 "Zend/zend_language_scanner.l"
++ YYDEBUG(757, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7409 "Zend/zend_language_scanner.c"
-yy747:
- YYDEBUG(747, *YYCURSOR);
++#line 1747 "Zend/zend_language_scanner.l"
+ {
+ yy_push_state(ST_LOOKING_FOR_VARNAME);
+ RETURN_TOKEN(T_DOLLAR_OPEN_CURLY_BRACES);
+ }
- YYDEBUG(748, *YYCURSOR);
++#line 7579 "Zend/zend_language_scanner.c"
++yy758:
++ YYDEBUG(758, *YYCURSOR);
+ ++YYCURSOR;
-#line 2435 "Zend/zend_language_scanner.l"
++ YYDEBUG(759, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7421 "Zend/zend_language_scanner.c"
-yy749:
- YYDEBUG(749, *YYCURSOR);
++#line 2529 "Zend/zend_language_scanner.l"
+ {
+ yy_push_state(ST_IN_SCRIPTING);
+ yyless(1);
+ RETURN_TOKEN(T_CURLY_OPEN);
+ }
- if (yych == '>') goto yy753;
-yy750:
- YYDEBUG(750, *YYCURSOR);
++#line 7591 "Zend/zend_language_scanner.c"
++yy760:
++ YYDEBUG(760, *YYCURSOR);
+ yych = *++YYCURSOR;
- goto yy744;
-yy751:
- YYDEBUG(751, *YYCURSOR);
++ if (yych == '>') goto yy764;
++yy761:
++ YYDEBUG(761, *YYCURSOR);
+ YYCURSOR = YYMARKER;
- YYDEBUG(752, *YYCURSOR);
++ goto yy755;
++yy762:
++ YYDEBUG(762, *YYCURSOR);
+ ++YYCURSOR;
-#line 2018 "Zend/zend_language_scanner.l"
++ YYDEBUG(763, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7441 "Zend/zend_language_scanner.c"
-yy753:
- YYDEBUG(753, *YYCURSOR);
++#line 2116 "Zend/zend_language_scanner.l"
+ {
+ yyless(yyleng - 1);
+ yy_push_state(ST_VAR_OFFSET);
+ RETURN_TOKEN_WITH_STR(T_VARIABLE, 1);
+ }
- if (yych <= '@') goto yy750;
- if (yych <= 'Z') goto yy754;
- if (yych <= '^') goto yy750;
++#line 7611 "Zend/zend_language_scanner.c"
++yy764:
++ YYDEBUG(764, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '_') {
- if (yych <= '`') goto yy750;
- if (yych <= 'z') goto yy754;
- if (yych <= 0x7F) goto yy750;
++ if (yych <= '@') goto yy761;
++ if (yych <= 'Z') goto yy765;
++ if (yych <= '^') goto yy761;
+ } else {
-yy754:
- YYDEBUG(754, *YYCURSOR);
++ if (yych <= '`') goto yy761;
++ if (yych <= 'z') goto yy765;
++ if (yych <= 0x7F) goto yy761;
+ }
- YYDEBUG(755, *YYCURSOR);
++yy765:
++ YYDEBUG(765, *YYCURSOR);
+ ++YYCURSOR;
-#line 2010 "Zend/zend_language_scanner.l"
++ YYDEBUG(766, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7465 "Zend/zend_language_scanner.c"
++#line 2108 "Zend/zend_language_scanner.l"
+ {
+ yyless(yyleng - 3);
+ yy_push_state(ST_LOOKING_FOR_PROPERTY);
+ RETURN_TOKEN_WITH_STR(T_VARIABLE, 1);
+ }
- YYDEBUG(756, *YYCURSOR);
++#line 7635 "Zend/zend_language_scanner.c"
+ }
+ /* *********************************** */
+ yyc_ST_LOOKING_FOR_VARNAME:
+ {
+ static const unsigned char yybm[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 0, 0, 0, 0, 0, 0,
+ 0, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 0, 0, 0, 0, 128,
+ 0, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 0, 0, 0, 0, 0,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 128, 128, 128, 128,
+ };
- if (yych <= '@') goto yy758;
- if (yych <= 'Z') goto yy760;
- if (yych >= '_') goto yy760;
++ YYDEBUG(767, *YYCURSOR);
+ YYFILL(2);
+ yych = *YYCURSOR;
+ if (yych <= '_') {
- if (yych <= '`') goto yy758;
- if (yych <= 'z') goto yy760;
- if (yych >= 0x80) goto yy760;
++ if (yych <= '@') goto yy769;
++ if (yych <= 'Z') goto yy771;
++ if (yych >= '_') goto yy771;
+ } else {
-yy758:
- YYDEBUG(758, *YYCURSOR);
++ if (yych <= '`') goto yy769;
++ if (yych <= 'z') goto yy771;
++ if (yych >= 0x80) goto yy771;
+ }
-yy759:
- YYDEBUG(759, *YYCURSOR);
++yy769:
++ YYDEBUG(769, *YYCURSOR);
+ ++YYCURSOR;
-#line 1746 "Zend/zend_language_scanner.l"
++yy770:
++ YYDEBUG(770, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7529 "Zend/zend_language_scanner.c"
-yy760:
- YYDEBUG(760, *YYCURSOR);
++#line 1770 "Zend/zend_language_scanner.l"
+ {
+ yyless(0);
+ yy_pop_state();
+ yy_push_state(ST_IN_SCRIPTING);
+ goto restart;
+ }
- if (yych <= '/') goto yy759;
- if (yych <= '9') goto yy762;
- goto yy759;
++#line 7699 "Zend/zend_language_scanner.c"
++yy771:
++ YYDEBUG(771, *YYCURSOR);
+ yych = *(YYMARKER = ++YYCURSOR);
+ if (yych <= '_') {
+ if (yych <= '@') {
- if (yych <= '[') goto yy762;
- if (yych <= '^') goto yy759;
- goto yy762;
++ if (yych <= '/') goto yy770;
++ if (yych <= '9') goto yy773;
++ goto yy770;
+ } else {
- if (yych <= '`') goto yy759;
- if (yych <= 'z') goto yy762;
- goto yy759;
++ if (yych <= '[') goto yy773;
++ if (yych <= '^') goto yy770;
++ goto yy773;
+ }
+ } else {
+ if (yych <= '|') {
- if (yych <= '}') goto yy762;
- if (yych <= 0x7F) goto yy759;
- goto yy762;
++ if (yych <= '`') goto yy770;
++ if (yych <= 'z') goto yy773;
++ goto yy770;
+ } else {
-yy761:
- YYDEBUG(761, *YYCURSOR);
++ if (yych <= '}') goto yy773;
++ if (yych <= 0x7F) goto yy770;
++ goto yy773;
+ }
+ }
-yy762:
- YYDEBUG(762, *YYCURSOR);
++yy772:
++ YYDEBUG(772, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- goto yy761;
++yy773:
++ YYDEBUG(773, *YYCURSOR);
+ if (yybm[0+yych] & 128) {
- if (yych <= '@') goto yy763;
- if (yych <= '[') goto yy764;
- if (yych == '}') goto yy764;
-yy763:
- YYDEBUG(763, *YYCURSOR);
++ goto yy772;
+ }
- goto yy759;
-yy764:
- YYDEBUG(764, *YYCURSOR);
++ if (yych <= '@') goto yy774;
++ if (yych <= '[') goto yy775;
++ if (yych == '}') goto yy775;
++yy774:
++ YYDEBUG(774, *YYCURSOR);
+ YYCURSOR = YYMARKER;
- YYDEBUG(765, *YYCURSOR);
++ goto yy770;
++yy775:
++ YYDEBUG(775, *YYCURSOR);
+ ++YYCURSOR;
-#line 1738 "Zend/zend_language_scanner.l"
++ YYDEBUG(776, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7583 "Zend/zend_language_scanner.c"
++#line 1762 "Zend/zend_language_scanner.l"
+ {
+ yyless(yyleng - 1);
+ yy_pop_state();
+ yy_push_state(ST_IN_SCRIPTING);
+ RETURN_TOKEN_WITH_STR(T_STRING_VARNAME, 0);
+ }
- YYDEBUG(766, *YYCURSOR);
- YYFILL(3);
++#line 7753 "Zend/zend_language_scanner.c"
+ }
+ /* *********************************** */
+ yyc_ST_VAR_OFFSET:
+ {
+ static const unsigned char yybm[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 240, 240, 176, 176, 176, 176, 176, 176,
+ 176, 176, 0, 0, 0, 0, 0, 0,
+ 0, 160, 160, 160, 160, 160, 160, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 0, 0, 0, 0, 32,
+ 0, 160, 160, 160, 160, 160, 160, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 0, 0, 0, 0, 0,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ };
- if (yych <= 0x08) goto yy768;
- if (yych <= '\n') goto yy770;
++ YYDEBUG(777, *YYCURSOR);
++ YYFILL(2);
+ yych = *YYCURSOR;
+ if (yych <= '0') {
+ if (yych <= ' ') {
+ if (yych <= '\f') {
- if (yych <= '\r') goto yy770;
- if (yych >= ' ') goto yy770;
++ if (yych <= 0x08) goto yy779;
++ if (yych <= '\n') goto yy781;
+ } else {
- if (yych <= '"') goto yy772;
- if (yych <= '#') goto yy770;
- goto yy774;
++ if (yych <= '\r') goto yy781;
++ if (yych >= ' ') goto yy781;
+ }
+ } else {
+ if (yych <= '$') {
- if (yych == '\'') goto yy770;
- if (yych <= '/') goto yy772;
- goto yy775;
++ if (yych <= '"') goto yy783;
++ if (yych <= '#') goto yy781;
++ goto yy785;
+ } else {
- if (yych <= '9') goto yy777;
- if (yych <= '@') goto yy772;
- goto yy779;
++ if (yych == '\'') goto yy781;
++ if (yych <= '/') goto yy783;
++ goto yy786;
+ }
+ }
+ } else {
+ if (yych <= ']') {
+ if (yych <= 'Z') {
- if (yych <= '[') goto yy772;
- if (yych <= '\\') goto yy770;
- goto yy782;
++ if (yych <= '9') goto yy788;
++ if (yych <= '@') goto yy783;
++ goto yy790;
+ } else {
- if (yych == '_') goto yy779;
- goto yy772;
++ if (yych <= '[') goto yy783;
++ if (yych <= '\\') goto yy781;
++ goto yy793;
+ }
+ } else {
+ if (yych <= '`') {
- if (yych <= 'z') goto yy779;
- if (yych <= '~') goto yy772;
- if (yych >= 0x80) goto yy779;
++ if (yych == '_') goto yy790;
++ goto yy783;
+ } else {
-yy768:
- YYDEBUG(768, *YYCURSOR);
++ if (yych <= 'z') goto yy790;
++ if (yych <= '~') goto yy783;
++ if (yych >= 0x80) goto yy790;
+ }
+ }
+ }
- YYDEBUG(769, *YYCURSOR);
++yy779:
++ YYDEBUG(779, *YYCURSOR);
+ ++YYCURSOR;
-#line 2768 "Zend/zend_language_scanner.l"
++ YYDEBUG(780, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- goto restart;
++#line 2862 "Zend/zend_language_scanner.l"
+ {
+ if (YYCURSOR > YYLIMIT) {
+ RETURN_TOKEN(END);
+ }
+
+ if (!SCNG(heredoc_scan_ahead)) {
+ zend_error(E_COMPILE_WARNING, "Unexpected character in input: '%c' (ASCII=%d) state=%d", yytext[0], yytext[0], YYSTATE);
+ }
-#line 7683 "Zend/zend_language_scanner.c"
-yy770:
- YYDEBUG(770, *YYCURSOR);
++ if (PARSER_MODE()) {
++ goto restart;
++ } else {
++ RETURN_TOKEN(T_BAD_CHARACTER);
++ }
+ }
- YYDEBUG(771, *YYCURSOR);
++#line 7857 "Zend/zend_language_scanner.c"
++yy781:
++ YYDEBUG(781, *YYCURSOR);
+ ++YYCURSOR;
-#line 2038 "Zend/zend_language_scanner.l"
++ YYDEBUG(782, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7697 "Zend/zend_language_scanner.c"
-yy772:
- YYDEBUG(772, *YYCURSOR);
++#line 2136 "Zend/zend_language_scanner.l"
+ {
+ /* Invalid rule to return a more explicit parse error with proper line number */
+ yyless(0);
+ yy_pop_state();
+ ZVAL_NULL(zendlval);
+ RETURN_TOKEN_WITH_VAL(T_ENCAPSED_AND_WHITESPACE);
+ }
-yy773:
- YYDEBUG(773, *YYCURSOR);
++#line 7871 "Zend/zend_language_scanner.c"
++yy783:
++ YYDEBUG(783, *YYCURSOR);
+ ++YYCURSOR;
-#line 2033 "Zend/zend_language_scanner.l"
++yy784:
++ YYDEBUG(784, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7709 "Zend/zend_language_scanner.c"
-yy774:
- YYDEBUG(774, *YYCURSOR);
++#line 2131 "Zend/zend_language_scanner.l"
+ {
+ /* Only '[' or '-' can be valid, but returning other tokens will allow a more explicit parse error */
+ RETURN_TOKEN(yytext[0]);
+ }
- if (yych <= '@') goto yy773;
- if (yych <= 'Z') goto yy784;
- if (yych <= '^') goto yy773;
- goto yy784;
++#line 7883 "Zend/zend_language_scanner.c"
++yy785:
++ YYDEBUG(785, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '_') {
- if (yych <= '`') goto yy773;
- if (yych <= 'z') goto yy784;
- if (yych <= 0x7F) goto yy773;
- goto yy784;
++ if (yych <= '@') goto yy784;
++ if (yych <= 'Z') goto yy795;
++ if (yych <= '^') goto yy784;
++ goto yy795;
+ } else {
-yy775:
- YYDEBUG(775, *YYCURSOR);
++ if (yych <= '`') goto yy784;
++ if (yych <= 'z') goto yy795;
++ if (yych <= 0x7F) goto yy784;
++ goto yy795;
+ }
- if (yych <= 'W') {
- if (yych <= '9') {
- if (yych >= '0') goto yy787;
++yy786:
++ YYDEBUG(786, *YYCURSOR);
++ yyaccept = 0;
+ yych = *(YYMARKER = ++YYCURSOR);
- if (yych == 'B') goto yy790;
++ if (yych <= 'X') {
++ if (yych <= 'A') {
++ if (yych <= '/') goto yy787;
++ if (yych <= '9') goto yy798;
+ } else {
- if (yych <= 'b') {
- if (yych <= 'X') goto yy792;
- if (yych >= 'b') goto yy790;
++ if (yych <= 'B') goto yy801;
++ if (yych >= 'X') goto yy803;
+ }
+ } else {
- if (yych == 'x') goto yy792;
++ if (yych <= 'a') {
++ if (yych == '_') goto yy804;
+ } else {
-yy776:
- YYDEBUG(776, *YYCURSOR);
++ if (yych <= 'b') goto yy801;
++ if (yych == 'x') goto yy803;
+ }
+ }
-#line 1861 "Zend/zend_language_scanner.l"
++yy787:
++ YYDEBUG(787, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7760 "Zend/zend_language_scanner.c"
-yy777:
- YYDEBUG(777, *YYCURSOR);
- ++YYCURSOR;
++#line 1924 "Zend/zend_language_scanner.l"
+ { /* Offset could be treated as a long */
+ if (yyleng < MAX_LENGTH_OF_LONG - 1 || (yyleng == MAX_LENGTH_OF_LONG - 1 && strcmp(yytext, long_min_digits) < 0)) {
+ char *end;
+ errno = 0;
+ ZVAL_LONG(zendlval, ZEND_STRTOL(yytext, &end, 10));
+ if (errno == ERANGE) {
+ goto string;
+ }
+ ZEND_ASSERT(end == yytext + yyleng);
+ } else {
+ string:
+ ZVAL_STRINGL(zendlval, yytext, yyleng);
+ }
+ RETURN_TOKEN_WITH_VAL(T_NUM_STRING);
+ }
- YYDEBUG(778, *YYCURSOR);
++#line 7937 "Zend/zend_language_scanner.c"
++yy788:
++ YYDEBUG(788, *YYCURSOR);
++ yyaccept = 0;
++ YYMARKER = ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- goto yy777;
++ YYDEBUG(789, *YYCURSOR);
+ if (yybm[0+yych] & 16) {
- goto yy776;
-yy779:
- YYDEBUG(779, *YYCURSOR);
++ goto yy788;
+ }
- YYDEBUG(780, *YYCURSOR);
++ if (yych == '_') goto yy804;
++ goto yy787;
++yy790:
++ YYDEBUG(790, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- goto yy779;
++ YYDEBUG(791, *YYCURSOR);
+ if (yybm[0+yych] & 32) {
- YYDEBUG(781, *YYCURSOR);
++ goto yy790;
+ }
-#line 2046 "Zend/zend_language_scanner.l"
++ YYDEBUG(792, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7786 "Zend/zend_language_scanner.c"
-yy782:
- YYDEBUG(782, *YYCURSOR);
++#line 2144 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN_WITH_STR(T_STRING, 0);
+ }
- YYDEBUG(783, *YYCURSOR);
++#line 7965 "Zend/zend_language_scanner.c"
++yy793:
++ YYDEBUG(793, *YYCURSOR);
+ ++YYCURSOR;
-#line 2028 "Zend/zend_language_scanner.l"
++ YYDEBUG(794, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7797 "Zend/zend_language_scanner.c"
-yy784:
- YYDEBUG(784, *YYCURSOR);
++#line 2126 "Zend/zend_language_scanner.l"
+ {
+ yy_pop_state();
+ RETURN_TOKEN(']');
+ }
- YYDEBUG(785, *YYCURSOR);
++#line 7976 "Zend/zend_language_scanner.c"
++yy795:
++ YYDEBUG(795, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- if (yych >= '0') goto yy784;
++ YYDEBUG(796, *YYCURSOR);
+ if (yych <= '^') {
+ if (yych <= '9') {
- if (yych <= '@') goto yy786;
- if (yych <= 'Z') goto yy784;
++ if (yych >= '0') goto yy795;
+ } else {
- if (yych <= '_') goto yy784;
++ if (yych <= '@') goto yy797;
++ if (yych <= 'Z') goto yy795;
+ }
+ } else {
+ if (yych <= '`') {
- if (yych <= 'z') goto yy784;
- if (yych >= 0x80) goto yy784;
++ if (yych <= '_') goto yy795;
+ } else {
-yy786:
- YYDEBUG(786, *YYCURSOR);
++ if (yych <= 'z') goto yy795;
++ if (yych >= 0x80) goto yy795;
+ }
+ }
-#line 2024 "Zend/zend_language_scanner.l"
++yy797:
++ YYDEBUG(797, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7826 "Zend/zend_language_scanner.c"
-yy787:
- YYDEBUG(787, *YYCURSOR);
- ++YYCURSOR;
++#line 2122 "Zend/zend_language_scanner.l"
+ {
+ RETURN_TOKEN_WITH_STR(T_VARIABLE, 1);
+ }
- YYDEBUG(788, *YYCURSOR);
- if (yych <= '/') goto yy789;
- if (yych <= '9') goto yy787;
-yy789:
- YYDEBUG(789, *YYCURSOR);
++#line 8005 "Zend/zend_language_scanner.c"
++yy798:
++ YYDEBUG(798, *YYCURSOR);
++ yyaccept = 1;
++ YYMARKER = ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
-#line 1877 "Zend/zend_language_scanner.l"
++ YYDEBUG(799, *YYCURSOR);
++ if (yych <= '/') goto yy800;
++ if (yych <= '9') goto yy798;
++ if (yych == '_') goto yy804;
++yy800:
++ YYDEBUG(800, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7847 "Zend/zend_language_scanner.c"
-yy790:
- YYDEBUG(790, *YYCURSOR);
- yych = *++YYCURSOR;
++#line 1940 "Zend/zend_language_scanner.l"
+ { /* Offset must be treated as a string */
+ if (yyleng == 1) {
+ ZVAL_INTERNED_STR(zendlval, ZSTR_CHAR((zend_uchar)*(yytext)));
+ } else {
+ ZVAL_STRINGL(zendlval, yytext, yyleng);
+ }
+ RETURN_TOKEN_WITH_VAL(T_NUM_STRING);
+ }
- goto yy793;
++#line 8028 "Zend/zend_language_scanner.c"
++yy801:
++ YYDEBUG(801, *YYCURSOR);
++ ++YYCURSOR;
++ YYFILL(1);
++ yych = *YYCURSOR;
+ if (yybm[0+yych] & 64) {
-yy791:
- YYDEBUG(791, *YYCURSOR);
++ goto yy805;
+ }
- goto yy776;
-yy792:
- YYDEBUG(792, *YYCURSOR);
- yych = *++YYCURSOR;
++yy802:
++ YYDEBUG(802, *YYCURSOR);
+ YYCURSOR = YYMARKER;
- goto yy795;
++ if (yyaccept == 0) {
++ goto yy787;
++ } else {
++ goto yy800;
++ }
++yy803:
++ YYDEBUG(803, *YYCURSOR);
++ ++YYCURSOR;
++ YYFILL(1);
++ yych = *YYCURSOR;
+ if (yybm[0+yych] & 128) {
- goto yy791;
-yy793:
- YYDEBUG(793, *YYCURSOR);
++ goto yy807;
+ }
- YYDEBUG(794, *YYCURSOR);
++ goto yy802;
++yy804:
++ YYDEBUG(804, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- goto yy793;
++ if (yych <= '/') goto yy802;
++ if (yych <= '9') goto yy798;
++ goto yy802;
++yy805:
++ YYDEBUG(805, *YYCURSOR);
++ yyaccept = 1;
++ YYMARKER = ++YYCURSOR;
++ YYFILL(1);
++ yych = *YYCURSOR;
++ YYDEBUG(806, *YYCURSOR);
+ if (yybm[0+yych] & 64) {
- goto yy789;
-yy795:
- YYDEBUG(795, *YYCURSOR);
++ goto yy805;
+ }
- YYDEBUG(796, *YYCURSOR);
++ if (yych == '_') goto yy801;
++ goto yy800;
++yy807:
++ YYDEBUG(807, *YYCURSOR);
++ yyaccept = 1;
++ YYMARKER = ++YYCURSOR;
++ YYFILL(1);
++ yych = *YYCURSOR;
++ YYDEBUG(808, *YYCURSOR);
++ if (yybm[0+yych] & 128) {
++ goto yy807;
++ }
++ if (yych == '_') goto yy803;
++ goto yy800;
++ }
++/* *********************************** */
++yyc_SHEBANG:
++ {
++ static const unsigned char yybm[] = {
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 0, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ 128, 128, 128, 128, 128, 128, 128, 128,
++ };
++ YYDEBUG(809, *YYCURSOR);
++ YYFILL(2);
++ yych = *YYCURSOR;
++ if (yych == '#') goto yy813;
++ YYDEBUG(811, *YYCURSOR);
++ ++YYCURSOR;
++yy812:
++ YYDEBUG(812, *YYCURSOR);
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 2007 "Zend/zend_language_scanner.l"
++ {
++ yyless(0);
++ BEGIN(INITIAL);
++ goto restart;
++}
++#line 8139 "Zend/zend_language_scanner.c"
++yy813:
++ YYDEBUG(813, *YYCURSOR);
++ yych = *++YYCURSOR;
++ if (yych != '!') goto yy812;
++yy814:
++ YYDEBUG(814, *YYCURSOR);
+ ++YYCURSOR;
+ YYFILL(1);
+ yych = *YYCURSOR;
- goto yy795;
++ YYDEBUG(815, *YYCURSOR);
+ if (yybm[0+yych] & 128) {
- goto yy789;
++ goto yy814;
+ }
- YYDEBUG(797, *YYCURSOR);
++ YYDEBUG(816, *YYCURSOR);
++ ++YYCURSOR;
++ YYDEBUG(817, *YYCURSOR);
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 2001 "Zend/zend_language_scanner.l"
++ {
++ CG(zend_lineno)++;
++ BEGIN(INITIAL);
++ goto restart;
++}
++#line 8163 "Zend/zend_language_scanner.c"
+ }
+ /* *********************************** */
+ yyc_INITIAL:
- if (yych == '<') goto yy801;
- YYDEBUG(799, *YYCURSOR);
++ YYDEBUG(818, *YYCURSOR);
+ YYFILL(7);
+ yych = *YYCURSOR;
-yy800:
- YYDEBUG(800, *YYCURSOR);
++ if (yych == '<') goto yy822;
++ YYDEBUG(820, *YYCURSOR);
+ ++YYCURSOR;
-#line 1959 "Zend/zend_language_scanner.l"
++yy821:
++ YYDEBUG(821, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- if (CG(short_tags) || !strncasecmp((char*)YYCURSOR + 1, "php", 3) || (*(YYCURSOR + 1) == '=')) { /* Assume [ \t\n\r] follows "php" */
-
++#line 2052 "Zend/zend_language_scanner.l"
+ {
+ if (YYCURSOR > YYLIMIT) {
+ RETURN_TOKEN(END);
+ }
+
+ inline_char_handler:
+
+ while (1) {
+ YYCTYPE *ptr = memchr(YYCURSOR, '<', YYLIMIT - YYCURSOR);
+
+ YYCURSOR = ptr ? ptr + 1 : YYLIMIT;
+
+ if (YYCURSOR >= YYLIMIT) {
+ break;
+ }
+
+ if (*YYCURSOR == '?') {
-#line 7944 "Zend/zend_language_scanner.c"
-yy801:
- YYDEBUG(801, *YYCURSOR);
++ if (CG(short_tags) /* <? */
++ || (*(YYCURSOR + 1) == '=') /* <?= */
++ || (!strncasecmp((char*)YYCURSOR + 1, "php", 3) && /* <?php[ \t\r\n] */
++ (YYCURSOR + 4 == YYLIMIT ||
++ YYCURSOR[4] == ' ' || YYCURSOR[4] == '\t' ||
++ YYCURSOR[4] == '\n' || YYCURSOR[4] == '\r'))
++ ) {
+ YYCURSOR--;
+ break;
+ }
+ }
+ }
+
+ yyleng = YYCURSOR - SCNG(yy_text);
+
+ if (SCNG(output_filter)) {
+ size_t readsize;
+ char *s = NULL;
+ size_t sz = 0;
+ // TODO: avoid reallocation ???
+ readsize = SCNG(output_filter)((unsigned char **)&s, &sz, (unsigned char *)yytext, (size_t)yyleng);
+ ZVAL_STRINGL(zendlval, s, sz);
+ efree(s);
+ if (readsize < yyleng) {
+ yyless(readsize);
+ }
+ } else if (yyleng == 1) {
+ ZVAL_INTERNED_STR(zendlval, ZSTR_CHAR((zend_uchar)*yytext));
+ } else {
+ ZVAL_STRINGL(zendlval, yytext, yyleng);
+ }
+ HANDLE_NEWLINES(yytext, yyleng);
+ RETURN_TOKEN_WITH_VAL(T_INLINE_HTML);
+ }
- if (yych != '?') goto yy800;
- YYDEBUG(802, *YYCURSOR);
++#line 8228 "Zend/zend_language_scanner.c"
++yy822:
++ YYDEBUG(822, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych == '=') goto yy804;
++ if (yych != '?') goto yy821;
++ YYDEBUG(823, *YYCURSOR);
+ yych = *(YYMARKER = ++YYCURSOR);
+ if (yych <= 'O') {
- if (yych <= 'P') goto yy806;
- if (yych == 'p') goto yy806;
++ if (yych == '=') goto yy825;
+ } else {
-yy803:
- YYDEBUG(803, *YYCURSOR);
++ if (yych <= 'P') goto yy827;
++ if (yych == 'p') goto yy827;
+ }
-#line 1947 "Zend/zend_language_scanner.l"
++yy824:
++ YYDEBUG(824, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- if (PARSER_MODE()) {
- SKIP_TOKEN(T_OPEN_TAG);
- }
- RETURN_TOKEN(T_OPEN_TAG);
++#line 2043 "Zend/zend_language_scanner.l"
+ {
+ if (CG(short_tags)) {
+ BEGIN(ST_IN_SCRIPTING);
-#line 7972 "Zend/zend_language_scanner.c"
-yy804:
- YYDEBUG(804, *YYCURSOR);
++ RETURN_OR_SKIP_TOKEN(T_OPEN_TAG);
+ } else {
+ goto inline_char_handler;
+ }
+ }
- YYDEBUG(805, *YYCURSOR);
++#line 8253 "Zend/zend_language_scanner.c"
++yy825:
++ YYDEBUG(825, *YYCURSOR);
+ ++YYCURSOR;
-#line 1928 "Zend/zend_language_scanner.l"
++ YYDEBUG(826, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 7986 "Zend/zend_language_scanner.c"
-yy806:
- YYDEBUG(806, *YYCURSOR);
++#line 2013 "Zend/zend_language_scanner.l"
+ {
+ BEGIN(ST_IN_SCRIPTING);
+ if (PARSER_MODE()) {
+ RETURN_TOKEN(T_ECHO);
+ }
+ RETURN_TOKEN(T_OPEN_TAG_WITH_ECHO);
+ }
- if (yych == 'H') goto yy808;
- if (yych == 'h') goto yy808;
-yy807:
- YYDEBUG(807, *YYCURSOR);
++#line 8267 "Zend/zend_language_scanner.c"
++yy827:
++ YYDEBUG(827, *YYCURSOR);
+ yych = *++YYCURSOR;
- goto yy803;
-yy808:
- YYDEBUG(808, *YYCURSOR);
++ if (yych == 'H') goto yy829;
++ if (yych == 'h') goto yy829;
++yy828:
++ YYDEBUG(828, *YYCURSOR);
+ YYCURSOR = YYMARKER;
- if (yych == 'P') goto yy809;
- if (yych != 'p') goto yy807;
-yy809:
- YYDEBUG(809, *YYCURSOR);
++ goto yy824;
++yy829:
++ YYDEBUG(829, *YYCURSOR);
+ yych = *++YYCURSOR;
- if (yych <= 0x08) goto yy807;
- if (yych >= '\v') goto yy807;
++ if (yych == 'P') goto yy830;
++ if (yych != 'p') goto yy828;
++yy830:
++ YYDEBUG(830, *YYCURSOR);
+ yych = *++YYCURSOR;
+ if (yych <= '\f') {
- if (yych <= '\r') goto yy812;
- if (yych != ' ') goto yy807;
++ if (yych <= 0x08) goto yy831;
++ if (yych <= '\n') goto yy832;
+ } else {
-yy810:
- YYDEBUG(810, *YYCURSOR);
++ if (yych <= '\r') goto yy834;
++ if (yych == ' ') goto yy832;
++ }
++yy831:
++ YYDEBUG(831, *YYCURSOR);
++ yyleng = YYCURSOR - SCNG(yy_text);
++#line 2028 "Zend/zend_language_scanner.l"
++ {
++ /* Allow <?php followed by end of file. */
++ if (YYCURSOR == YYLIMIT) {
++ BEGIN(ST_IN_SCRIPTING);
++ RETURN_OR_SKIP_TOKEN(T_OPEN_TAG);
+ }
-yy811:
- YYDEBUG(811, *YYCURSOR);
++ /* Degenerate case: <?phpX is interpreted as <? phpX with short tags. */
++ if (CG(short_tags)) {
++ yyless(2);
++ BEGIN(ST_IN_SCRIPTING);
++ RETURN_OR_SKIP_TOKEN(T_OPEN_TAG);
++ }
++ goto inline_char_handler;
++}
++#line 8310 "Zend/zend_language_scanner.c"
++yy832:
++ YYDEBUG(832, *YYCURSOR);
+ ++YYCURSOR;
-#line 1937 "Zend/zend_language_scanner.l"
++yy833:
++ YYDEBUG(833, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
- if (PARSER_MODE()) {
- SKIP_TOKEN(T_OPEN_TAG);
- }
- RETURN_TOKEN(T_OPEN_TAG);
++#line 2022 "Zend/zend_language_scanner.l"
+ {
+ HANDLE_NEWLINE(yytext[yyleng-1]);
+ BEGIN(ST_IN_SCRIPTING);
-#line 8026 "Zend/zend_language_scanner.c"
-yy812:
- YYDEBUG(812, *YYCURSOR);
++ RETURN_OR_SKIP_TOKEN(T_OPEN_TAG);
+ }
- if (yych == '\n') goto yy810;
- goto yy811;
++#line 8323 "Zend/zend_language_scanner.c"
++yy834:
++ YYDEBUG(834, *YYCURSOR);
+ yych = *++YYCURSOR;
- YYDEBUG(813, *YYCURSOR);
++ if (yych == '\n') goto yy832;
++ goto yy833;
+ /* *********************************** */
+ yyc_ST_END_HEREDOC:
- YYDEBUG(815, *YYCURSOR);
++ YYDEBUG(835, *YYCURSOR);
+ YYFILL(1);
+ yych = *YYCURSOR;
- YYDEBUG(816, *YYCURSOR);
++ YYDEBUG(837, *YYCURSOR);
+ ++YYCURSOR;
-#line 2421 "Zend/zend_language_scanner.l"
++ YYDEBUG(838, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 8054 "Zend/zend_language_scanner.c"
++#line 2515 "Zend/zend_language_scanner.l"
+ {
+ zend_heredoc_label *heredoc_label = zend_ptr_stack_pop(&SCNG(heredoc_label_stack));
+
+ yyleng = heredoc_label->indentation + heredoc_label->length;
+ YYCURSOR += yyleng - 1;
+
+ heredoc_label_dtor(heredoc_label);
+ efree(heredoc_label);
+
+ BEGIN(ST_IN_SCRIPTING);
+ RETURN_TOKEN(T_END_HEREDOC);
+ }
- YYDEBUG(817, *YYCURSOR);
++#line 8351 "Zend/zend_language_scanner.c"
+ /* *********************************** */
+ yyc_ST_NOWDOC:
- YYDEBUG(819, *YYCURSOR);
++ YYDEBUG(839, *YYCURSOR);
+ YYFILL(1);
+ yych = *YYCURSOR;
- YYDEBUG(820, *YYCURSOR);
++ YYDEBUG(841, *YYCURSOR);
+ ++YYCURSOR;
-#line 2677 "Zend/zend_language_scanner.l"
++ YYDEBUG(842, *YYCURSOR);
+ yyleng = YYCURSOR - SCNG(yy_text);
-#line 8154 "Zend/zend_language_scanner.c"
++#line 2771 "Zend/zend_language_scanner.l"
+ {
+ zend_heredoc_label *heredoc_label = zend_ptr_stack_top(&SCNG(heredoc_label_stack));
+ int newline = 0, indentation = 0, spacing = -1;
+
+ if (YYCURSOR > YYLIMIT) {
+ RETURN_TOKEN(END);
+ }
+
+ YYCURSOR--;
+
+ while (YYCURSOR < YYLIMIT) {
+ switch (*YYCURSOR++) {
+ case '\r':
+ if (*YYCURSOR == '\n') {
+ YYCURSOR++;
+ }
+ /* fall through */
+ case '\n':
+ indentation = spacing = 0;
+
+ while (YYCURSOR < YYLIMIT && (*YYCURSOR == ' ' || *YYCURSOR == '\t')) {
+ if (*YYCURSOR == '\t') {
+ spacing |= HEREDOC_USING_TABS;
+ } else {
+ spacing |= HEREDOC_USING_SPACES;
+ }
+ ++YYCURSOR;
+ ++indentation;
+ }
+
+ if (YYCURSOR == YYLIMIT) {
+ yyleng = YYCURSOR - SCNG(yy_text);
+ HANDLE_NEWLINES(yytext, yyleng);
+ ZVAL_NULL(zendlval);
+ RETURN_TOKEN_WITH_VAL(T_ENCAPSED_AND_WHITESPACE);
+ }
+
+ /* Check for ending label on the next line */
+ if (IS_LABEL_START(*YYCURSOR) && heredoc_label->length < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, heredoc_label->label, heredoc_label->length)) {
+ if (IS_LABEL_SUCCESSOR(YYCURSOR[heredoc_label->length])) {
+ continue;
+ }
+
+ if (spacing == (HEREDOC_USING_SPACES | HEREDOC_USING_TABS)) {
+ zend_throw_exception(zend_ce_parse_error, "Invalid indentation - tabs and spaces cannot be mixed", 0);
+ if (PARSER_MODE()) {
+ RETURN_TOKEN(T_ERROR);
+ }
+ }
+
+ /* newline before label will be subtracted from returned text, but
+ * yyleng/yytext will include it, for zend_highlight/strip, tokenizer, etc. */
+ if (YYCURSOR[-indentation - 2] == '\r' && YYCURSOR[-indentation - 1] == '\n') {
+ newline = 2; /* Windows newline */
+ } else {
+ newline = 1;
+ }
+
+ CG(increment_lineno) = 1; /* For newline before label */
+
+ YYCURSOR -= indentation;
+ heredoc_label->indentation = indentation;
+
+ BEGIN(ST_END_HEREDOC);
+
+ goto nowdoc_scan_done;
+ }
+ /* fall through */
+ default:
+ continue;
+ }
+ }
+
+ nowdoc_scan_done:
+ yyleng = YYCURSOR - SCNG(yy_text);
+ ZVAL_STRINGL(zendlval, yytext, yyleng - newline);
+
+ if (!EG(exception) && spacing != -1 && PARSER_MODE()) {
+ zend_bool newline_at_start = *(yytext - 1) == '\n' || *(yytext - 1) == '\r';
+ if (!strip_multiline_string_indentation(
+ zendlval, indentation, spacing == HEREDOC_USING_SPACES,
+ newline_at_start, newline != 0)) {
+ RETURN_TOKEN(T_ERROR);
+ }
+ }
+
+ HANDLE_NEWLINES(yytext, yyleng - newline);
+ RETURN_TOKEN_WITH_VAL(T_ENCAPSED_AND_WHITESPACE);
+ }
-#line 2779 "Zend/zend_language_scanner.l"
++#line 8451 "Zend/zend_language_scanner.c"
+ }
++#line 2877 "Zend/zend_language_scanner.l"
+
+
+ emit_token_with_str:
+ zend_copy_value(zendlval, (yytext + offset), (yyleng - offset));
+
+ emit_token_with_val:
+ if (PARSER_MODE()) {
+ ZEND_ASSERT(Z_TYPE_P(zendlval) != IS_UNDEF);
+ elem->ast = zend_ast_create_zval_with_lineno(zendlval, start_line);
+ }
+
+ emit_token:
+ if (SCNG(on_event)) {
+ SCNG(on_event)(ON_TOKEN, token, start_line, SCNG(on_event_context));
+ }
+ return token;
+
+ return_whitespace:
+ HANDLE_NEWLINES(yytext, yyleng);
+ if (SCNG(on_event)) {
+ SCNG(on_event)(ON_TOKEN, T_WHITESPACE, start_line, SCNG(on_event_context));
+ }
+ if (PARSER_MODE()) {
+ start_line = CG(zend_lineno);
+ goto restart;
+ } else {
+ return T_WHITESPACE;
+ }
+
+ skip_token:
+ if (SCNG(on_event)) {
+ SCNG(on_event)(ON_TOKEN, token, start_line, SCNG(on_event_context));
+ }
+ start_line = CG(zend_lineno);
+ goto restart;
+ }