mirror of
https://github.com/php/php-src.git
synced 2025-01-02 08:54:04 +08:00
10122 lines
233 KiB
C
10122 lines
233 KiB
C
/* Generated by re2c 0.13.5 on Mon Jun 09 05:05:01 2008 */
|
|
#line 1 "Zend/zend_language_scanner.l"
|
|
/*
|
|
+----------------------------------------------------------------------+
|
|
| Zend Engine |
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) 1998-2008 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@zend.com> |
|
|
| Zeev Suraski <zeev@zend.com> |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
/* $Id$ */
|
|
|
|
#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"
|
|
#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_unicode.h"
|
|
#include "tsrm_virtual_cwd.h"
|
|
#include "tsrm_config_common.h"
|
|
|
|
#define YYCTYPE unsigned char
|
|
#define YYFILL(n) { if (YYCURSOR >= YYLIMIT) 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
|
|
|
|
#ifdef HAVE_STDARG_H
|
|
# include <stdarg.h>
|
|
#endif
|
|
|
|
#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;
|
|
#else
|
|
ZEND_API zend_php_scanner_globals language_scanner_globals;
|
|
#endif
|
|
|
|
/*
|
|
#define YY_INPUT(buf, result, max_size) \
|
|
if ( ((result = zend_unicode_yyinput(yyin, buf, max_size TSRMLS_CC)) == 0)) \
|
|
YY_FATAL_ERROR( "input in flex scanner failed" );
|
|
*/
|
|
|
|
#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)++; \
|
|
} \
|
|
}
|
|
|
|
#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 _yy_push_state(int new_state TSRMLS_DC)
|
|
{
|
|
zend_stack_push(&SCNG(state_stack), (void *) &YYGETCONDITION(), sizeof(int));
|
|
YYSETCONDITION(new_state);
|
|
}
|
|
|
|
#define yy_push_state(state_and_tsrm) _yy_push_state(yyc##state_and_tsrm)
|
|
|
|
static void yy_pop_state(TSRMLS_D)
|
|
{
|
|
int *stack_state;
|
|
zend_stack_top(&SCNG(state_stack), (void **) &stack_state);
|
|
YYSETCONDITION(*stack_state);
|
|
zend_stack_del_top(&SCNG(state_stack));
|
|
}
|
|
|
|
static void yy_scan_buffer(char *str, unsigned int len TSRMLS_DC)
|
|
{
|
|
YYCURSOR = (YYCTYPE*)str;
|
|
SCNG(yy_start) = YYCURSOR;
|
|
YYLIMIT = YYCURSOR + len;
|
|
}
|
|
|
|
void startup_scanner(TSRMLS_D)
|
|
{
|
|
CG(heredoc) = NULL;
|
|
CG(heredoc_len) = 0;
|
|
CG(doc_comment) = NULL_ZSTR;
|
|
CG(doc_comment_len) = 0;
|
|
|
|
SCNG(input_conv) = NULL;
|
|
SCNG(output_conv) = NULL;
|
|
SCNG(encoding_checked) = 0;
|
|
SCNG(rest_str) = NULL;
|
|
SCNG(rest_len) = 0;
|
|
|
|
zend_llist_init(&SCNG(used_state_stacks), sizeof(zend_stack), (llist_dtor_func_t) zend_stack_destroy, 0);
|
|
zend_stack_init(&SCNG(state_stack));
|
|
zend_llist_add_element(&SCNG(used_state_stacks), &SCNG(state_stack));
|
|
}
|
|
|
|
|
|
void shutdown_scanner(TSRMLS_D)
|
|
{
|
|
if (CG(heredoc)) {
|
|
efree(CG(heredoc));
|
|
CG(heredoc_len)=0;
|
|
}
|
|
zend_llist_destroy(&SCNG(used_state_stacks));
|
|
RESET_DOC_COMMENT();
|
|
|
|
if (SCNG(input_conv)) {
|
|
ucnv_close(SCNG(input_conv));
|
|
SCNG(input_conv) = NULL;
|
|
}
|
|
if (SCNG(output_conv)) {
|
|
ucnv_close(SCNG(output_conv));
|
|
SCNG(output_conv) = NULL;
|
|
}
|
|
SCNG(encoding_checked) = 0;
|
|
if (SCNG(rest_str)) {
|
|
efree(SCNG(rest_str));
|
|
SCNG(rest_str) = NULL;
|
|
}
|
|
SCNG(rest_len) = 0;
|
|
}
|
|
|
|
static int compare_stacks(zend_stack *stack1, zend_stack *stack2)
|
|
{
|
|
return (stack1 == stack2);
|
|
}
|
|
|
|
ZEND_API void zend_save_lexical_state(zend_lex_state *lex_state TSRMLS_DC)
|
|
{
|
|
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));
|
|
zend_llist_add_element(&SCNG(used_state_stacks), &SCNG(state_stack));
|
|
|
|
lex_state->in = SCNG(yy_in);
|
|
lex_state->yy_state = YYSTATE;
|
|
lex_state->filename = zend_get_compiled_filename(TSRMLS_C);
|
|
lex_state->lineno = CG(zend_lineno);
|
|
|
|
lex_state->input_conv = SCNG(input_conv);
|
|
lex_state->output_conv = SCNG(output_conv);
|
|
lex_state->encoding_checked = SCNG(encoding_checked);
|
|
lex_state->rest_str = SCNG(rest_str);
|
|
lex_state->rest_len = SCNG(rest_len);
|
|
SCNG(input_conv) = NULL;
|
|
SCNG(output_conv) = NULL;
|
|
SCNG(encoding_checked) = 0;
|
|
SCNG(rest_str) = NULL;
|
|
SCNG(rest_len) = 0;
|
|
}
|
|
|
|
ZEND_API void zend_restore_lexical_state(zend_lex_state *lex_state TSRMLS_DC)
|
|
{
|
|
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_llist_del_element(&SCNG(used_state_stacks), &SCNG(state_stack), (int (*)(void *, void *)) compare_stacks);
|
|
SCNG(state_stack) = lex_state->state_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 TSRMLS_CC);
|
|
zend_restore_compiled_script_encoding(lex_state->script_encoding TSRMLS_CC);
|
|
|
|
if (SCNG(input_conv)) {
|
|
ucnv_close(SCNG(input_conv));
|
|
}
|
|
SCNG(input_conv) = lex_state->input_conv;
|
|
if (SCNG(output_conv)) {
|
|
ucnv_close(SCNG(output_conv));
|
|
}
|
|
SCNG(output_conv) = lex_state->output_conv;
|
|
SCNG(encoding_checked) = lex_state->encoding_checked;
|
|
if (SCNG(rest_str)) {
|
|
efree(SCNG(rest_str));
|
|
}
|
|
SCNG(rest_str) = lex_state->rest_str;
|
|
SCNG(rest_len) = lex_state->rest_len;
|
|
}
|
|
|
|
ZEND_API void zend_destroy_file_handle(zend_file_handle *file_handle TSRMLS_DC)
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
|
|
/* Convert one octal digit to a numeric value 0..7, or -1 on failure */
|
|
static inline int8_t zend_get_octal_digit(UChar c) {
|
|
if (c >= 0x0030 && c <= 0x0037) {
|
|
return (int8_t)(c - 0x0030);
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
/*
|
|
* Convert one hex digit to a numeric value 0..F, or -1 on failure.
|
|
* Borrowed from ICU.
|
|
*/
|
|
static inline int8_t zend_get_hex_digit(UChar c) {
|
|
if (c >= 0x0030 && c <= 0x0039) {
|
|
return (int8_t)(c - 0x0030);
|
|
}
|
|
if (c >= 0x0041 && c <= 0x0046) {
|
|
return (int8_t)(c - (0x0041 - 10));
|
|
}
|
|
if (c >= 0x0061 && c <= 0x0066) {
|
|
return (int8_t)(c - (0x0061 - 10));
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
static inline zend_bool zend_udigits_to_codepoint(UChar *s, UChar *end, UChar32 *c, int8_t digits)
|
|
{
|
|
int8_t n = 0;
|
|
int8_t digit = 0;
|
|
UChar32 codepoint = 0;
|
|
|
|
while (s < end && n < digits) {
|
|
digit = zend_get_hex_digit(*s);
|
|
if (digit < 0) {
|
|
break;
|
|
}
|
|
codepoint = (codepoint << 4) | digit;
|
|
++s;
|
|
++n;
|
|
}
|
|
|
|
if (n < digits) {
|
|
return 0;
|
|
}
|
|
|
|
*c = codepoint;
|
|
return 1;
|
|
}
|
|
|
|
static inline int zend_uchar_from_uname(UChar *name, int name_len, UChar32 *c TSRMLS_DC)
|
|
{
|
|
UChar32 codepoint = 0;
|
|
UErrorCode status = U_ZERO_ERROR;
|
|
char *buf;
|
|
|
|
buf = zend_unicode_to_ascii(name, name_len TSRMLS_CC);
|
|
if (!buf) return 0;
|
|
codepoint = u_charFromName(U_UNICODE_CHAR_NAME, buf, &status);
|
|
efree(buf);
|
|
if (U_SUCCESS(status)) {
|
|
*c = codepoint;
|
|
return 1;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
static inline int zend_parse_charname_sequence(UChar **s, UChar *end, UChar32 *c TSRMLS_DC)
|
|
{
|
|
UChar *start;
|
|
|
|
if (**s == '{') {
|
|
start = ++(*s);
|
|
while ((*s)++ != end) {
|
|
if (**s == '}') {
|
|
if (zend_uchar_from_uname(start, *s - start, c TSRMLS_CC)) {
|
|
return 1;
|
|
} else {
|
|
/* safe, since *s points to '}' */
|
|
**s = 0;
|
|
zend_error(E_COMPILE_WARNING, "Invalid Unicode character name: '%r'", start);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
ZEND_API int zend_copy_scanner_string(zval *zendlval, char *str, zend_uint str_len, zend_uchar type, UConverter *conv TSRMLS_DC)
|
|
{
|
|
UErrorCode status = U_ZERO_ERROR;
|
|
int consumed = 0;
|
|
|
|
if (type == IS_UNICODE) {
|
|
consumed = zend_convert_scanner_output(conv, &Z_USTRVAL_P(zendlval), &Z_USTRLEN_P(zendlval), str, str_len, &status TSRMLS_CC);
|
|
|
|
if (U_FAILURE(status)) {
|
|
zend_error(E_COMPILE_WARNING,"Illegal or truncated character in input: offset %d, state=%d", consumed, YYSTATE);
|
|
efree(Z_USTRVAL_P(zendlval));
|
|
return 0;
|
|
}
|
|
Z_TYPE_P(zendlval) = IS_UNICODE;
|
|
} else {
|
|
Z_STRVAL_P(zendlval) = (char *)estrndup(str, str_len);
|
|
Z_STRLEN_P(zendlval) = str_len;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
|
|
static inline int zend_check_and_normalize_identifier(zval *zendlval)
|
|
{
|
|
UChar *norm;
|
|
int norm_len;
|
|
|
|
if (!zend_is_valid_identifier(Z_USTRVAL_P(zendlval), Z_USTRLEN_P(zendlval))) {
|
|
zend_error(E_COMPILE_WARNING, "Invalid identifier syntax: %r", Z_USTRVAL_P(zendlval));
|
|
efree(Z_USTRVAL_P(zendlval));
|
|
return 0;
|
|
}
|
|
if (zend_normalize_identifier(&norm, &norm_len, Z_USTRVAL_P(zendlval), Z_USTRLEN_P(zendlval), 0) == FAILURE) {
|
|
zend_error(E_COMPILE_WARNING, "Could not normalize identifier: %r", Z_USTRVAL_P(zendlval));
|
|
efree(Z_USTRVAL_P(zendlval));
|
|
return 0;
|
|
}
|
|
if (norm != Z_USTRVAL_P(zendlval)) {
|
|
efree(Z_USTRVAL_P(zendlval));
|
|
ZVAL_UNICODEL(zendlval, norm, norm_len, 0);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
static void zend_scanner_output_callback(
|
|
const void *context,
|
|
UConverterToUnicodeArgs *toUArgs,
|
|
const char *codeUnits,
|
|
int32_t length,
|
|
UConverterCallbackReason reason,
|
|
UErrorCode *err
|
|
)
|
|
{
|
|
if (*err == U_TRUNCATED_CHAR_FOUND ||
|
|
*err == U_ILLEGAL_CHAR_FOUND ||
|
|
*err == U_INVALID_CHAR_FOUND) {
|
|
*(const char **)context = toUArgs->source - length;
|
|
}
|
|
|
|
return;
|
|
}
|
|
|
|
static int is_encoding_flex_compatible(const char *enc TSRMLS_DC)
|
|
{
|
|
int key_len = strlen(enc)+1;
|
|
unsigned char ret;
|
|
unsigned char *ret_ptr;
|
|
|
|
if (zend_hash_find(&UG(flex_compatible), (char*)enc, key_len, (void**)&ret_ptr) == SUCCESS) {
|
|
return *ret_ptr;
|
|
} else {
|
|
UErrorCode status = U_ZERO_ERROR;
|
|
UConverter *conv = ucnv_open(enc, &status);
|
|
|
|
if (U_FAILURE(status)) {
|
|
return 0;
|
|
}
|
|
|
|
switch (ucnv_getType(conv)) {
|
|
case UCNV_DBCS:
|
|
case UCNV_UTF16_BigEndian:
|
|
case UCNV_UTF16_LittleEndian:
|
|
case UCNV_UTF32_BigEndian:
|
|
case UCNV_UTF32_LittleEndian:
|
|
case UCNV_EBCDIC_STATEFUL:
|
|
case UCNV_ISO_2022:
|
|
case UCNV_LMBCS_1:
|
|
case UCNV_LMBCS_2:
|
|
case UCNV_LMBCS_3:
|
|
case UCNV_LMBCS_4:
|
|
case UCNV_LMBCS_5:
|
|
case UCNV_LMBCS_6:
|
|
case UCNV_LMBCS_8:
|
|
case UCNV_LMBCS_11:
|
|
case UCNV_LMBCS_16:
|
|
case UCNV_LMBCS_17:
|
|
case UCNV_LMBCS_18:
|
|
case UCNV_LMBCS_19:
|
|
case UCNV_HZ:
|
|
case UCNV_SCSU:
|
|
case UCNV_UTF7:
|
|
case UCNV_BOCU1:
|
|
case UCNV_UTF16:
|
|
case UCNV_UTF32:
|
|
case UCNV_IMAP_MAILBOX:
|
|
ret = 0;
|
|
break;
|
|
case UCNV_LATIN_1:
|
|
case UCNV_UTF8:
|
|
case UCNV_ISCII:
|
|
case UCNV_US_ASCII:
|
|
case UCNV_CESU8:
|
|
ret = 1;
|
|
break;
|
|
default: {
|
|
static const UChar ascii[] = {
|
|
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
|
|
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F,
|
|
0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F,
|
|
0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F,
|
|
0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F,
|
|
0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F,
|
|
0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F,
|
|
0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E
|
|
};
|
|
static const char expected[] =
|
|
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F"
|
|
"\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F"
|
|
"\x20\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2A\x2B\x2C\x2D\x2E\x2F"
|
|
"\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3A\x3B\x3C\x3D\x3E\x3F"
|
|
"\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4A\x4B\x4C\x4D\x4E\x4F"
|
|
"\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5A\x5B\x5C\x5D\x5E\x5F"
|
|
"\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6A\x6B\x6C\x6D\x6E\x6F"
|
|
"\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7A\x7B\x7C\x7D\x7E";
|
|
char output[sizeof(expected)];
|
|
|
|
if (ucnv_fromUChars(conv,
|
|
output, sizeof(output),
|
|
ascii, sizeof(expected),
|
|
&status) != sizeof(expected) ||
|
|
U_FAILURE(status)) {
|
|
ret = 0;
|
|
} else {
|
|
ret = (memcmp(expected, output, sizeof(expected)) == 0);
|
|
}
|
|
}
|
|
}
|
|
ucnv_close(conv);
|
|
|
|
zend_hash_add(&UG(flex_compatible), (char*)enc, key_len, (void**)&ret, sizeof(ret), NULL);
|
|
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
ZEND_API int zend_prepare_scanner_converters(const char *onetime_encoding, int run_time TSRMLS_DC)
|
|
{
|
|
const char *encoding = NULL;
|
|
|
|
if (SCNG(input_conv)) {
|
|
/* Script is already converted to UTF-8 */
|
|
return zend_set_converter_encoding(&SCNG(output_conv), "UTF-8");
|
|
} else {
|
|
encoding = onetime_encoding;
|
|
}
|
|
|
|
/* We need to convert the input stream only if script_encoding is not ASCII compatible */
|
|
if (!is_encoding_flex_compatible(encoding TSRMLS_CC)) {
|
|
if (zend_set_converter_encoding(&SCNG(input_conv), encoding) == FAILURE) {
|
|
return FAILURE;
|
|
}
|
|
#ifdef scottmac_0
|
|
if (run_time) {
|
|
/* Convert rest of the buffer to unicode.runtime_encoding. */
|
|
YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
|
|
int offset, length, size;
|
|
const char *src, *old_src;
|
|
char rt_buf[8192];
|
|
char *target = rt_buf;
|
|
UErrorCode status = U_ZERO_ERROR;
|
|
|
|
old_src = src = yy_c_buf_p;
|
|
offset = yy_c_buf_p - b->yy_ch_buf;
|
|
length = b->yy_n_chars - offset;
|
|
size = b->yy_buf_size - offset;
|
|
|
|
ucnv_convertEx(UG(utf8_conv),
|
|
SCNG(input_conv),
|
|
&target, rt_buf+size-2,
|
|
&src, src+length,
|
|
NULL, NULL, NULL, NULL,
|
|
TRUE, TRUE,
|
|
&status);
|
|
|
|
if (src - old_src < length) {
|
|
/* Cannot fit into buffer. Schedule for next read. */
|
|
SCNG(rest_len) = length - (src - old_src);
|
|
SCNG(rest_str) = emalloc(SCNG(rest_len));
|
|
memcpy(SCNG(rest_str), src, SCNG(rest_len));
|
|
}
|
|
length = target - rt_buf;
|
|
memcpy(yy_c_buf_p, rt_buf, length);
|
|
SCNG(yy_n_chars) = b->yy_n_chars = length + offset;
|
|
b->yy_ch_buf[b->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
|
|
b->yy_ch_buf[b->yy_n_chars+1] = YY_END_OF_BUFFER_CHAR;
|
|
}
|
|
#endif
|
|
encoding = "UTF-8";
|
|
}
|
|
return zend_set_converter_encoding(&SCNG(output_conv), encoding);
|
|
}
|
|
|
|
ZEND_API int zend_convert_scanner_output(UConverter *conv, UChar **target, int *target_len, const char *source, int source_len, UErrorCode *status TSRMLS_DC)
|
|
{
|
|
const char *source_consumed = NULL;
|
|
|
|
/* set our custom callback with context */
|
|
ucnv_setToUCallBack(conv, zend_scanner_output_callback, &source_consumed, NULL, NULL, status);
|
|
|
|
/* reset the error and perform conversion */
|
|
*status = U_ZERO_ERROR;
|
|
zend_string_to_unicode_ex(conv, target, target_len, source, source_len, status);
|
|
|
|
/* figure out how many source bytes were consumed */
|
|
if (U_SUCCESS(*status)) {
|
|
return source_len;
|
|
} else if (source_consumed) {
|
|
return source_consumed - source;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
int zend_unicode_yyinput(zend_file_handle *file_handle, char *buf, size_t len TSRMLS_DC)
|
|
{
|
|
size_t n;
|
|
int c = '*';
|
|
const char *src = buf;
|
|
|
|
#ifdef scottmac_0
|
|
/* Look of we have rest from previous call */
|
|
if (SCNG(rest_str)) {
|
|
if (len >= SCNG(rest_len)) {
|
|
memcpy(buf, SCNG(rest_str), SCNG(rest_len));
|
|
efree(SCNG(rest_str));
|
|
SCNG(rest_str) = NULL;
|
|
n = SCNG(rest_len);
|
|
SCNG(rest_len) = 0;
|
|
} else {
|
|
memcpy(buf, SCNG(rest_str), len);
|
|
memcpy(SCNG(rest_str), SCNG(rest_str)+len, SCNG(rest_len)-len);
|
|
n = len;
|
|
SCNG(rest_len) -= len;
|
|
}
|
|
} else {
|
|
n = zend_stream_read(file_handle, buf, len TSRMLS_CC);
|
|
}
|
|
#endif
|
|
/* Don't make any conversions if unicode=off */
|
|
if (!UG(unicode)) {
|
|
return n;
|
|
}
|
|
|
|
/* Autodetect encoding */
|
|
if (!SCNG(encoding_checked)) {
|
|
int32_t signatureLength;
|
|
UErrorCode status = U_ZERO_ERROR;
|
|
const char *encoding;
|
|
|
|
encoding = ucnv_detectUnicodeSignature(buf, n, &signatureLength, &status);
|
|
if (encoding && U_SUCCESS(status)) {
|
|
src += signatureLength;
|
|
n -= signatureLength;
|
|
if (is_encoding_flex_compatible(encoding TSRMLS_CC)) {
|
|
if (SCNG(input_conv)) {
|
|
ucnv_close(SCNG(input_conv));
|
|
SCNG(input_conv) = NULL;
|
|
}
|
|
zend_set_converter_encoding(&SCNG(output_conv), encoding);
|
|
if (signatureLength > 0) {
|
|
memcpy(buf, src, n);
|
|
}
|
|
} else {
|
|
zend_set_converter_encoding(&SCNG(input_conv), encoding);
|
|
zend_set_converter_encoding(&SCNG(output_conv), "UTF-8");
|
|
}
|
|
}
|
|
status = U_ZERO_ERROR;
|
|
SCNG(encoding_checked) = 1;
|
|
}
|
|
|
|
if (SCNG(input_conv) && n >= 0) {
|
|
UErrorCode status = U_ZERO_ERROR;
|
|
char rt_buf[8192];
|
|
char *target = rt_buf;
|
|
const char *old_src = src;
|
|
|
|
ucnv_convertEx(UG(utf8_conv),
|
|
SCNG(input_conv),
|
|
&target, rt_buf+len,
|
|
&src, src+n,
|
|
NULL, NULL, NULL, NULL,
|
|
TRUE, TRUE,
|
|
&status);
|
|
if (src - old_src < n) {
|
|
/* Cannot fit into buffer. Schedule for next read. */
|
|
SCNG(rest_len) = n - (src - old_src);
|
|
SCNG(rest_str) = emalloc(SCNG(rest_len));
|
|
memcpy(SCNG(rest_str), src, SCNG(rest_len));
|
|
}
|
|
n = target - rt_buf;
|
|
memcpy(buf, rt_buf, n);
|
|
}
|
|
return n;
|
|
}
|
|
|
|
ZEND_API int open_file_for_scanning(zend_file_handle *file_handle TSRMLS_DC)
|
|
{
|
|
char *file_path=NULL, *buf;
|
|
UErrorCode status = U_ZERO_ERROR;
|
|
size_t size;
|
|
|
|
if (zend_stream_fixup(file_handle, &buf, &size TSRMLS_CC) == FAILURE) {
|
|
return FAILURE;
|
|
}
|
|
|
|
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;
|
|
|
|
zend_prepare_scanner_converters(ucnv_getName(ZEND_U_CONVERTER(UG(script_encoding_conv)), &status), 0 TSRMLS_CC);
|
|
|
|
if (size != -1) {
|
|
/* Re-encode for Unicode if needed */
|
|
yy_scan_buffer(buf, size TSRMLS_CC);
|
|
} else {
|
|
zend_error_noreturn(E_COMPILE_ERROR, "zend_stream_mmap() failed");
|
|
}
|
|
|
|
BEGIN(INITIAL);
|
|
|
|
if (file_handle->opened_path) {
|
|
file_path = file_handle->opened_path;
|
|
} else {
|
|
file_path = file_handle->filename;
|
|
}
|
|
|
|
zend_set_compiled_filename(file_path TSRMLS_CC);
|
|
zend_set_compiled_script_encoding((char*)ucnv_getName(SCNG(output_conv), &status) TSRMLS_CC);
|
|
|
|
if (CG(start_lineno)) {
|
|
CG(zend_lineno) = CG(start_lineno);
|
|
CG(start_lineno) = 0;
|
|
} else {
|
|
CG(zend_lineno) = 1;
|
|
}
|
|
|
|
CG(increment_lineno) = 0;
|
|
return SUCCESS;
|
|
}
|
|
END_EXTERN_C()
|
|
|
|
|
|
ZEND_API zend_op_array *compile_file(zend_file_handle *file_handle, int type TSRMLS_DC)
|
|
{
|
|
zend_lex_state original_lex_state;
|
|
zend_op_array *op_array = (zend_op_array *) emalloc(sizeof(zend_op_array));
|
|
zend_op_array *original_active_op_array = CG(active_op_array);
|
|
zend_op_array *retval=NULL;
|
|
int compiler_result;
|
|
zend_bool compilation_successful=0;
|
|
znode retval_znode;
|
|
zend_bool original_in_compilation = CG(in_compilation);
|
|
|
|
retval_znode.op_type = IS_CONST;
|
|
Z_TYPE(retval_znode.u.constant) = IS_LONG;
|
|
Z_LVAL(retval_znode.u.constant) = 1;
|
|
Z_UNSET_ISREF(retval_znode.u.constant);
|
|
Z_SET_REFCOUNT(retval_znode.u.constant, 1);
|
|
|
|
zend_save_lexical_state(&original_lex_state TSRMLS_CC);
|
|
|
|
retval = op_array; /* success oriented */
|
|
|
|
if (open_file_for_scanning(file_handle TSRMLS_CC)==FAILURE) {
|
|
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);
|
|
}
|
|
compilation_successful=0;
|
|
} else {
|
|
init_op_array(op_array, ZEND_USER_FUNCTION, INITIAL_OP_ARRAY_SIZE TSRMLS_CC);
|
|
CG(in_compilation) = 1;
|
|
CG(active_op_array) = op_array;
|
|
compiler_result = zendparse(TSRMLS_C);
|
|
zend_do_return(&retval_znode, 0 TSRMLS_CC);
|
|
CG(in_compilation) = original_in_compilation;
|
|
if (compiler_result==1) { /* parser error */
|
|
zend_bailout();
|
|
}
|
|
compilation_successful=1;
|
|
}
|
|
|
|
if (retval) {
|
|
CG(active_op_array) = original_active_op_array;
|
|
if (compilation_successful) {
|
|
pass_two(op_array TSRMLS_CC);
|
|
zend_release_labels(TSRMLS_C);
|
|
} else {
|
|
efree(op_array);
|
|
retval = NULL;
|
|
}
|
|
}
|
|
if (compilation_successful) {
|
|
zend_restore_lexical_state(&original_lex_state TSRMLS_CC);
|
|
}
|
|
return retval;
|
|
}
|
|
|
|
|
|
zend_op_array *compile_filename(int type, zval *filename TSRMLS_DC)
|
|
{
|
|
zend_file_handle file_handle;
|
|
zval tmp;
|
|
zend_op_array *retval;
|
|
char *opened_path = NULL;
|
|
|
|
if (Z_TYPE_P(filename) != IS_STRING) {
|
|
tmp = *filename;
|
|
zval_copy_ctor(&tmp);
|
|
convert_to_string(&tmp);
|
|
filename = &tmp;
|
|
}
|
|
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;
|
|
|
|
retval = zend_compile_file(&file_handle, type TSRMLS_CC);
|
|
if (retval && file_handle.handle.stream.handle) {
|
|
int dummy = 1;
|
|
|
|
if (!file_handle.opened_path) {
|
|
file_handle.opened_path = opened_path = estrndup(Z_STRVAL_P(filename), Z_STRLEN_P(filename));
|
|
}
|
|
|
|
zend_hash_add(&EG(included_files), file_handle.opened_path, strlen(file_handle.opened_path)+1, (void *)&dummy, sizeof(int), NULL);
|
|
|
|
if (opened_path) {
|
|
efree(opened_path);
|
|
}
|
|
}
|
|
zend_destroy_file_handle(&file_handle TSRMLS_CC);
|
|
|
|
if (filename==&tmp) {
|
|
zval_dtor(&tmp);
|
|
}
|
|
return retval;
|
|
}
|
|
|
|
ZEND_API int zend_prepare_string_for_scanning(zval *str, char *filename TSRMLS_DC)
|
|
{
|
|
const char *encoding;
|
|
UErrorCode status = U_ZERO_ERROR;
|
|
|
|
if (Z_TYPE_P(str) == IS_UNICODE) {
|
|
convert_to_string_with_converter(str, UG(utf8_conv));
|
|
encoding = "UTF-8";
|
|
} else {
|
|
UErrorCode status = U_ZERO_ERROR;
|
|
encoding = ucnv_getName(ZEND_U_CONVERTER(UG(runtime_encoding_conv)), &status);
|
|
}
|
|
|
|
str->value.str.val = safe_erealloc(str->value.str.val, 1, str->value.str.len, ZEND_MMAP_AHEAD);
|
|
memset(str->value.str.val + str->value.str.len, 0, ZEND_MMAP_AHEAD);
|
|
|
|
SCNG(yy_in)=NULL;
|
|
|
|
zend_prepare_scanner_converters(encoding, 0 TSRMLS_CC);
|
|
/* Re-encode for Unicode if needed */
|
|
yy_scan_buffer(Z_STRVAL_P(str), Z_STRLEN_P(str) TSRMLS_CC);
|
|
|
|
zend_set_compiled_filename(filename TSRMLS_CC);
|
|
zend_set_compiled_script_encoding((char*)ucnv_getName(SCNG(output_conv), &status) TSRMLS_CC);
|
|
CG(zend_lineno) = 1;
|
|
CG(increment_lineno) = 0;
|
|
return SUCCESS;
|
|
}
|
|
|
|
|
|
ZEND_API int zend_get_scanned_file_offset(TSRMLS_D)
|
|
{
|
|
return SCNG(yy_cursor) - SCNG(yy_start);
|
|
}
|
|
|
|
|
|
zend_op_array *compile_string(zval *source_string, char *filename TSRMLS_DC)
|
|
{
|
|
zend_lex_state original_lex_state;
|
|
zend_op_array *op_array = (zend_op_array *) emalloc(sizeof(zend_op_array));
|
|
zend_op_array *original_active_op_array = CG(active_op_array);
|
|
zend_op_array *retval;
|
|
zval tmp;
|
|
int compiler_result;
|
|
zend_bool original_in_compilation = CG(in_compilation);
|
|
|
|
tmp = *source_string;
|
|
zval_copy_ctor(&tmp);
|
|
if (Z_TYPE(tmp) != IS_STRING && Z_TYPE(tmp) != IS_UNICODE) {
|
|
convert_to_text(&tmp);
|
|
}
|
|
source_string = &tmp;
|
|
|
|
if (Z_UNILEN_P(source_string)==0) {
|
|
efree(op_array);
|
|
zval_dtor(&tmp);
|
|
return NULL;
|
|
}
|
|
|
|
CG(in_compilation) = 1;
|
|
|
|
zend_save_lexical_state(&original_lex_state TSRMLS_CC);
|
|
if (zend_prepare_string_for_scanning(source_string, filename TSRMLS_CC)==FAILURE) {
|
|
efree(op_array);
|
|
retval = NULL;
|
|
} else {
|
|
zend_bool orig_interactive = CG(interactive);
|
|
|
|
CG(interactive) = 0;
|
|
init_op_array(op_array, ZEND_EVAL_CODE, INITIAL_OP_ARRAY_SIZE TSRMLS_CC);
|
|
CG(interactive) = orig_interactive;
|
|
CG(active_op_array) = op_array;
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
compiler_result = zendparse(TSRMLS_C);
|
|
|
|
if (compiler_result==1) {
|
|
CG(active_op_array) = original_active_op_array;
|
|
CG(unclean_shutdown)=1;
|
|
retval = NULL;
|
|
} else {
|
|
zend_do_return(NULL, 0 TSRMLS_CC);
|
|
CG(active_op_array) = original_active_op_array;
|
|
pass_two(op_array TSRMLS_CC);
|
|
zend_release_labels(TSRMLS_C);
|
|
retval = op_array;
|
|
}
|
|
zend_restore_lexical_state(&original_lex_state TSRMLS_CC);
|
|
}
|
|
zval_dtor(&tmp);
|
|
CG(in_compilation) = original_in_compilation;
|
|
return retval;
|
|
}
|
|
|
|
|
|
BEGIN_EXTERN_C()
|
|
int highlight_file(char *filename, zend_syntax_highlighter_ini *syntax_highlighter_ini TSRMLS_DC)
|
|
{
|
|
zend_lex_state original_lex_state;
|
|
zend_file_handle file_handle;
|
|
|
|
file_handle.type = ZEND_HANDLE_FILENAME;
|
|
file_handle.filename = filename;
|
|
file_handle.free_filename = 0;
|
|
file_handle.opened_path = NULL;
|
|
zend_save_lexical_state(&original_lex_state TSRMLS_CC);
|
|
if (open_file_for_scanning(&file_handle TSRMLS_CC)==FAILURE) {
|
|
zend_message_dispatcher(ZMSG_FAILED_HIGHLIGHT_FOPEN, filename);
|
|
return FAILURE;
|
|
}
|
|
zend_highlight(syntax_highlighter_ini TSRMLS_CC);
|
|
zend_destroy_file_handle(&file_handle TSRMLS_CC);
|
|
zend_restore_lexical_state(&original_lex_state TSRMLS_CC);
|
|
return SUCCESS;
|
|
}
|
|
|
|
int highlight_string(zval *str, zend_syntax_highlighter_ini *syntax_highlighter_ini, char *str_name TSRMLS_DC)
|
|
{
|
|
zend_lex_state original_lex_state;
|
|
zval tmp = *str;
|
|
|
|
str = &tmp;
|
|
zval_copy_ctor(str);
|
|
zend_save_lexical_state(&original_lex_state TSRMLS_CC);
|
|
if (zend_prepare_string_for_scanning(str, str_name TSRMLS_CC)==FAILURE) {
|
|
return FAILURE;
|
|
}
|
|
BEGIN(INITIAL);
|
|
zend_highlight(syntax_highlighter_ini TSRMLS_CC);
|
|
zend_restore_lexical_state(&original_lex_state TSRMLS_CC);
|
|
zval_dtor(str);
|
|
return SUCCESS;
|
|
}
|
|
END_EXTERN_C()
|
|
|
|
#define zend_copy_value(zendlval, yytext, yyleng) \
|
|
Z_STRVAL_P(zendlval) = (char *)estrndup(yytext, yyleng); \
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
|
|
static int zend_scan_unicode_escape_string(zval *zendlval, char *str, int len, UChar quote_type, int type TSRMLS_DC)
|
|
{
|
|
register UChar *s, *t, c;
|
|
UChar *end;
|
|
UChar32 codepoint = 0;
|
|
int8_t digit;
|
|
int8_t min_digits = 0, max_digits = 0;
|
|
int8_t bits;
|
|
int8_t n;
|
|
|
|
if (!zend_copy_scanner_string(zendlval, str, len, IS_UNICODE, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
|
|
/* convert escape sequences */
|
|
s = t = Z_USTRVAL_P(zendlval);
|
|
end = s+Z_USTRLEN_P(zendlval);
|
|
while (s<end) {
|
|
if (*s==0x5C /*'\\'*/) {
|
|
s++;
|
|
c = *s;
|
|
if (s >= end) {
|
|
*t++ = 0x5C; /*'\\'*/
|
|
break;
|
|
}
|
|
|
|
min_digits = 0;
|
|
codepoint = 0;
|
|
bits = 4;
|
|
n = 0;
|
|
|
|
switch(c) {
|
|
case 0x6E: /*'n'*/
|
|
*t++ = (UChar) 0x0A; /*'\n'*/
|
|
Z_USTRLEN_P(zendlval)--;
|
|
break;
|
|
case 0x72: /*'r'*/
|
|
*t++ = (UChar) 0x0D; /*'\r'*/
|
|
Z_USTRLEN_P(zendlval)--;
|
|
break;
|
|
case 0x74: /*'t'*/
|
|
*t++ = (UChar) 0x09; /*'\t'*/
|
|
Z_USTRLEN_P(zendlval)--;
|
|
break;
|
|
case 0x66: /*'f'*/
|
|
*t++ = (UChar) 0x0C; /*'\f'*/
|
|
Z_USTRLEN_P(zendlval)--;
|
|
break;
|
|
case 0x76: /*'v'*/
|
|
*t++ = (UChar) 0x0B; /*'\v'*/
|
|
Z_USTRLEN_P(zendlval)--;
|
|
break;
|
|
case 0x22: /*'"'*/
|
|
case 0x60: /*'`'*/
|
|
if (c != quote_type) {
|
|
*t++ = 0x5C; /*'\\'*/
|
|
*t++ = *s;
|
|
break;
|
|
}
|
|
case 0x5C: /*'\\'*/
|
|
case 0x24: /*'$'*/
|
|
*t++ = *s;
|
|
Z_USTRLEN_P(zendlval)--;
|
|
break;
|
|
case 0x43: /*'C'*/
|
|
{
|
|
UChar *p = s+1;
|
|
if (p < end && zend_parse_charname_sequence(&p, end, &codepoint TSRMLS_CC)) {
|
|
Z_USTRLEN_P(zendlval) -= p - s + 1;
|
|
s = p;
|
|
if (U_IS_BMP(codepoint)) {
|
|
*t++ = (UChar) codepoint;
|
|
} else {
|
|
*t++ = (UChar) U16_LEAD(codepoint);
|
|
*t++ = (UChar) U16_TRAIL(codepoint);
|
|
Z_USTRLEN_P(zendlval)++;
|
|
}
|
|
} else {
|
|
zend_error(E_COMPILE_WARNING, "Invalid \\C{..} sequence");
|
|
efree(Z_USTRVAL_P(zendlval));
|
|
return 0;
|
|
}
|
|
break;
|
|
}
|
|
case 0x75: /*'u'*/
|
|
min_digits = 4;
|
|
max_digits = 4;
|
|
Z_USTRLEN_P(zendlval)--;
|
|
break;
|
|
case 0x55: /*'U'*/
|
|
min_digits = 6;
|
|
max_digits = 6;
|
|
Z_USTRLEN_P(zendlval)--;
|
|
break;
|
|
case 0x78: /*'x'*/
|
|
case 0x58: /*'X'*/
|
|
if ((digit = zend_get_hex_digit(*(s+1))) >= 0) {
|
|
min_digits = 1;
|
|
max_digits = 2;
|
|
Z_USTRLEN_P(zendlval)--;
|
|
s++;
|
|
n = 1; /* already have one digit */
|
|
codepoint = digit;
|
|
} else {
|
|
*t++ = 0x5C; /*'\\'*/
|
|
*t++ = *s;
|
|
}
|
|
break;
|
|
default:
|
|
digit = zend_get_octal_digit(*s);
|
|
if (digit >= 0) {
|
|
min_digits = 1;
|
|
max_digits = 3;
|
|
bits = 3;
|
|
n = 1; /* already have one digit */
|
|
codepoint = digit;
|
|
} else {
|
|
*t++ = 0x5C; /*'\\'*/
|
|
*t++ = *s;
|
|
}
|
|
break;
|
|
}
|
|
|
|
/* need to parse a number for one of the escape sequences */
|
|
if (min_digits != 0) {
|
|
while (s++ < end && n < max_digits) {
|
|
digit = (bits == 4) ? zend_get_hex_digit(*s) : zend_get_octal_digit(*s);
|
|
if (digit < 0) {
|
|
break;
|
|
}
|
|
codepoint = (codepoint << bits) | digit;
|
|
n++;
|
|
}
|
|
|
|
if (n < min_digits) {
|
|
/* can only happen for \u and \U sequences */
|
|
zend_error(E_COMPILE_WARNING,"\\%c escape sequence requires exactly %d hexadecimal digits", (char) c, min_digits);
|
|
efree(Z_USTRVAL_P(zendlval));
|
|
return 0;
|
|
}
|
|
|
|
if (U_IS_BMP(codepoint)) {
|
|
*t++ = (UChar) codepoint;
|
|
Z_USTRLEN_P(zendlval) -= n;
|
|
} else if (codepoint <= 0x10FFFF) {
|
|
*t++ = (UChar) U16_LEAD(codepoint);
|
|
*t++ = (UChar) U16_TRAIL(codepoint);
|
|
Z_USTRLEN_P(zendlval) -= n-1;
|
|
} else {
|
|
zend_error(E_COMPILE_WARNING,"\\U%06x is above the highest valid codepoint 0x10FFFF", codepoint);
|
|
efree(Z_USTRVAL_P(zendlval));
|
|
return 0;
|
|
}
|
|
|
|
/* s is already incremented and not past a newline */
|
|
continue;
|
|
}
|
|
} else {
|
|
*t++ = *s;
|
|
}
|
|
|
|
if (*s == 0x0A /*'\n'*/ || (*s == 0x0D /*'\r'*/ && (*(s+1) != 0x0A /*'\n'*/))) {
|
|
CG(zend_lineno)++;
|
|
}
|
|
s++;
|
|
}
|
|
*t = 0;
|
|
|
|
return type;
|
|
}
|
|
|
|
static int zend_scan_unicode_single_string(zval *zendlval TSRMLS_DC)
|
|
{
|
|
register UChar *s, *t;
|
|
UChar *end;
|
|
|
|
if (!zend_copy_scanner_string(zendlval, yytext+1, yyleng-2, IS_UNICODE, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
|
|
/* convert escape sequences */
|
|
s = t = Z_USTRVAL_P(zendlval);
|
|
end = s+Z_USTRLEN_P(zendlval);
|
|
while (s<end) {
|
|
if (*s==0x5C /*'\\'*/) {
|
|
s++;
|
|
|
|
switch(*s) {
|
|
case 0x5C: /*'\\'*/
|
|
case 0x27: /*'\''*/
|
|
*t++ = *s;
|
|
Z_USTRLEN_P(zendlval)--;
|
|
break;
|
|
default:
|
|
*t++ = 0x5C; /*'\\'*/
|
|
*t++ = *s;
|
|
break;
|
|
}
|
|
} else {
|
|
*t++ = *s;
|
|
}
|
|
|
|
if (*s == 0x0A /*'\n'*/ || (*s == 0x0D /*'\r'*/ && (*(s+1) != 0x0A /*'\n'*/))) {
|
|
CG(zend_lineno)++;
|
|
}
|
|
s++;
|
|
}
|
|
*t = 0;
|
|
|
|
return T_CONSTANT_ENCAPSED_STRING;
|
|
}
|
|
|
|
static void zend_scan_binary_escape_string(zval *zendlval, char *str, int len, char quote_type TSRMLS_DC)
|
|
{
|
|
register char *s, *t;
|
|
char *end;
|
|
|
|
ZVAL_STRINGL(zendlval, str, len, 1);
|
|
|
|
/* convert escape sequences */
|
|
s = t = Z_STRVAL_P(zendlval);
|
|
end = s+Z_STRLEN_P(zendlval);
|
|
while (s<end) {
|
|
if (*s=='\\') {
|
|
s++;
|
|
if (s >= end) {
|
|
*t++ = '\\';
|
|
break;
|
|
}
|
|
|
|
switch(*s) {
|
|
case 'n':
|
|
*t++ = '\n';
|
|
Z_STRLEN_P(zendlval)--;
|
|
break;
|
|
case 'r':
|
|
*t++ = '\r';
|
|
Z_STRLEN_P(zendlval)--;
|
|
break;
|
|
case 't':
|
|
*t++ = '\t';
|
|
Z_STRLEN_P(zendlval)--;
|
|
break;
|
|
case 'f':
|
|
*t++ = '\f';
|
|
zendlval->value.str.len--;
|
|
break;
|
|
case 'v':
|
|
*t++ = '\v';
|
|
zendlval->value.str.len--;
|
|
break;
|
|
case '"':
|
|
case '`':
|
|
if (*s != quote_type) {
|
|
*t++ = '\\';
|
|
*t++ = *s;
|
|
break;
|
|
}
|
|
case '\\':
|
|
case '$':
|
|
*t++ = *s;
|
|
Z_STRLEN_P(zendlval)--;
|
|
break;
|
|
case 'x':
|
|
case 'X':
|
|
if (ZEND_IS_HEX(*(s+1))) {
|
|
char hex_buf[3] = { 0, 0, 0 };
|
|
|
|
Z_STRLEN_P(zendlval)--; /* for the 'x' */
|
|
|
|
hex_buf[0] = *(++s);
|
|
Z_STRLEN_P(zendlval)--;
|
|
if (ZEND_IS_HEX(*(s+1))) {
|
|
hex_buf[1] = *(++s);
|
|
Z_STRLEN_P(zendlval)--;
|
|
}
|
|
*t++ = (char) strtol(hex_buf, NULL, 16);
|
|
} else {
|
|
*t++ = '\\';
|
|
*t++ = *s;
|
|
}
|
|
break;
|
|
default:
|
|
/* check for an octal */
|
|
if (ZEND_IS_OCT(*s)) {
|
|
char octal_buf[4] = { 0, 0, 0, 0 };
|
|
|
|
octal_buf[0] = *s;
|
|
Z_STRLEN_P(zendlval)--;
|
|
if (ZEND_IS_OCT(*(s+1))) {
|
|
octal_buf[1] = *(++s);
|
|
Z_STRLEN_P(zendlval)--;
|
|
if (ZEND_IS_OCT(*(s+1))) {
|
|
octal_buf[2] = *(++s);
|
|
Z_STRLEN_P(zendlval)--;
|
|
}
|
|
}
|
|
*t++ = (char) 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;
|
|
}
|
|
|
|
static void zend_scan_binary_single_string(zval *zendlval, char *str, int len TSRMLS_DC)
|
|
{
|
|
register char *s, *t;
|
|
char *end;
|
|
|
|
ZVAL_STRINGL(zendlval, str, len, 1);
|
|
|
|
/* convert escape sequences */
|
|
s = t = Z_STRVAL_P(zendlval);
|
|
end = s+Z_STRLEN_P(zendlval);
|
|
while (s<end) {
|
|
if (*s=='\\') {
|
|
s++;
|
|
|
|
switch(*s) {
|
|
case '\\':
|
|
case '\'':
|
|
*t++ = *s;
|
|
Z_STRLEN_P(zendlval)--;
|
|
break;
|
|
default:
|
|
*t++ = '\\';
|
|
*t++ = *s;
|
|
break;
|
|
}
|
|
} else {
|
|
*t++ = *s;
|
|
}
|
|
|
|
if (*s == '\n' || (*s == '\r' && (*(s+1) != '\n'))) {
|
|
CG(zend_lineno)++;
|
|
}
|
|
s++;
|
|
}
|
|
*t = 0;
|
|
}
|
|
|
|
|
|
int lex_scan(zval *zendlval TSRMLS_DC)
|
|
{
|
|
restart:
|
|
SCNG(yy_text) = YYCURSOR;
|
|
|
|
yymore_restart:
|
|
|
|
/* detect EOF */
|
|
if (YYCURSOR >= YYLIMIT) {
|
|
/* special case */
|
|
if (YYSTATE == STATE(ST_COMMENT) || YYSTATE == STATE(ST_DOC_COMMENT)) {
|
|
zend_error(E_COMPILE_WARNING, "Unterminated comment starting line %d", CG(zend_lineno));
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
#line 1343 "Zend/zend_language_scanner.c"
|
|
{
|
|
YYCTYPE yych;
|
|
unsigned int yyaccept = 0;
|
|
if (YYGETCONDITION() < 8) {
|
|
if (YYGETCONDITION() < 4) {
|
|
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 {
|
|
goto yyc_ST_DOUBLE_QUOTES;
|
|
}
|
|
}
|
|
} else {
|
|
if (YYGETCONDITION() < 6) {
|
|
if (YYGETCONDITION() < 5) {
|
|
goto yyc_ST_HEREDOC;
|
|
} else {
|
|
goto yyc_ST_LOOKING_FOR_VARNAME;
|
|
}
|
|
} else {
|
|
if (YYGETCONDITION() < 7) {
|
|
goto yyc_ST_VAR_OFFSET;
|
|
} else {
|
|
goto yyc_INITIAL;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
if (YYGETCONDITION() < 12) {
|
|
if (YYGETCONDITION() < 10) {
|
|
if (YYGETCONDITION() < 9) {
|
|
goto yyc_ST_ONE_LINE_COMMENT;
|
|
} else {
|
|
goto yyc_ST_COMMENT;
|
|
}
|
|
} else {
|
|
if (YYGETCONDITION() < 11) {
|
|
goto yyc_ST_DOC_COMMENT;
|
|
} else {
|
|
goto yyc_ST_START_HEREDOC;
|
|
}
|
|
}
|
|
} else {
|
|
if (YYGETCONDITION() < 14) {
|
|
if (YYGETCONDITION() < 13) {
|
|
goto yyc_ST_END_HEREDOC;
|
|
} else {
|
|
goto yyc_ST_START_NOWDOC;
|
|
}
|
|
} else {
|
|
if (YYGETCONDITION() < 15) {
|
|
goto yyc_ST_NOWDOC;
|
|
} else {
|
|
goto yyc_ST_END_NOWDOC;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/* *********************************** */
|
|
yyc_INITIAL:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
32, 32, 32, 32, 32, 32, 32, 32,
|
|
32, 160, 128, 32, 32, 192, 32, 32,
|
|
32, 32, 32, 32, 32, 32, 32, 32,
|
|
32, 32, 32, 32, 32, 32, 32, 32,
|
|
160, 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, 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,
|
|
};
|
|
|
|
YYDEBUG(0, *YYCURSOR);
|
|
YYFILL(8);
|
|
yych = *YYCURSOR;
|
|
if (yych == '#') goto yy4;
|
|
if (yych != '<') goto yy5;
|
|
YYDEBUG(2, *YYCURSOR);
|
|
yyaccept = 0;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= '?') {
|
|
if (yych == '%') goto yy14;
|
|
if (yych >= '?') goto yy12;
|
|
} else {
|
|
if (yych <= 'S') {
|
|
if (yych >= 'S') goto yy16;
|
|
} else {
|
|
if (yych == 's') goto yy16;
|
|
}
|
|
}
|
|
yy3:
|
|
YYDEBUG(3, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2166 "Zend/zend_language_scanner.l"
|
|
{
|
|
|
|
while (1) {
|
|
YYCTYPE *ptr = memchr(YYCURSOR, '<', YYLIMIT - YYCURSOR);
|
|
|
|
if (ptr == NULL) {
|
|
YYCURSOR = YYLIMIT;
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
break;
|
|
|
|
} else {
|
|
YYCURSOR = ptr + 1;
|
|
|
|
/* if it can be an opening tag, stop */
|
|
if (ptr < YYLIMIT && (*YYCURSOR == '?' || *YYCURSOR == '%')) {
|
|
--YYCURSOR;
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
inline_char_handler:
|
|
|
|
Z_STRVAL_P(zendlval) = (char *) estrndup(yytext, yyleng);
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
HANDLE_NEWLINES(yytext, yyleng);
|
|
return T_INLINE_HTML;
|
|
}
|
|
#line 1498 "Zend/zend_language_scanner.c"
|
|
yy4:
|
|
YYDEBUG(4, *YYCURSOR);
|
|
yyaccept = 0;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych == '\n') goto yy3;
|
|
goto yy6;
|
|
yy5:
|
|
YYDEBUG(5, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy3;
|
|
yy6:
|
|
YYDEBUG(6, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(7, *YYCURSOR);
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy6;
|
|
}
|
|
if (yych >= '\r') goto yy10;
|
|
yy8:
|
|
YYDEBUG(8, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy9:
|
|
YYDEBUG(9, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2157 "Zend/zend_language_scanner.l"
|
|
{
|
|
if ((YYCTYPE*)yytext == SCNG(yy_start)) {
|
|
/* ignore first line when it's started with a # */
|
|
goto restart;
|
|
} else {
|
|
goto inline_char_handler;
|
|
}
|
|
}
|
|
#line 1534 "Zend/zend_language_scanner.c"
|
|
yy10:
|
|
YYDEBUG(10, *YYCURSOR);
|
|
yyaccept = 1;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(11, *YYCURSOR);
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy6;
|
|
}
|
|
if (yych <= '\f') goto yy8;
|
|
goto yy10;
|
|
yy12:
|
|
YYDEBUG(12, *YYCURSOR);
|
|
yyaccept = 2;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= 'O') {
|
|
if (yych == '=') goto yy52;
|
|
} else {
|
|
if (yych <= 'P') goto yy54;
|
|
if (yych == 'p') goto yy54;
|
|
}
|
|
yy13:
|
|
YYDEBUG(13, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2141 "Zend/zend_language_scanner.l"
|
|
{
|
|
HANDLE_NEWLINES(yytext, yyleng);
|
|
if (CG(short_tags)) {
|
|
Z_STRVAL_P(zendlval) = yytext; /* no copying - intentional */
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_OPEN_TAG;
|
|
} else {
|
|
Z_STRVAL_P(zendlval) = (char *) estrndup(yytext, yyleng);
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
return T_INLINE_HTML;
|
|
}
|
|
}
|
|
#line 1576 "Zend/zend_language_scanner.c"
|
|
yy14:
|
|
YYDEBUG(14, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '=') goto yy50;
|
|
YYDEBUG(15, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2115 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (CG(asp_tags)) {
|
|
Z_STRVAL_P(zendlval) = yytext; /* no copying - intentional */
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_OPEN_TAG;
|
|
} else {
|
|
Z_STRVAL_P(zendlval) = (char *) estrndup(yytext, yyleng);
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
return T_INLINE_HTML;
|
|
}
|
|
}
|
|
#line 1598 "Zend/zend_language_scanner.c"
|
|
yy16:
|
|
YYDEBUG(16, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy18;
|
|
if (yych == 'c') goto yy18;
|
|
yy17:
|
|
YYDEBUG(17, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
if (yyaccept <= 1) {
|
|
if (yyaccept <= 0) {
|
|
goto yy3;
|
|
} else {
|
|
goto yy9;
|
|
}
|
|
} else {
|
|
goto yy13;
|
|
}
|
|
yy18:
|
|
YYDEBUG(18, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy19;
|
|
if (yych != 'r') goto yy17;
|
|
yy19:
|
|
YYDEBUG(19, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy20;
|
|
if (yych != 'i') goto yy17;
|
|
yy20:
|
|
YYDEBUG(20, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy21;
|
|
if (yych != 'p') goto yy17;
|
|
yy21:
|
|
YYDEBUG(21, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy22;
|
|
if (yych != 't') goto yy17;
|
|
yy22:
|
|
YYDEBUG(22, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy17;
|
|
if (yych == 'l') goto yy17;
|
|
goto yy24;
|
|
yy23:
|
|
YYDEBUG(23, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(8);
|
|
yych = *YYCURSOR;
|
|
yy24:
|
|
YYDEBUG(24, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy23;
|
|
}
|
|
if (yych == 'L') goto yy25;
|
|
if (yych != 'l') goto yy17;
|
|
yy25:
|
|
YYDEBUG(25, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy26;
|
|
if (yych != 'a') goto yy17;
|
|
yy26:
|
|
YYDEBUG(26, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy27;
|
|
if (yych != 'n') goto yy17;
|
|
yy27:
|
|
YYDEBUG(27, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'G') goto yy28;
|
|
if (yych != 'g') goto yy17;
|
|
yy28:
|
|
YYDEBUG(28, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'U') goto yy29;
|
|
if (yych != 'u') goto yy17;
|
|
yy29:
|
|
YYDEBUG(29, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy30;
|
|
if (yych != 'a') goto yy17;
|
|
yy30:
|
|
YYDEBUG(30, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'G') goto yy31;
|
|
if (yych != 'g') goto yy17;
|
|
yy31:
|
|
YYDEBUG(31, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy32;
|
|
if (yych != 'e') goto yy17;
|
|
yy32:
|
|
YYDEBUG(32, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(33, *YYCURSOR);
|
|
if (yych <= '\r') {
|
|
if (yych <= 0x08) goto yy17;
|
|
if (yych <= '\n') goto yy32;
|
|
if (yych <= '\f') goto yy17;
|
|
goto yy32;
|
|
} else {
|
|
if (yych <= ' ') {
|
|
if (yych <= 0x1F) goto yy17;
|
|
goto yy32;
|
|
} else {
|
|
if (yych != '=') goto yy17;
|
|
}
|
|
}
|
|
yy34:
|
|
YYDEBUG(34, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(5);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(35, *YYCURSOR);
|
|
if (yych <= '!') {
|
|
if (yych <= '\f') {
|
|
if (yych <= 0x08) goto yy17;
|
|
if (yych <= '\n') goto yy34;
|
|
goto yy17;
|
|
} else {
|
|
if (yych <= '\r') goto yy34;
|
|
if (yych == ' ') goto yy34;
|
|
goto yy17;
|
|
}
|
|
} else {
|
|
if (yych <= 'O') {
|
|
if (yych <= '"') goto yy37;
|
|
if (yych == '\'') goto yy38;
|
|
goto yy17;
|
|
} else {
|
|
if (yych <= 'P') goto yy36;
|
|
if (yych != 'p') goto yy17;
|
|
}
|
|
}
|
|
yy36:
|
|
YYDEBUG(36, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy49;
|
|
if (yych == 'h') goto yy49;
|
|
goto yy17;
|
|
yy37:
|
|
YYDEBUG(37, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy46;
|
|
if (yych == 'p') goto yy46;
|
|
goto yy17;
|
|
yy38:
|
|
YYDEBUG(38, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy39;
|
|
if (yych != 'p') goto yy17;
|
|
yy39:
|
|
YYDEBUG(39, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy40;
|
|
if (yych != 'h') goto yy17;
|
|
yy40:
|
|
YYDEBUG(40, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy41;
|
|
if (yych != 'p') goto yy17;
|
|
yy41:
|
|
YYDEBUG(41, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '\'') goto yy17;
|
|
yy42:
|
|
YYDEBUG(42, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(43, *YYCURSOR);
|
|
if (yych <= '\r') {
|
|
if (yych <= 0x08) goto yy17;
|
|
if (yych <= '\n') goto yy42;
|
|
if (yych <= '\f') goto yy17;
|
|
goto yy42;
|
|
} else {
|
|
if (yych <= ' ') {
|
|
if (yych <= 0x1F) goto yy17;
|
|
goto yy42;
|
|
} else {
|
|
if (yych != '>') goto yy17;
|
|
}
|
|
}
|
|
YYDEBUG(44, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(45, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2074 "Zend/zend_language_scanner.l"
|
|
{
|
|
HANDLE_NEWLINES(yytext, yyleng);
|
|
Z_STRVAL_P(zendlval) = yytext; /* no copying - intentional */
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_OPEN_TAG;
|
|
}
|
|
#line 1797 "Zend/zend_language_scanner.c"
|
|
yy46:
|
|
YYDEBUG(46, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy47;
|
|
if (yych != 'h') goto yy17;
|
|
yy47:
|
|
YYDEBUG(47, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy48;
|
|
if (yych != 'p') goto yy17;
|
|
yy48:
|
|
YYDEBUG(48, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '"') goto yy42;
|
|
goto yy17;
|
|
yy49:
|
|
YYDEBUG(49, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy42;
|
|
if (yych == 'p') goto yy42;
|
|
goto yy17;
|
|
yy50:
|
|
YYDEBUG(50, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(51, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2083 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (CG(asp_tags)) {
|
|
Z_STRVAL_P(zendlval) = yytext; /* no copying - intentional */
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_OPEN_TAG_WITH_ECHO;
|
|
} else {
|
|
Z_STRVAL_P(zendlval) = (char *) estrndup(yytext, yyleng);
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
return T_INLINE_HTML;
|
|
}
|
|
}
|
|
#line 1839 "Zend/zend_language_scanner.c"
|
|
yy52:
|
|
YYDEBUG(52, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(53, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2099 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (CG(short_tags)) {
|
|
Z_STRVAL_P(zendlval) = yytext; /* no copying - intentional */
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_OPEN_TAG_WITH_ECHO;
|
|
} else {
|
|
Z_STRVAL_P(zendlval) = (char *) estrndup(yytext, yyleng);
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
return T_INLINE_HTML;
|
|
}
|
|
}
|
|
#line 1860 "Zend/zend_language_scanner.c"
|
|
yy54:
|
|
YYDEBUG(54, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy55;
|
|
if (yych != 'h') goto yy17;
|
|
yy55:
|
|
YYDEBUG(55, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy56;
|
|
if (yych != 'p') goto yy17;
|
|
yy56:
|
|
YYDEBUG(56, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '\f') {
|
|
if (yych <= 0x08) goto yy17;
|
|
if (yych >= '\v') goto yy17;
|
|
} else {
|
|
if (yych <= '\r') goto yy59;
|
|
if (yych != ' ') goto yy17;
|
|
}
|
|
yy57:
|
|
YYDEBUG(57, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy58:
|
|
YYDEBUG(58, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2131 "Zend/zend_language_scanner.l"
|
|
{
|
|
Z_STRVAL_P(zendlval) = yytext; /* no copying - intentional */
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
HANDLE_NEWLINE(yytext[yyleng-1]);
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_OPEN_TAG;
|
|
}
|
|
#line 1896 "Zend/zend_language_scanner.c"
|
|
yy59:
|
|
YYDEBUG(59, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '\n') goto yy57;
|
|
goto yy58;
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_BACKQUOTE:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
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, 32, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 16, 16, 16, 16, 16, 16,
|
|
16, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 16, 0, 16, 16, 144,
|
|
0, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 64, 16, 16, 16, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
};
|
|
YYDEBUG(60, *YYCURSOR);
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy65;
|
|
}
|
|
if (yych <= '[') goto yy62;
|
|
if (yych <= '\\') goto yy68;
|
|
if (yych <= 'z') goto yy69;
|
|
goto yy63;
|
|
yy62:
|
|
YYDEBUG(62, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy75;
|
|
}
|
|
if (yych <= '^') {
|
|
if (yych <= 'Z') {
|
|
if (yych <= '@') goto yy65;
|
|
goto yy81;
|
|
} else {
|
|
if (yych == '\\') goto yy74;
|
|
goto yy65;
|
|
}
|
|
} else {
|
|
if (yych <= 'z') {
|
|
if (yych == '`') goto yy78;
|
|
goto yy81;
|
|
} else {
|
|
if (yych <= '{') goto yy84;
|
|
if (yych <= '~') goto yy65;
|
|
goto yy81;
|
|
}
|
|
}
|
|
yy63:
|
|
YYDEBUG(63, *YYCURSOR);
|
|
yyaccept = 0;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yybm[0+yych] & 64) {
|
|
goto yy79;
|
|
}
|
|
if (yych == '$') goto yy64;
|
|
if (yych == '`') goto yy78;
|
|
goto yy66;
|
|
yy64:
|
|
YYDEBUG(64, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2567 "Zend/zend_language_scanner.l"
|
|
{
|
|
Z_LVAL_P(zendlval) = (long) '{';
|
|
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
|
|
return T_CURLY_OPEN;
|
|
}
|
|
#line 1993 "Zend/zend_language_scanner.c"
|
|
yy65:
|
|
YYDEBUG(65, *YYCURSOR);
|
|
yyaccept = 1;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy66:
|
|
YYDEBUG(66, *YYCURSOR);
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy65;
|
|
}
|
|
if (yych <= '[') goto yy73;
|
|
if (yych <= '\\') goto yy68;
|
|
if (yych >= '{') goto yy71;
|
|
yy67:
|
|
YYDEBUG(67, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2601 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (CG(literal_type) == IS_UNICODE) {
|
|
return zend_scan_unicode_escape_string(zendlval, yytext, yyleng, 0x60 /*'`'*/, T_ENCAPSED_AND_WHITESPACE TSRMLS_CC);
|
|
} else {
|
|
zend_scan_binary_escape_string(zendlval, yytext, yyleng, '`' TSRMLS_CC);
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
}
|
|
}
|
|
#line 2020 "Zend/zend_language_scanner.c"
|
|
yy68:
|
|
YYDEBUG(68, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
goto yy65;
|
|
yy69:
|
|
YYDEBUG(69, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(70, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2762 "Zend/zend_language_scanner.l"
|
|
{
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return '`';
|
|
}
|
|
#line 2037 "Zend/zend_language_scanner.c"
|
|
yy71:
|
|
YYDEBUG(71, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy65;
|
|
}
|
|
if (yych <= '[') goto yy72;
|
|
if (yych <= '\\') goto yy68;
|
|
if (yych <= 'z') goto yy78;
|
|
goto yy79;
|
|
yy72:
|
|
YYDEBUG(72, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
if (yyaccept <= 1) {
|
|
if (yyaccept <= 0) {
|
|
goto yy64;
|
|
} else {
|
|
goto yy67;
|
|
}
|
|
} else {
|
|
if (yyaccept <= 2) {
|
|
goto yy77;
|
|
} else {
|
|
goto yy83;
|
|
}
|
|
}
|
|
yy73:
|
|
YYDEBUG(73, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy75;
|
|
}
|
|
if (yych <= '^') {
|
|
if (yych <= 'Z') {
|
|
if (yych <= '@') goto yy65;
|
|
goto yy72;
|
|
} else {
|
|
if (yych != '\\') goto yy65;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych <= '_') goto yy72;
|
|
goto yy78;
|
|
} else {
|
|
if (yych <= '{') goto yy72;
|
|
if (yych <= '~') goto yy65;
|
|
goto yy72;
|
|
}
|
|
}
|
|
yy74:
|
|
YYDEBUG(74, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
goto yy65;
|
|
yy75:
|
|
YYDEBUG(75, *YYCURSOR);
|
|
yyaccept = 2;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(76, *YYCURSOR);
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy75;
|
|
}
|
|
if (yych <= '^') {
|
|
if (yych <= 'Z') {
|
|
if (yych <= '@') goto yy65;
|
|
} else {
|
|
if (yych == '\\') goto yy74;
|
|
goto yy65;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych >= '`') goto yy78;
|
|
} else {
|
|
if (yych <= '{') goto yy77;
|
|
if (yych <= '~') goto yy65;
|
|
}
|
|
}
|
|
yy77:
|
|
YYDEBUG(77, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2610 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 1);
|
|
|
|
if (CG(literal_type) == IS_UNICODE) {
|
|
return zend_scan_unicode_escape_string(zendlval, yytext, yyleng, 0x60 /*'`'*/, T_ENCAPSED_AND_WHITESPACE TSRMLS_CC);
|
|
} else {
|
|
zend_scan_binary_escape_string(zendlval, yytext, yyleng, '`' TSRMLS_CC);
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
}
|
|
}
|
|
#line 2136 "Zend/zend_language_scanner.c"
|
|
yy78:
|
|
YYDEBUG(78, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy77;
|
|
yy79:
|
|
YYDEBUG(79, *YYCURSOR);
|
|
yyaccept = 2;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(80, *YYCURSOR);
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy65;
|
|
}
|
|
if (yych <= '[') goto yy77;
|
|
if (yych <= '\\') goto yy68;
|
|
if (yych <= 'z') goto yy78;
|
|
goto yy79;
|
|
yy81:
|
|
YYDEBUG(81, *YYCURSOR);
|
|
yyaccept = 3;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(82, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy81;
|
|
}
|
|
if (yych == '-') goto yy86;
|
|
if (yych == '[') goto yy87;
|
|
yy83:
|
|
YYDEBUG(83, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2228 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (!zend_copy_scanner_string(zendlval, (yytext+1), (yyleng-1), UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
if (UG(unicode) && !zend_check_and_normalize_identifier(zendlval)) {
|
|
return 0;
|
|
}
|
|
return T_VARIABLE;
|
|
}
|
|
#line 2180 "Zend/zend_language_scanner.c"
|
|
yy84:
|
|
YYDEBUG(84, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(85, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1839 "Zend/zend_language_scanner.l"
|
|
{
|
|
yy_push_state(ST_LOOKING_FOR_VARNAME TSRMLS_CC);
|
|
return T_DOLLAR_OPEN_CURLY_BRACES;
|
|
}
|
|
#line 2191 "Zend/zend_language_scanner.c"
|
|
yy86:
|
|
YYDEBUG(86, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '>') goto yy89;
|
|
goto yy72;
|
|
yy87:
|
|
YYDEBUG(87, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(88, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2215 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 1);
|
|
yy_push_state(ST_VAR_OFFSET TSRMLS_CC);
|
|
|
|
if (!zend_copy_scanner_string(zendlval, (yytext+1), (yyleng-1), UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
if (UG(unicode) && !zend_check_and_normalize_identifier(zendlval)) {
|
|
return 0;
|
|
}
|
|
return T_VARIABLE;
|
|
}
|
|
#line 2215 "Zend/zend_language_scanner.c"
|
|
yy89:
|
|
YYDEBUG(89, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy72;
|
|
if (yych <= 'Z') goto yy90;
|
|
if (yych <= '^') goto yy72;
|
|
} else {
|
|
if (yych <= '`') goto yy72;
|
|
if (yych <= 'z') goto yy90;
|
|
if (yych <= '~') goto yy72;
|
|
}
|
|
yy90:
|
|
YYDEBUG(90, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(91, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2200 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 3);
|
|
yy_push_state(ST_LOOKING_FOR_PROPERTY TSRMLS_CC);
|
|
|
|
if (!zend_copy_scanner_string(zendlval, (yytext+1), (yyleng-1), UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
if (UG(unicode) && !zend_check_and_normalize_identifier(zendlval)) {
|
|
return 0;
|
|
}
|
|
return T_VARIABLE;
|
|
}
|
|
#line 2246 "Zend/zend_language_scanner.c"
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_COMMENT:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 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, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
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(92, *YYCURSOR);
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy94;
|
|
}
|
|
goto yy97;
|
|
yy94:
|
|
YYDEBUG(94, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(95, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy94;
|
|
}
|
|
YYDEBUG(96, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2335 "Zend/zend_language_scanner.l"
|
|
{
|
|
yymore();
|
|
}
|
|
#line 2307 "Zend/zend_language_scanner.c"
|
|
yy97:
|
|
YYDEBUG(97, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '/') goto yy99;
|
|
YYDEBUG(98, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2358 "Zend/zend_language_scanner.l"
|
|
{
|
|
yymore();
|
|
}
|
|
#line 2318 "Zend/zend_language_scanner.c"
|
|
yy99:
|
|
YYDEBUG(99, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(100, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2352 "Zend/zend_language_scanner.l"
|
|
{
|
|
HANDLE_NEWLINES(yytext, yyleng);
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_COMMENT;
|
|
}
|
|
#line 2330 "Zend/zend_language_scanner.c"
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_DOC_COMMENT:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 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, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
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(101, *YYCURSOR);
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy103;
|
|
}
|
|
goto yy106;
|
|
yy103:
|
|
YYDEBUG(103, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(104, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy103;
|
|
}
|
|
YYDEBUG(105, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2335 "Zend/zend_language_scanner.l"
|
|
{
|
|
yymore();
|
|
}
|
|
#line 2391 "Zend/zend_language_scanner.c"
|
|
yy106:
|
|
YYDEBUG(106, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '/') goto yy108;
|
|
YYDEBUG(107, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2358 "Zend/zend_language_scanner.l"
|
|
{
|
|
yymore();
|
|
}
|
|
#line 2402 "Zend/zend_language_scanner.c"
|
|
yy108:
|
|
YYDEBUG(108, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(109, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2339 "Zend/zend_language_scanner.l"
|
|
{
|
|
zval temp;
|
|
|
|
HANDLE_NEWLINES(yytext, yyleng);
|
|
if (!zend_copy_scanner_string(&temp, yytext, yyleng, UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
CG(doc_comment) = temp.value.uni.val;
|
|
CG(doc_comment_len) = temp.value.uni.len;
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_DOC_COMMENT;
|
|
}
|
|
#line 2421 "Zend/zend_language_scanner.c"
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_DOUBLE_QUOTES:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
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, 0, 16, 32, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 16, 16, 16, 16, 16, 16,
|
|
16, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 16, 0, 16, 16, 144,
|
|
16, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 64, 16, 16, 16, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
144, 144, 144, 144, 144, 144, 144, 144,
|
|
};
|
|
YYDEBUG(110, *YYCURSOR);
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy115;
|
|
}
|
|
if (yych <= '#') goto yy119;
|
|
if (yych <= '$') goto yy112;
|
|
if (yych <= 'z') goto yy118;
|
|
goto yy113;
|
|
yy112:
|
|
YYDEBUG(112, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy125;
|
|
}
|
|
if (yych <= '\\') {
|
|
if (yych <= '@') {
|
|
if (yych == '"') goto yy128;
|
|
goto yy115;
|
|
} else {
|
|
if (yych <= 'Z') goto yy131;
|
|
if (yych <= '[') goto yy115;
|
|
goto yy124;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych == '_') goto yy131;
|
|
goto yy115;
|
|
} else {
|
|
if (yych <= 'z') goto yy131;
|
|
if (yych <= '{') goto yy134;
|
|
if (yych <= '~') goto yy115;
|
|
goto yy131;
|
|
}
|
|
}
|
|
yy113:
|
|
YYDEBUG(113, *YYCURSOR);
|
|
yyaccept = 0;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yybm[0+yych] & 64) {
|
|
goto yy129;
|
|
}
|
|
if (yych == '"') goto yy128;
|
|
if (yych != '$') goto yy116;
|
|
yy114:
|
|
YYDEBUG(114, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2567 "Zend/zend_language_scanner.l"
|
|
{
|
|
Z_LVAL_P(zendlval) = (long) '{';
|
|
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
|
|
return T_CURLY_OPEN;
|
|
}
|
|
#line 2514 "Zend/zend_language_scanner.c"
|
|
yy115:
|
|
YYDEBUG(115, *YYCURSOR);
|
|
yyaccept = 1;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy116:
|
|
YYDEBUG(116, *YYCURSOR);
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy115;
|
|
}
|
|
if (yych <= '#') goto yy117;
|
|
if (yych <= '$') goto yy123;
|
|
if (yych <= 'z') goto yy118;
|
|
goto yy121;
|
|
yy117:
|
|
YYDEBUG(117, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2574 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (CG(literal_type) == IS_UNICODE) {
|
|
return zend_scan_unicode_escape_string(zendlval, yytext, yyleng, 0x22 /*'"'*/, T_ENCAPSED_AND_WHITESPACE TSRMLS_CC);
|
|
} else {
|
|
zend_scan_binary_escape_string(zendlval, yytext, yyleng, '"' TSRMLS_CC);
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
}
|
|
}
|
|
#line 2542 "Zend/zend_language_scanner.c"
|
|
yy118:
|
|
YYDEBUG(118, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
goto yy115;
|
|
yy119:
|
|
YYDEBUG(119, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(120, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2756 "Zend/zend_language_scanner.l"
|
|
{
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return '"';
|
|
}
|
|
#line 2559 "Zend/zend_language_scanner.c"
|
|
yy121:
|
|
YYDEBUG(121, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy115;
|
|
}
|
|
if (yych <= '#') goto yy128;
|
|
if (yych <= '$') goto yy122;
|
|
if (yych <= 'z') goto yy118;
|
|
goto yy129;
|
|
yy122:
|
|
YYDEBUG(122, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
if (yyaccept <= 1) {
|
|
if (yyaccept <= 0) {
|
|
goto yy114;
|
|
} else {
|
|
goto yy117;
|
|
}
|
|
} else {
|
|
if (yyaccept <= 2) {
|
|
goto yy127;
|
|
} else {
|
|
goto yy133;
|
|
}
|
|
}
|
|
yy123:
|
|
YYDEBUG(123, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy125;
|
|
}
|
|
if (yych <= '\\') {
|
|
if (yych <= '@') {
|
|
if (yych == '"') goto yy128;
|
|
goto yy115;
|
|
} else {
|
|
if (yych <= 'Z') goto yy122;
|
|
if (yych <= '[') goto yy115;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych == '_') goto yy122;
|
|
goto yy115;
|
|
} else {
|
|
if (yych <= '{') goto yy122;
|
|
if (yych <= '~') goto yy115;
|
|
goto yy122;
|
|
}
|
|
}
|
|
yy124:
|
|
YYDEBUG(124, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
goto yy115;
|
|
yy125:
|
|
YYDEBUG(125, *YYCURSOR);
|
|
yyaccept = 2;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(126, *YYCURSOR);
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy125;
|
|
}
|
|
if (yych <= '\\') {
|
|
if (yych <= '@') {
|
|
if (yych == '"') goto yy128;
|
|
goto yy115;
|
|
} else {
|
|
if (yych <= 'Z') goto yy127;
|
|
if (yych <= '[') goto yy115;
|
|
goto yy124;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych != '_') goto yy115;
|
|
} else {
|
|
if (yych <= '{') goto yy127;
|
|
if (yych <= '~') goto yy115;
|
|
}
|
|
}
|
|
yy127:
|
|
YYDEBUG(127, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2589 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 1);
|
|
|
|
if (CG(literal_type) == IS_UNICODE) {
|
|
return zend_scan_unicode_escape_string(zendlval, yytext, yyleng, 0x22 /*'"'*/, T_ENCAPSED_AND_WHITESPACE TSRMLS_CC);
|
|
} else {
|
|
zend_scan_binary_escape_string(zendlval, yytext, yyleng, '"' TSRMLS_CC);
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
}
|
|
}
|
|
#line 2661 "Zend/zend_language_scanner.c"
|
|
yy128:
|
|
YYDEBUG(128, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy127;
|
|
yy129:
|
|
YYDEBUG(129, *YYCURSOR);
|
|
yyaccept = 2;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(130, *YYCURSOR);
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy115;
|
|
}
|
|
if (yych <= '#') goto yy128;
|
|
if (yych <= '$') goto yy127;
|
|
if (yych <= 'z') goto yy118;
|
|
goto yy129;
|
|
yy131:
|
|
YYDEBUG(131, *YYCURSOR);
|
|
yyaccept = 3;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(132, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy131;
|
|
}
|
|
if (yych == '-') goto yy136;
|
|
if (yych == '[') goto yy137;
|
|
yy133:
|
|
YYDEBUG(133, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2228 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (!zend_copy_scanner_string(zendlval, (yytext+1), (yyleng-1), UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
if (UG(unicode) && !zend_check_and_normalize_identifier(zendlval)) {
|
|
return 0;
|
|
}
|
|
return T_VARIABLE;
|
|
}
|
|
#line 2705 "Zend/zend_language_scanner.c"
|
|
yy134:
|
|
YYDEBUG(134, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(135, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1839 "Zend/zend_language_scanner.l"
|
|
{
|
|
yy_push_state(ST_LOOKING_FOR_VARNAME TSRMLS_CC);
|
|
return T_DOLLAR_OPEN_CURLY_BRACES;
|
|
}
|
|
#line 2716 "Zend/zend_language_scanner.c"
|
|
yy136:
|
|
YYDEBUG(136, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '>') goto yy139;
|
|
goto yy122;
|
|
yy137:
|
|
YYDEBUG(137, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(138, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2215 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 1);
|
|
yy_push_state(ST_VAR_OFFSET TSRMLS_CC);
|
|
|
|
if (!zend_copy_scanner_string(zendlval, (yytext+1), (yyleng-1), UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
if (UG(unicode) && !zend_check_and_normalize_identifier(zendlval)) {
|
|
return 0;
|
|
}
|
|
return T_VARIABLE;
|
|
}
|
|
#line 2740 "Zend/zend_language_scanner.c"
|
|
yy139:
|
|
YYDEBUG(139, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy122;
|
|
if (yych <= 'Z') goto yy140;
|
|
if (yych <= '^') goto yy122;
|
|
} else {
|
|
if (yych <= '`') goto yy122;
|
|
if (yych <= 'z') goto yy140;
|
|
if (yych <= '~') goto yy122;
|
|
}
|
|
yy140:
|
|
YYDEBUG(140, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(141, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2200 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 3);
|
|
yy_push_state(ST_LOOKING_FOR_PROPERTY TSRMLS_CC);
|
|
|
|
if (!zend_copy_scanner_string(zendlval, (yytext+1), (yyleng-1), UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
if (UG(unicode) && !zend_check_and_normalize_identifier(zendlval)) {
|
|
return 0;
|
|
}
|
|
return T_VARIABLE;
|
|
}
|
|
#line 2771 "Zend/zend_language_scanner.c"
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_END_HEREDOC:
|
|
YYDEBUG(142, *YYCURSOR);
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(144, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(145, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2556 "Zend/zend_language_scanner.l"
|
|
{
|
|
SCNG(yy_text) = Z_STRVAL_P(zendlval) = CG(heredoc);
|
|
SCNG(yy_leng) = Z_STRLEN_P(zendlval) = CG(heredoc_len);
|
|
CG(heredoc) = NULL;
|
|
CG(heredoc_len) = 0;
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_END_HEREDOC;
|
|
}
|
|
#line 2791 "Zend/zend_language_scanner.c"
|
|
/* *********************************** */
|
|
yyc_ST_END_NOWDOC:
|
|
YYDEBUG(146, *YYCURSOR);
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(148, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(149, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2745 "Zend/zend_language_scanner.l"
|
|
{
|
|
SCNG(yy_text) = Z_STRVAL_P(zendlval) = CG(heredoc);
|
|
SCNG(yy_leng) = Z_STRLEN_P(zendlval) = CG(heredoc_len);
|
|
CG(heredoc) = NULL;
|
|
CG(heredoc_len) = 0;
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_END_NOWDOC;
|
|
}
|
|
#line 2810 "Zend/zend_language_scanner.c"
|
|
/* *********************************** */
|
|
yyc_ST_HEREDOC:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 16, 4, 4, 32, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 64, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
12, 12, 12, 12, 12, 12, 12, 12,
|
|
12, 12, 4, 4, 4, 4, 4, 4,
|
|
4, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 4, 0, 4, 4, 8,
|
|
4, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 128, 4, 4, 4, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8,
|
|
};
|
|
YYDEBUG(150, *YYCURSOR);
|
|
YYFILL(2);
|
|
yych = *(YYMARKER = YYCURSOR);
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy156;
|
|
}
|
|
if (yych <= '[') {
|
|
if (yych <= '\f') goto yy161;
|
|
if (yych <= '\r') goto yy163;
|
|
if (yych <= '@') goto yy153;
|
|
goto yy158;
|
|
} else {
|
|
if (yych <= '\\') goto yy160;
|
|
if (yych == '{') goto yy154;
|
|
goto yy158;
|
|
}
|
|
yy152:
|
|
YYDEBUG(152, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2629 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (CG(literal_type) == IS_UNICODE) {
|
|
return zend_scan_unicode_escape_string(zendlval, yytext, yyleng, 0, T_ENCAPSED_AND_WHITESPACE TSRMLS_CC);
|
|
} else {
|
|
zend_scan_binary_escape_string(zendlval, yytext, yyleng, 0 TSRMLS_CC);
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
}
|
|
}
|
|
#line 2876 "Zend/zend_language_scanner.c"
|
|
yy153:
|
|
YYDEBUG(153, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '\\') {
|
|
if (yych <= '@') {
|
|
if (yych == '$') goto yy198;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= 'Z') goto yy202;
|
|
if (yych <= '[') goto yy157;
|
|
goto yy191;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych == '_') goto yy202;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= 'z') goto yy202;
|
|
if (yych <= '{') goto yy205;
|
|
if (yych <= '~') goto yy157;
|
|
goto yy202;
|
|
}
|
|
}
|
|
yy154:
|
|
YYDEBUG(154, *YYCURSOR);
|
|
yyaccept = 1;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych <= '$') {
|
|
if (yych == '\r') goto yy163;
|
|
if (yych <= '#') goto yy156;
|
|
} else {
|
|
if (yych <= '\\') {
|
|
if (yych <= '[') goto yy156;
|
|
goto yy160;
|
|
} else {
|
|
if (yych == '{') goto yy200;
|
|
goto yy156;
|
|
}
|
|
}
|
|
yy155:
|
|
YYDEBUG(155, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2567 "Zend/zend_language_scanner.l"
|
|
{
|
|
Z_LVAL_P(zendlval) = (long) '{';
|
|
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
|
|
return T_CURLY_OPEN;
|
|
}
|
|
#line 2928 "Zend/zend_language_scanner.c"
|
|
yy156:
|
|
YYDEBUG(156, *YYCURSOR);
|
|
yyaccept = 0;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy157:
|
|
YYDEBUG(157, *YYCURSOR);
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy156;
|
|
}
|
|
if (yych <= '[') {
|
|
if (yych <= '\f') goto yy161;
|
|
if (yych <= '\r') goto yy163;
|
|
if (yych <= '@') goto yy197;
|
|
} else {
|
|
if (yych <= '\\') goto yy160;
|
|
if (yych == '{') goto yy196;
|
|
}
|
|
yy158:
|
|
YYDEBUG(158, *YYCURSOR);
|
|
yyaccept = 0;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(159, *YYCURSOR);
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych <= '@') {
|
|
if (yych <= '$') {
|
|
if (yych == '\r') goto yy163;
|
|
if (yych <= '#') goto yy156;
|
|
goto yy190;
|
|
} else {
|
|
if (yych <= '9') {
|
|
if (yych <= '/') goto yy156;
|
|
goto yy158;
|
|
} else {
|
|
if (yych == ';') goto yy188;
|
|
goto yy156;
|
|
}
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= '[') {
|
|
if (yych <= 'Z') goto yy158;
|
|
goto yy156;
|
|
} else {
|
|
if (yych <= '\\') goto yy160;
|
|
if (yych <= '^') goto yy156;
|
|
goto yy158;
|
|
}
|
|
} else {
|
|
if (yych <= 'z') {
|
|
if (yych <= '`') goto yy156;
|
|
goto yy158;
|
|
} else {
|
|
if (yych <= '{') goto yy189;
|
|
if (yych <= '~') goto yy156;
|
|
goto yy158;
|
|
}
|
|
}
|
|
}
|
|
yy160:
|
|
YYDEBUG(160, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych == '\r') goto yy163;
|
|
goto yy156;
|
|
yy161:
|
|
YYDEBUG(161, *YYCURSOR);
|
|
yyaccept = 0;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(162, *YYCURSOR);
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy156;
|
|
}
|
|
if (yych <= '[') {
|
|
if (yych <= '\f') goto yy161;
|
|
if (yych <= '\r') goto yy163;
|
|
if (yych <= '@') goto yy169;
|
|
goto yy165;
|
|
} else {
|
|
if (yych <= '\\') goto yy170;
|
|
if (yych == '{') goto yy167;
|
|
goto yy165;
|
|
}
|
|
yy163:
|
|
YYDEBUG(163, *YYCURSOR);
|
|
yyaccept = 0;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(164, *YYCURSOR);
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy156;
|
|
}
|
|
if (yych <= '[') {
|
|
if (yych <= '\f') goto yy161;
|
|
if (yych <= '\r') goto yy163;
|
|
if (yych <= '@') goto yy169;
|
|
} else {
|
|
if (yych <= '\\') goto yy170;
|
|
if (yych == '{') goto yy167;
|
|
}
|
|
yy165:
|
|
YYDEBUG(165, *YYCURSOR);
|
|
yyaccept = 0;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(166, *YYCURSOR);
|
|
if (yych <= ';') {
|
|
if (yych <= '#') {
|
|
if (yych <= '\n') {
|
|
if (yych <= '\t') goto yy156;
|
|
goto yy181;
|
|
} else {
|
|
if (yych == '\r') goto yy181;
|
|
goto yy156;
|
|
}
|
|
} else {
|
|
if (yych <= '/') {
|
|
if (yych <= '$') goto yy180;
|
|
goto yy156;
|
|
} else {
|
|
if (yych <= '9') goto yy165;
|
|
if (yych <= ':') goto yy156;
|
|
goto yy177;
|
|
}
|
|
}
|
|
} else {
|
|
if (yych <= '^') {
|
|
if (yych <= 'Z') {
|
|
if (yych <= '@') goto yy156;
|
|
goto yy165;
|
|
} else {
|
|
if (yych == '\\') goto yy178;
|
|
goto yy156;
|
|
}
|
|
} else {
|
|
if (yych <= 'z') {
|
|
if (yych == '`') goto yy156;
|
|
goto yy165;
|
|
} else {
|
|
if (yych <= '{') goto yy179;
|
|
if (yych <= '~') goto yy156;
|
|
goto yy165;
|
|
}
|
|
}
|
|
}
|
|
yy167:
|
|
YYDEBUG(167, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych <= '$') {
|
|
if (yych == '\r') goto yy163;
|
|
if (yych <= '#') goto yy156;
|
|
} else {
|
|
if (yych <= '\\') {
|
|
if (yych <= '[') goto yy156;
|
|
goto yy170;
|
|
} else {
|
|
if (yych == '{') goto yy175;
|
|
goto yy156;
|
|
}
|
|
}
|
|
yy168:
|
|
YYDEBUG(168, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
if (yyaccept <= 1) {
|
|
if (yyaccept <= 0) {
|
|
goto yy152;
|
|
} else {
|
|
goto yy155;
|
|
}
|
|
} else {
|
|
if (yyaccept <= 2) {
|
|
goto yy174;
|
|
} else {
|
|
goto yy204;
|
|
}
|
|
}
|
|
yy169:
|
|
YYDEBUG(169, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy156;
|
|
}
|
|
if (yych <= '@') {
|
|
if (yych <= '\f') goto yy161;
|
|
if (yych <= '\r') goto yy163;
|
|
goto yy172;
|
|
} else {
|
|
if (yych == '\\') goto yy171;
|
|
goto yy168;
|
|
}
|
|
yy170:
|
|
YYDEBUG(170, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych == '\r') goto yy163;
|
|
goto yy156;
|
|
yy171:
|
|
YYDEBUG(171, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych == '\r') goto yy163;
|
|
goto yy156;
|
|
yy172:
|
|
YYDEBUG(172, *YYCURSOR);
|
|
yyaccept = 2;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(173, *YYCURSOR);
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy156;
|
|
}
|
|
if (yych <= '@') {
|
|
if (yych <= '\f') goto yy161;
|
|
if (yych <= '\r') goto yy163;
|
|
goto yy172;
|
|
} else {
|
|
if (yych == '\\') goto yy171;
|
|
}
|
|
yy174:
|
|
YYDEBUG(174, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2638 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 1);
|
|
|
|
if (CG(literal_type) == IS_UNICODE) {
|
|
return zend_scan_unicode_escape_string(zendlval, yytext, yyleng, 0, T_ENCAPSED_AND_WHITESPACE TSRMLS_CC);
|
|
} else {
|
|
zend_scan_binary_escape_string(zendlval, yytext, yyleng, 0 TSRMLS_CC);
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
}
|
|
}
|
|
#line 3190 "Zend/zend_language_scanner.c"
|
|
yy175:
|
|
YYDEBUG(175, *YYCURSOR);
|
|
yyaccept = 2;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(176, *YYCURSOR);
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych <= '$') {
|
|
if (yych == '\r') goto yy163;
|
|
if (yych <= '#') goto yy156;
|
|
goto yy174;
|
|
} else {
|
|
if (yych <= '\\') {
|
|
if (yych <= '[') goto yy156;
|
|
goto yy170;
|
|
} else {
|
|
if (yych == '{') goto yy175;
|
|
goto yy156;
|
|
}
|
|
}
|
|
yy177:
|
|
YYDEBUG(177, *YYCURSOR);
|
|
yyaccept = 0;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yych <= '#') {
|
|
if (yych <= '\n') {
|
|
if (yych <= '\t') goto yy156;
|
|
goto yy181;
|
|
} else {
|
|
if (yych == '\r') goto yy181;
|
|
goto yy156;
|
|
}
|
|
} else {
|
|
if (yych <= '\\') {
|
|
if (yych <= '$') goto yy180;
|
|
if (yych <= '[') goto yy156;
|
|
} else {
|
|
if (yych == '{') goto yy179;
|
|
goto yy156;
|
|
}
|
|
}
|
|
yy178:
|
|
YYDEBUG(178, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych == '\r') goto yy163;
|
|
goto yy156;
|
|
yy179:
|
|
YYDEBUG(179, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych <= '$') {
|
|
if (yych == '\r') goto yy163;
|
|
if (yych <= '#') goto yy156;
|
|
goto yy168;
|
|
} else {
|
|
if (yych <= '\\') {
|
|
if (yych <= '[') goto yy156;
|
|
goto yy178;
|
|
} else {
|
|
if (yych == '{') goto yy186;
|
|
goto yy156;
|
|
}
|
|
}
|
|
yy180:
|
|
YYDEBUG(180, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy156;
|
|
}
|
|
if (yych <= '@') {
|
|
if (yych <= '\f') goto yy161;
|
|
if (yych <= '\r') goto yy163;
|
|
goto yy183;
|
|
} else {
|
|
if (yych == '\\') goto yy185;
|
|
goto yy168;
|
|
}
|
|
yy181:
|
|
YYDEBUG(181, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(182, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2511 "Zend/zend_language_scanner.l"
|
|
{
|
|
char *end = yytext + yyleng - 1;
|
|
|
|
if (end[-1] == ';') {
|
|
end--;
|
|
yyleng--;
|
|
}
|
|
|
|
if (yyleng > CG(heredoc_len) && !memcmp(end - CG(heredoc_len), CG(heredoc), CG(heredoc_len))) {
|
|
int len = yyleng - CG(heredoc_len) - 2; /* 2 for newline before and after label */
|
|
|
|
/* May have matched fooLABEL; make sure there's a newline before it */
|
|
if (yytext[len] != '\n') {
|
|
if (yytext[len] != '\r') {
|
|
yyless(yyleng - 1);
|
|
yymore();
|
|
}
|
|
} else if (len > 0 && yytext[len - 1] == '\r') {
|
|
len--; /* Windows newline */
|
|
}
|
|
|
|
/* Go back before last label char, to match in ST_END_HEREDOC state */
|
|
yyless(yyleng - 2);
|
|
|
|
/* Subtract the remaining label length. yyleng must include newline
|
|
* before label, for zend_highlight/strip, tokenizer, etc. */
|
|
yyleng -= CG(heredoc_len) - 1;
|
|
|
|
CG(increment_lineno) = 1; /* For newline before label */
|
|
BEGIN(ST_END_HEREDOC);
|
|
|
|
if (CG(literal_type) == IS_UNICODE) {
|
|
return zend_scan_unicode_escape_string(zendlval, yytext, len, 0, T_ENCAPSED_AND_WHITESPACE TSRMLS_CC);
|
|
} else {
|
|
zend_scan_binary_escape_string(zendlval, yytext, len, 0 TSRMLS_CC);
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
}
|
|
} else {
|
|
/* Go back to end of label, so the next match works correctly in case of
|
|
* a variable or another label at the beginning of the next line */
|
|
yyless(yyleng - 1);
|
|
yymore();
|
|
}
|
|
}
|
|
#line 3334 "Zend/zend_language_scanner.c"
|
|
yy183:
|
|
YYDEBUG(183, *YYCURSOR);
|
|
yyaccept = 2;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(184, *YYCURSOR);
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy156;
|
|
}
|
|
if (yych <= '@') {
|
|
if (yych <= '\f') goto yy161;
|
|
if (yych <= '\r') goto yy163;
|
|
goto yy183;
|
|
} else {
|
|
if (yych != '\\') goto yy174;
|
|
}
|
|
yy185:
|
|
YYDEBUG(185, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych == '\r') goto yy163;
|
|
goto yy156;
|
|
yy186:
|
|
YYDEBUG(186, *YYCURSOR);
|
|
yyaccept = 2;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(187, *YYCURSOR);
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych <= '$') {
|
|
if (yych == '\r') goto yy163;
|
|
if (yych <= '#') goto yy156;
|
|
goto yy174;
|
|
} else {
|
|
if (yych <= '\\') {
|
|
if (yych <= '[') goto yy156;
|
|
goto yy178;
|
|
} else {
|
|
if (yych == '{') goto yy186;
|
|
goto yy156;
|
|
}
|
|
}
|
|
yy188:
|
|
YYDEBUG(188, *YYCURSOR);
|
|
yyaccept = 0;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy156;
|
|
}
|
|
if (yych <= '[') {
|
|
if (yych <= '\f') goto yy161;
|
|
if (yych <= '\r') goto yy163;
|
|
if (yych <= '@') goto yy190;
|
|
goto yy158;
|
|
} else {
|
|
if (yych <= '\\') goto yy160;
|
|
if (yych != '{') goto yy158;
|
|
}
|
|
yy189:
|
|
YYDEBUG(189, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych <= '$') {
|
|
if (yych == '\r') goto yy163;
|
|
if (yych <= '#') goto yy156;
|
|
goto yy168;
|
|
} else {
|
|
if (yych <= '\\') {
|
|
if (yych <= '[') goto yy156;
|
|
goto yy160;
|
|
} else {
|
|
if (yych == '{') goto yy194;
|
|
goto yy156;
|
|
}
|
|
}
|
|
yy190:
|
|
YYDEBUG(190, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy156;
|
|
}
|
|
if (yych <= '@') {
|
|
if (yych <= '\f') goto yy161;
|
|
if (yych <= '\r') goto yy163;
|
|
goto yy192;
|
|
} else {
|
|
if (yych != '\\') goto yy168;
|
|
}
|
|
yy191:
|
|
YYDEBUG(191, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych == '\r') goto yy163;
|
|
goto yy156;
|
|
yy192:
|
|
YYDEBUG(192, *YYCURSOR);
|
|
yyaccept = 2;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(193, *YYCURSOR);
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy156;
|
|
}
|
|
if (yych <= '@') {
|
|
if (yych <= '\f') goto yy161;
|
|
if (yych <= '\r') goto yy163;
|
|
goto yy192;
|
|
} else {
|
|
if (yych == '\\') goto yy191;
|
|
goto yy174;
|
|
}
|
|
yy194:
|
|
YYDEBUG(194, *YYCURSOR);
|
|
yyaccept = 2;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(195, *YYCURSOR);
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych <= '$') {
|
|
if (yych == '\r') goto yy163;
|
|
if (yych <= '#') goto yy156;
|
|
goto yy174;
|
|
} else {
|
|
if (yych <= '\\') {
|
|
if (yych <= '[') goto yy156;
|
|
goto yy160;
|
|
} else {
|
|
if (yych == '{') goto yy194;
|
|
goto yy156;
|
|
}
|
|
}
|
|
yy196:
|
|
YYDEBUG(196, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych <= '$') {
|
|
if (yych == '\r') goto yy163;
|
|
if (yych <= '#') goto yy156;
|
|
goto yy168;
|
|
} else {
|
|
if (yych <= '\\') {
|
|
if (yych <= '[') goto yy156;
|
|
goto yy160;
|
|
} else {
|
|
if (yych == '{') goto yy200;
|
|
goto yy156;
|
|
}
|
|
}
|
|
yy197:
|
|
YYDEBUG(197, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy156;
|
|
}
|
|
if (yych <= '@') {
|
|
if (yych <= '\f') goto yy161;
|
|
if (yych <= '\r') goto yy163;
|
|
} else {
|
|
if (yych == '\\') goto yy191;
|
|
goto yy168;
|
|
}
|
|
yy198:
|
|
YYDEBUG(198, *YYCURSOR);
|
|
yyaccept = 2;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(199, *YYCURSOR);
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy156;
|
|
}
|
|
if (yych <= '@') {
|
|
if (yych <= '\f') goto yy161;
|
|
if (yych <= '\r') goto yy163;
|
|
goto yy198;
|
|
} else {
|
|
if (yych == '\\') goto yy191;
|
|
goto yy174;
|
|
}
|
|
yy200:
|
|
YYDEBUG(200, *YYCURSOR);
|
|
yyaccept = 2;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(201, *YYCURSOR);
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy161;
|
|
}
|
|
if (yych <= '$') {
|
|
if (yych == '\r') goto yy163;
|
|
if (yych <= '#') goto yy156;
|
|
goto yy174;
|
|
} else {
|
|
if (yych <= '\\') {
|
|
if (yych <= '[') goto yy156;
|
|
goto yy160;
|
|
} else {
|
|
if (yych == '{') goto yy200;
|
|
goto yy156;
|
|
}
|
|
}
|
|
yy202:
|
|
YYDEBUG(202, *YYCURSOR);
|
|
yyaccept = 3;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(203, *YYCURSOR);
|
|
if (yych <= 'Z') {
|
|
if (yych <= '/') {
|
|
if (yych == '-') goto yy207;
|
|
} else {
|
|
if (yych <= '9') goto yy202;
|
|
if (yych >= 'A') goto yy202;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= '[') goto yy208;
|
|
if (yych >= '_') goto yy202;
|
|
} else {
|
|
if (yych <= '`') goto yy204;
|
|
if (yych <= 'z') goto yy202;
|
|
if (yych >= 0x7F) goto yy202;
|
|
}
|
|
}
|
|
yy204:
|
|
YYDEBUG(204, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2228 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (!zend_copy_scanner_string(zendlval, (yytext+1), (yyleng-1), UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
if (UG(unicode) && !zend_check_and_normalize_identifier(zendlval)) {
|
|
return 0;
|
|
}
|
|
return T_VARIABLE;
|
|
}
|
|
#line 3604 "Zend/zend_language_scanner.c"
|
|
yy205:
|
|
YYDEBUG(205, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(206, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1839 "Zend/zend_language_scanner.l"
|
|
{
|
|
yy_push_state(ST_LOOKING_FOR_VARNAME TSRMLS_CC);
|
|
return T_DOLLAR_OPEN_CURLY_BRACES;
|
|
}
|
|
#line 3615 "Zend/zend_language_scanner.c"
|
|
yy207:
|
|
YYDEBUG(207, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '>') goto yy210;
|
|
goto yy168;
|
|
yy208:
|
|
YYDEBUG(208, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(209, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2215 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 1);
|
|
yy_push_state(ST_VAR_OFFSET TSRMLS_CC);
|
|
|
|
if (!zend_copy_scanner_string(zendlval, (yytext+1), (yyleng-1), UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
if (UG(unicode) && !zend_check_and_normalize_identifier(zendlval)) {
|
|
return 0;
|
|
}
|
|
return T_VARIABLE;
|
|
}
|
|
#line 3639 "Zend/zend_language_scanner.c"
|
|
yy210:
|
|
YYDEBUG(210, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy168;
|
|
if (yych <= 'Z') goto yy211;
|
|
if (yych <= '^') goto yy168;
|
|
} else {
|
|
if (yych <= '`') goto yy168;
|
|
if (yych <= 'z') goto yy211;
|
|
if (yych <= '~') goto yy168;
|
|
}
|
|
yy211:
|
|
YYDEBUG(211, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(212, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2200 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 3);
|
|
yy_push_state(ST_LOOKING_FOR_PROPERTY TSRMLS_CC);
|
|
|
|
if (!zend_copy_scanner_string(zendlval, (yytext+1), (yyleng-1), UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
if (UG(unicode) && !zend_check_and_normalize_identifier(zendlval)) {
|
|
return 0;
|
|
}
|
|
return T_VARIABLE;
|
|
}
|
|
#line 3670 "Zend/zend_language_scanner.c"
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_IN_SCRIPTING:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
/* table 1 .. 8: 0 */
|
|
2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 194, 66, 2, 2, 66, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2,
|
|
194, 2, 0, 2, 4, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2,
|
|
58, 58, 58, 58, 58, 58, 58, 58,
|
|
58, 58, 2, 2, 2, 2, 2, 2,
|
|
2, 42, 42, 42, 42, 42, 42, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 2, 0, 2, 2, 10,
|
|
2, 42, 42, 42, 42, 42, 42, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 1, 2, 2, 2, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 10, 10,
|
|
/* table 9 .. 9: 256 */
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 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,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 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, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
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(213, *YYCURSOR);
|
|
YYFILL(16);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(-1, yych);
|
|
switch (yych) {
|
|
case 0x00:
|
|
case 0x01:
|
|
case 0x02:
|
|
case 0x03:
|
|
case 0x04:
|
|
case 0x05:
|
|
case 0x06:
|
|
case 0x07:
|
|
case 0x08:
|
|
case '\v':
|
|
case '\f':
|
|
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 '\\': goto yy273;
|
|
case '\t':
|
|
case '\n':
|
|
case '\r':
|
|
case ' ': goto yy231;
|
|
case '!': goto yy242;
|
|
case '"': goto yy267;
|
|
case '#': goto yy265;
|
|
case '$': goto yy254;
|
|
case '%': goto yy248;
|
|
case '&': goto yy249;
|
|
case '\'': goto yy269;
|
|
case '(': goto yy236;
|
|
case ')':
|
|
case ',':
|
|
case ';':
|
|
case '@':
|
|
case '[':
|
|
case ']':
|
|
case '~': goto yy255;
|
|
case '*': goto yy245;
|
|
case '+': goto yy241;
|
|
case '-': goto yy229;
|
|
case '.': goto yy247;
|
|
case '/': goto yy246;
|
|
case '0': goto yy261;
|
|
case '1':
|
|
case '2':
|
|
case '3':
|
|
case '4':
|
|
case '5':
|
|
case '6':
|
|
case '7':
|
|
case '8':
|
|
case '9': goto yy263;
|
|
case ':': goto yy233;
|
|
case '<': goto yy243;
|
|
case '=': goto yy239;
|
|
case '>': goto yy244;
|
|
case '?': goto yy256;
|
|
case 'A':
|
|
case 'a': goto yy224;
|
|
case 'B':
|
|
case 'b': goto yy226;
|
|
case 'C':
|
|
case 'c': goto yy219;
|
|
case 'D':
|
|
case 'd': goto yy217;
|
|
case 'E':
|
|
case 'e': goto yy215;
|
|
case 'F':
|
|
case 'f': goto yy218;
|
|
case 'G':
|
|
case 'g': goto yy227;
|
|
case 'I':
|
|
case 'i': goto yy222;
|
|
case 'L':
|
|
case 'l': goto yy240;
|
|
case 'N':
|
|
case 'n': goto yy234;
|
|
case 'O':
|
|
case 'o': goto yy252;
|
|
case 'P':
|
|
case 'p': goto yy228;
|
|
case 'R':
|
|
case 'r': goto yy220;
|
|
case 'S':
|
|
case 's': goto yy225;
|
|
case 'T':
|
|
case 't': goto yy221;
|
|
case 'U':
|
|
case 'u': goto yy237;
|
|
case 'V':
|
|
case 'v': goto yy235;
|
|
case 'W':
|
|
case 'w': goto yy223;
|
|
case 'X':
|
|
case 'x': goto yy253;
|
|
case '^': goto yy251;
|
|
case '_': goto yy238;
|
|
case '`': goto yy271;
|
|
case '{': goto yy257;
|
|
case '|': goto yy250;
|
|
case '}': goto yy259;
|
|
default: goto yy264;
|
|
}
|
|
yy215:
|
|
YYDEBUG(215, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(-1, yych);
|
|
switch ((yych = *YYCURSOR)) {
|
|
case 'C':
|
|
case 'c': goto yy844;
|
|
case 'L':
|
|
case 'l': goto yy845;
|
|
case 'M':
|
|
case 'm': goto yy846;
|
|
case 'N':
|
|
case 'n': goto yy847;
|
|
case 'V':
|
|
case 'v': goto yy848;
|
|
case 'X':
|
|
case 'x': goto yy849;
|
|
default: goto yy291;
|
|
}
|
|
yy216:
|
|
YYDEBUG(216, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2256 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (!zend_copy_scanner_string(zendlval, yytext, yyleng, UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
if (UG(unicode) && !zend_check_and_normalize_identifier(zendlval)) {
|
|
return 0;
|
|
}
|
|
return T_STRING;
|
|
}
|
|
#line 3895 "Zend/zend_language_scanner.c"
|
|
yy217:
|
|
YYDEBUG(217, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'O') {
|
|
if (yych <= 'H') {
|
|
if (yych == 'E') goto yy826;
|
|
goto yy291;
|
|
} else {
|
|
if (yych <= 'I') goto yy827;
|
|
if (yych <= 'N') goto yy291;
|
|
goto yy828;
|
|
}
|
|
} else {
|
|
if (yych <= 'h') {
|
|
if (yych == 'e') goto yy826;
|
|
goto yy291;
|
|
} else {
|
|
if (yych <= 'i') goto yy827;
|
|
if (yych == 'o') goto yy828;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy218:
|
|
YYDEBUG(218, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'U') {
|
|
if (yych <= 'N') {
|
|
if (yych == 'I') goto yy805;
|
|
goto yy291;
|
|
} else {
|
|
if (yych <= 'O') goto yy806;
|
|
if (yych <= 'T') goto yy291;
|
|
goto yy807;
|
|
}
|
|
} else {
|
|
if (yych <= 'n') {
|
|
if (yych == 'i') goto yy805;
|
|
goto yy291;
|
|
} else {
|
|
if (yych <= 'o') goto yy806;
|
|
if (yych == 'u') goto yy807;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy219:
|
|
YYDEBUG(219, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'O') {
|
|
if (yych <= 'K') {
|
|
if (yych == 'A') goto yy777;
|
|
goto yy291;
|
|
} else {
|
|
if (yych <= 'L') goto yy778;
|
|
if (yych <= 'N') goto yy291;
|
|
goto yy779;
|
|
}
|
|
} else {
|
|
if (yych <= 'k') {
|
|
if (yych == 'a') goto yy777;
|
|
goto yy291;
|
|
} else {
|
|
if (yych <= 'l') goto yy778;
|
|
if (yych == 'o') goto yy779;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy220:
|
|
YYDEBUG(220, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy759;
|
|
if (yych == 'e') goto yy759;
|
|
goto yy291;
|
|
yy221:
|
|
YYDEBUG(221, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'R') {
|
|
if (yych == 'H') goto yy751;
|
|
if (yych <= 'Q') goto yy291;
|
|
goto yy752;
|
|
} else {
|
|
if (yych <= 'h') {
|
|
if (yych <= 'g') goto yy291;
|
|
goto yy751;
|
|
} else {
|
|
if (yych == 'r') goto yy752;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy222:
|
|
YYDEBUG(222, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'S') {
|
|
if (yych <= 'L') {
|
|
if (yych == 'F') goto yy704;
|
|
goto yy291;
|
|
} else {
|
|
if (yych <= 'M') goto yy706;
|
|
if (yych <= 'N') goto yy707;
|
|
if (yych <= 'R') goto yy291;
|
|
goto yy708;
|
|
}
|
|
} else {
|
|
if (yych <= 'm') {
|
|
if (yych == 'f') goto yy704;
|
|
if (yych <= 'l') goto yy291;
|
|
goto yy706;
|
|
} else {
|
|
if (yych <= 'n') goto yy707;
|
|
if (yych == 's') goto yy708;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy223:
|
|
YYDEBUG(223, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy699;
|
|
if (yych == 'h') goto yy699;
|
|
goto yy291;
|
|
yy224:
|
|
YYDEBUG(224, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'S') {
|
|
if (yych <= 'M') {
|
|
if (yych == 'B') goto yy681;
|
|
goto yy291;
|
|
} else {
|
|
if (yych <= 'N') goto yy682;
|
|
if (yych <= 'Q') goto yy291;
|
|
if (yych <= 'R') goto yy683;
|
|
goto yy684;
|
|
}
|
|
} else {
|
|
if (yych <= 'n') {
|
|
if (yych == 'b') goto yy681;
|
|
if (yych <= 'm') goto yy291;
|
|
goto yy682;
|
|
} else {
|
|
if (yych <= 'q') goto yy291;
|
|
if (yych <= 'r') goto yy683;
|
|
if (yych <= 's') goto yy684;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy225:
|
|
YYDEBUG(225, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'W') {
|
|
if (yych == 'T') goto yy669;
|
|
if (yych <= 'V') goto yy291;
|
|
goto yy670;
|
|
} else {
|
|
if (yych <= 't') {
|
|
if (yych <= 's') goto yy291;
|
|
goto yy669;
|
|
} else {
|
|
if (yych == 'w') goto yy670;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy226:
|
|
YYDEBUG(226, *YYCURSOR);
|
|
yyaccept = 0;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= 'Q') {
|
|
if (yych <= '/') {
|
|
if (yych <= '"') {
|
|
if (yych <= '!') goto yy216;
|
|
goto yy635;
|
|
} else {
|
|
if (yych == '\'') goto yy637;
|
|
goto yy216;
|
|
}
|
|
} else {
|
|
if (yych <= ';') {
|
|
if (yych <= '9') goto yy290;
|
|
goto yy216;
|
|
} else {
|
|
if (yych <= '<') goto yy634;
|
|
if (yych <= '@') goto yy216;
|
|
goto yy290;
|
|
}
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych <= 'Z') {
|
|
if (yych <= 'R') goto yy639;
|
|
goto yy290;
|
|
} else {
|
|
if (yych == '_') goto yy290;
|
|
goto yy216;
|
|
}
|
|
} else {
|
|
if (yych <= 'r') {
|
|
if (yych <= 'q') goto yy290;
|
|
goto yy639;
|
|
} else {
|
|
if (yych <= 'z') goto yy290;
|
|
if (yych <= '~') goto yy216;
|
|
goto yy290;
|
|
}
|
|
}
|
|
}
|
|
yy227:
|
|
YYDEBUG(227, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'O') {
|
|
if (yych == 'L') goto yy624;
|
|
if (yych <= 'N') goto yy291;
|
|
goto yy625;
|
|
} else {
|
|
if (yych <= 'l') {
|
|
if (yych <= 'k') goto yy291;
|
|
goto yy624;
|
|
} else {
|
|
if (yych == 'o') goto yy625;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy228:
|
|
YYDEBUG(228, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'U') {
|
|
if (yych == 'R') goto yy600;
|
|
if (yych <= 'T') goto yy291;
|
|
goto yy601;
|
|
} else {
|
|
if (yych <= 'r') {
|
|
if (yych <= 'q') goto yy291;
|
|
goto yy600;
|
|
} else {
|
|
if (yych == 'u') goto yy601;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy229:
|
|
YYDEBUG(229, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '<') {
|
|
if (yych == '-') goto yy596;
|
|
} else {
|
|
if (yych <= '=') goto yy594;
|
|
if (yych <= '>') goto yy598;
|
|
}
|
|
yy230:
|
|
YYDEBUG(230, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1828 "Zend/zend_language_scanner.l"
|
|
{
|
|
return yytext[0];
|
|
}
|
|
#line 4146 "Zend/zend_language_scanner.c"
|
|
yy231:
|
|
YYDEBUG(231, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yych = *YYCURSOR;
|
|
goto yy593;
|
|
yy232:
|
|
YYDEBUG(232, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1559 "Zend/zend_language_scanner.l"
|
|
{
|
|
Z_STRVAL_P(zendlval) = yytext; /* no copying - intentional */
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
HANDLE_NEWLINES(yytext, yyleng);
|
|
return T_WHITESPACE;
|
|
}
|
|
#line 4163 "Zend/zend_language_scanner.c"
|
|
yy233:
|
|
YYDEBUG(233, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == ':') goto yy590;
|
|
goto yy230;
|
|
yy234:
|
|
YYDEBUG(234, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'E') {
|
|
if (yych == 'A') goto yy578;
|
|
if (yych <= 'D') goto yy291;
|
|
goto yy579;
|
|
} else {
|
|
if (yych <= 'a') {
|
|
if (yych <= '`') goto yy291;
|
|
goto yy578;
|
|
} else {
|
|
if (yych == 'e') goto yy579;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy235:
|
|
YYDEBUG(235, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy575;
|
|
if (yych == 'a') goto yy575;
|
|
goto yy291;
|
|
yy236:
|
|
YYDEBUG(236, *YYCURSOR);
|
|
yyaccept = 1;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= 'S') {
|
|
if (yych <= 'D') {
|
|
if (yych <= ' ') {
|
|
if (yych == '\t') goto yy488;
|
|
if (yych <= 0x1F) goto yy230;
|
|
goto yy488;
|
|
} else {
|
|
if (yych <= '@') goto yy230;
|
|
if (yych == 'C') goto yy230;
|
|
goto yy488;
|
|
}
|
|
} else {
|
|
if (yych <= 'I') {
|
|
if (yych == 'F') goto yy488;
|
|
if (yych <= 'H') goto yy230;
|
|
goto yy488;
|
|
} else {
|
|
if (yych == 'O') goto yy488;
|
|
if (yych <= 'Q') goto yy230;
|
|
goto yy488;
|
|
}
|
|
}
|
|
} else {
|
|
if (yych <= 'f') {
|
|
if (yych <= 'b') {
|
|
if (yych == 'U') goto yy488;
|
|
if (yych <= '`') goto yy230;
|
|
goto yy488;
|
|
} else {
|
|
if (yych == 'd') goto yy488;
|
|
if (yych <= 'e') goto yy230;
|
|
goto yy488;
|
|
}
|
|
} else {
|
|
if (yych <= 'o') {
|
|
if (yych == 'i') goto yy488;
|
|
if (yych <= 'n') goto yy230;
|
|
goto yy488;
|
|
} else {
|
|
if (yych <= 's') {
|
|
if (yych <= 'q') goto yy230;
|
|
goto yy488;
|
|
} else {
|
|
if (yych == 'u') goto yy488;
|
|
goto yy230;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
yy237:
|
|
YYDEBUG(237, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'S') {
|
|
if (yych == 'N') goto yy479;
|
|
if (yych <= 'R') goto yy291;
|
|
goto yy480;
|
|
} else {
|
|
if (yych <= 'n') {
|
|
if (yych <= 'm') goto yy291;
|
|
goto yy479;
|
|
} else {
|
|
if (yych == 's') goto yy480;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy238:
|
|
YYDEBUG(238, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '_') goto yy405;
|
|
goto yy291;
|
|
yy239:
|
|
YYDEBUG(239, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '<') goto yy230;
|
|
if (yych <= '=') goto yy399;
|
|
if (yych <= '>') goto yy401;
|
|
goto yy230;
|
|
yy240:
|
|
YYDEBUG(240, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy395;
|
|
if (yych == 'i') goto yy395;
|
|
goto yy291;
|
|
yy241:
|
|
YYDEBUG(241, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '+') goto yy393;
|
|
if (yych == '=') goto yy391;
|
|
goto yy230;
|
|
yy242:
|
|
YYDEBUG(242, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '=') goto yy388;
|
|
goto yy230;
|
|
yy243:
|
|
YYDEBUG(243, *YYCURSOR);
|
|
yyaccept = 1;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= ';') {
|
|
if (yych == '/') goto yy356;
|
|
goto yy230;
|
|
} else {
|
|
if (yych <= '<') goto yy354;
|
|
if (yych <= '=') goto yy357;
|
|
if (yych <= '>') goto yy359;
|
|
goto yy230;
|
|
}
|
|
yy244:
|
|
YYDEBUG(244, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '<') goto yy230;
|
|
if (yych <= '=') goto yy350;
|
|
if (yych <= '>') goto yy348;
|
|
goto yy230;
|
|
yy245:
|
|
YYDEBUG(245, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '=') goto yy346;
|
|
goto yy230;
|
|
yy246:
|
|
YYDEBUG(246, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '.') {
|
|
if (yych == '*') goto yy337;
|
|
goto yy230;
|
|
} else {
|
|
if (yych <= '/') goto yy339;
|
|
if (yych == '=') goto yy340;
|
|
goto yy230;
|
|
}
|
|
yy247:
|
|
YYDEBUG(247, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '/') goto yy230;
|
|
if (yych <= '9') goto yy333;
|
|
if (yych == '=') goto yy335;
|
|
goto yy230;
|
|
yy248:
|
|
YYDEBUG(248, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '<') goto yy230;
|
|
if (yych <= '=') goto yy329;
|
|
if (yych <= '>') goto yy327;
|
|
goto yy230;
|
|
yy249:
|
|
YYDEBUG(249, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '&') goto yy323;
|
|
if (yych == '=') goto yy325;
|
|
goto yy230;
|
|
yy250:
|
|
YYDEBUG(250, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '=') goto yy321;
|
|
if (yych == '|') goto yy319;
|
|
goto yy230;
|
|
yy251:
|
|
YYDEBUG(251, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '=') goto yy317;
|
|
goto yy230;
|
|
yy252:
|
|
YYDEBUG(252, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy315;
|
|
if (yych == 'r') goto yy315;
|
|
goto yy291;
|
|
yy253:
|
|
YYDEBUG(253, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy312;
|
|
if (yych == 'o') goto yy312;
|
|
goto yy291;
|
|
yy254:
|
|
YYDEBUG(254, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy230;
|
|
if (yych <= 'Z') goto yy309;
|
|
if (yych <= '^') goto yy230;
|
|
goto yy309;
|
|
} else {
|
|
if (yych <= '`') goto yy230;
|
|
if (yych <= 'z') goto yy309;
|
|
if (yych <= '~') goto yy230;
|
|
goto yy309;
|
|
}
|
|
yy255:
|
|
YYDEBUG(255, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy230;
|
|
yy256:
|
|
YYDEBUG(256, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '>') goto yy305;
|
|
goto yy230;
|
|
yy257:
|
|
YYDEBUG(257, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(258, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1833 "Zend/zend_language_scanner.l"
|
|
{
|
|
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
|
|
return '{';
|
|
}
|
|
#line 4401 "Zend/zend_language_scanner.c"
|
|
yy259:
|
|
YYDEBUG(259, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(260, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1845 "Zend/zend_language_scanner.l"
|
|
{
|
|
RESET_DOC_COMMENT();
|
|
if (!zend_stack_is_empty(&SCNG(state_stack))) {
|
|
yy_pop_state(TSRMLS_C);
|
|
}
|
|
return '}';
|
|
}
|
|
#line 4415 "Zend/zend_language_scanner.c"
|
|
yy261:
|
|
YYDEBUG(261, *YYCURSOR);
|
|
yyaccept = 2;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= 'E') {
|
|
if (yych <= '/') {
|
|
if (yych == '.') goto yy292;
|
|
} else {
|
|
if (yych <= '9') goto yy295;
|
|
if (yych >= 'E') goto yy297;
|
|
}
|
|
} else {
|
|
if (yych <= 'd') {
|
|
if (yych == 'X') goto yy301;
|
|
} else {
|
|
if (yych <= 'e') goto yy297;
|
|
if (yych == 'x') goto yy301;
|
|
}
|
|
}
|
|
yy262:
|
|
YYDEBUG(262, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1875 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (yyleng < MAX_LENGTH_OF_LONG - 1) { /* Won't overflow */
|
|
Z_LVAL_P(zendlval) = strtol(yytext, NULL, 0);
|
|
} else {
|
|
errno = 0;
|
|
Z_LVAL_P(zendlval) = strtol(yytext, NULL, 0);
|
|
if (errno == ERANGE) { /* Overflow */
|
|
if (yytext[0] == '0') { /* octal overflow */
|
|
Z_DVAL_P(zendlval) = zend_oct_strtod(yytext, NULL);
|
|
} else {
|
|
Z_DVAL_P(zendlval) = zend_strtod(yytext, NULL);
|
|
}
|
|
Z_TYPE_P(zendlval) = IS_DOUBLE;
|
|
return T_DNUMBER;
|
|
}
|
|
}
|
|
|
|
Z_TYPE_P(zendlval) = IS_LONG;
|
|
return T_LNUMBER;
|
|
}
|
|
#line 4459 "Zend/zend_language_scanner.c"
|
|
yy263:
|
|
YYDEBUG(263, *YYCURSOR);
|
|
yyaccept = 2;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= '9') {
|
|
if (yych == '.') goto yy292;
|
|
if (yych <= '/') goto yy262;
|
|
goto yy295;
|
|
} else {
|
|
if (yych <= 'E') {
|
|
if (yych <= 'D') goto yy262;
|
|
goto yy297;
|
|
} else {
|
|
if (yych == 'e') goto yy297;
|
|
goto yy262;
|
|
}
|
|
}
|
|
yy264:
|
|
YYDEBUG(264, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy291;
|
|
yy265:
|
|
YYDEBUG(265, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy266:
|
|
YYDEBUG(266, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2274 "Zend/zend_language_scanner.l"
|
|
{
|
|
BEGIN(ST_ONE_LINE_COMMENT);
|
|
yymore();
|
|
}
|
|
#line 4492 "Zend/zend_language_scanner.c"
|
|
yy267:
|
|
YYDEBUG(267, *YYCURSOR);
|
|
yyaccept = 3;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
goto yy283;
|
|
yy268:
|
|
YYDEBUG(268, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2419 "Zend/zend_language_scanner.l"
|
|
{
|
|
BEGIN(ST_DOUBLE_QUOTES);
|
|
return '"';
|
|
}
|
|
#line 4506 "Zend/zend_language_scanner.c"
|
|
yy269:
|
|
YYDEBUG(269, *YYCURSOR);
|
|
yyaccept = 4;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
goto yy275;
|
|
yy270:
|
|
YYDEBUG(270, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2768 "Zend/zend_language_scanner.l"
|
|
{
|
|
zend_error(E_COMPILE_WARNING,"Unexpected character in input: '%c' (ASCII=%d) state=%d", yytext[0], yytext[0], YYSTATE);
|
|
goto restart;
|
|
}
|
|
#line 4520 "Zend/zend_language_scanner.c"
|
|
yy271:
|
|
YYDEBUG(271, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(272, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2471 "Zend/zend_language_scanner.l"
|
|
{
|
|
BEGIN(ST_BACKQUOTE);
|
|
return '`';
|
|
}
|
|
#line 4531 "Zend/zend_language_scanner.c"
|
|
yy273:
|
|
YYDEBUG(273, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy270;
|
|
yy274:
|
|
YYDEBUG(274, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy275:
|
|
YYDEBUG(275, *YYCURSOR);
|
|
if (yybm[256+yych] & 128) {
|
|
goto yy274;
|
|
}
|
|
if (yych <= '[') goto yy277;
|
|
YYDEBUG(276, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
goto yy274;
|
|
yy277:
|
|
YYDEBUG(277, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(278, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2403 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (UG(unicode)) {
|
|
return zend_scan_unicode_single_string(zendlval TSRMLS_CC);
|
|
} else {
|
|
zend_scan_binary_single_string(zendlval, yytext+1, yyleng-2 TSRMLS_CC);
|
|
return T_CONSTANT_ENCAPSED_STRING;
|
|
}
|
|
}
|
|
#line 4566 "Zend/zend_language_scanner.c"
|
|
yy279:
|
|
YYDEBUG(279, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(280, *YYCURSOR);
|
|
if (yybm[0+yych] & 2) {
|
|
goto yy282;
|
|
}
|
|
if (yych <= '#') goto yy287;
|
|
if (yych <= '$') goto yy281;
|
|
if (yych <= 'z') goto yy284;
|
|
goto yy279;
|
|
yy281:
|
|
YYDEBUG(281, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
if (yyaccept <= 4) {
|
|
if (yyaccept <= 2) {
|
|
if (yyaccept <= 1) {
|
|
if (yyaccept <= 0) {
|
|
goto yy216;
|
|
} else {
|
|
goto yy230;
|
|
}
|
|
} else {
|
|
goto yy262;
|
|
}
|
|
} else {
|
|
if (yyaccept <= 3) {
|
|
goto yy268;
|
|
} else {
|
|
goto yy270;
|
|
}
|
|
}
|
|
} else {
|
|
if (yyaccept <= 6) {
|
|
if (yyaccept <= 5) {
|
|
goto yy294;
|
|
} else {
|
|
goto yy338;
|
|
}
|
|
} else {
|
|
if (yyaccept <= 7) {
|
|
goto yy355;
|
|
} else {
|
|
goto yy636;
|
|
}
|
|
}
|
|
}
|
|
yy282:
|
|
YYDEBUG(282, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy283:
|
|
YYDEBUG(283, *YYCURSOR);
|
|
if (yybm[0+yych] & 2) {
|
|
goto yy282;
|
|
}
|
|
if (yych <= '#') goto yy287;
|
|
if (yych <= '$') goto yy285;
|
|
if (yych >= '{') goto yy279;
|
|
yy284:
|
|
YYDEBUG(284, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
goto yy282;
|
|
yy285:
|
|
YYDEBUG(285, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(286, *YYCURSOR);
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy285;
|
|
}
|
|
if (yych <= '\\') {
|
|
if (yych <= '@') {
|
|
if (yych != '"') goto yy282;
|
|
} else {
|
|
if (yych <= 'Z') goto yy281;
|
|
if (yych <= '[') goto yy282;
|
|
goto yy289;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych == '_') goto yy281;
|
|
goto yy282;
|
|
} else {
|
|
if (yych <= '{') goto yy281;
|
|
if (yych <= '~') goto yy282;
|
|
goto yy281;
|
|
}
|
|
}
|
|
yy287:
|
|
YYDEBUG(287, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(288, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2387 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (UG(unicode)) {
|
|
return zend_scan_unicode_escape_string(zendlval, yytext+1, yyleng-2, 0x22 /*'"'*/, T_CONSTANT_ENCAPSED_STRING TSRMLS_CC);
|
|
} else {
|
|
zend_scan_binary_escape_string(zendlval, yytext+1, yyleng-2, '"' TSRMLS_CC);
|
|
return T_CONSTANT_ENCAPSED_STRING;
|
|
}
|
|
}
|
|
#line 4676 "Zend/zend_language_scanner.c"
|
|
yy289:
|
|
YYDEBUG(289, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
goto yy282;
|
|
yy290:
|
|
YYDEBUG(290, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy291:
|
|
YYDEBUG(291, *YYCURSOR);
|
|
if (yybm[0+yych] & 8) {
|
|
goto yy290;
|
|
}
|
|
goto yy216;
|
|
yy292:
|
|
YYDEBUG(292, *YYCURSOR);
|
|
yyaccept = 5;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(293, *YYCURSOR);
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy292;
|
|
}
|
|
if (yych == 'E') goto yy297;
|
|
if (yych == 'e') goto yy297;
|
|
yy294:
|
|
YYDEBUG(294, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1936 "Zend/zend_language_scanner.l"
|
|
{
|
|
Z_DVAL_P(zendlval) = zend_strtod(yytext, NULL);
|
|
Z_TYPE_P(zendlval) = IS_DOUBLE;
|
|
return T_DNUMBER;
|
|
}
|
|
#line 4715 "Zend/zend_language_scanner.c"
|
|
yy295:
|
|
YYDEBUG(295, *YYCURSOR);
|
|
yyaccept = 2;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(296, *YYCURSOR);
|
|
if (yych <= '9') {
|
|
if (yych == '.') goto yy292;
|
|
if (yych <= '/') goto yy262;
|
|
goto yy295;
|
|
} else {
|
|
if (yych <= 'E') {
|
|
if (yych <= 'D') goto yy262;
|
|
} else {
|
|
if (yych != 'e') goto yy262;
|
|
}
|
|
}
|
|
yy297:
|
|
YYDEBUG(297, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= ',') {
|
|
if (yych != '+') goto yy281;
|
|
} else {
|
|
if (yych <= '-') goto yy298;
|
|
if (yych <= '/') goto yy281;
|
|
if (yych <= '9') goto yy299;
|
|
goto yy281;
|
|
}
|
|
yy298:
|
|
YYDEBUG(298, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '/') goto yy281;
|
|
if (yych >= ':') goto yy281;
|
|
yy299:
|
|
YYDEBUG(299, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(300, *YYCURSOR);
|
|
if (yych <= '/') goto yy294;
|
|
if (yych <= '9') goto yy299;
|
|
goto yy294;
|
|
yy301:
|
|
YYDEBUG(301, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy302;
|
|
}
|
|
goto yy281;
|
|
yy302:
|
|
YYDEBUG(302, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(303, *YYCURSOR);
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy302;
|
|
}
|
|
YYDEBUG(304, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1896 "Zend/zend_language_scanner.l"
|
|
{
|
|
char *hex = yytext + 2; /* Skip "0x" */
|
|
int len = yyleng - 2;
|
|
|
|
/* Skip any leading 0s */
|
|
while (*hex == '0') {
|
|
hex++;
|
|
len--;
|
|
}
|
|
|
|
if (len < SIZEOF_LONG * 2 || (len == SIZEOF_LONG * 2 && *hex <= '7')) {
|
|
Z_LVAL_P(zendlval) = strtol(hex, NULL, 16);
|
|
Z_TYPE_P(zendlval) = IS_LONG;
|
|
return T_LNUMBER;
|
|
} else {
|
|
Z_DVAL_P(zendlval) = zend_hex_strtod(hex, NULL);
|
|
Z_TYPE_P(zendlval) = IS_DOUBLE;
|
|
return T_DNUMBER;
|
|
}
|
|
}
|
|
#line 4798 "Zend/zend_language_scanner.c"
|
|
yy305:
|
|
YYDEBUG(305, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '\n') goto yy307;
|
|
if (yych == '\r') goto yy308;
|
|
yy306:
|
|
YYDEBUG(306, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2362 "Zend/zend_language_scanner.l"
|
|
{
|
|
Z_STRVAL_P(zendlval) = yytext; /* no copying - intentional */
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
BEGIN(INITIAL);
|
|
return T_CLOSE_TAG; /* implicit ';' at php-end tag */
|
|
}
|
|
#line 4815 "Zend/zend_language_scanner.c"
|
|
yy307:
|
|
YYDEBUG(307, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy306;
|
|
yy308:
|
|
YYDEBUG(308, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\n') goto yy307;
|
|
goto yy306;
|
|
yy309:
|
|
YYDEBUG(309, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(310, *YYCURSOR);
|
|
if (yych <= '^') {
|
|
if (yych <= '9') {
|
|
if (yych >= '0') goto yy309;
|
|
} else {
|
|
if (yych <= '@') goto yy311;
|
|
if (yych <= 'Z') goto yy309;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych <= '_') goto yy309;
|
|
} else {
|
|
if (yych <= 'z') goto yy309;
|
|
if (yych >= 0x7F) goto yy309;
|
|
}
|
|
}
|
|
yy311:
|
|
YYDEBUG(311, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2228 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (!zend_copy_scanner_string(zendlval, (yytext+1), (yyleng-1), UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
if (UG(unicode) && !zend_check_and_normalize_identifier(zendlval)) {
|
|
return 0;
|
|
}
|
|
return T_VARIABLE;
|
|
}
|
|
#line 4859 "Zend/zend_language_scanner.c"
|
|
yy312:
|
|
YYDEBUG(312, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy313;
|
|
if (yych != 'r') goto yy291;
|
|
yy313:
|
|
YYDEBUG(313, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(314, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1816 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_LOGICAL_XOR;
|
|
}
|
|
#line 4877 "Zend/zend_language_scanner.c"
|
|
yy315:
|
|
YYDEBUG(315, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(316, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1808 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_LOGICAL_OR;
|
|
}
|
|
#line 4890 "Zend/zend_language_scanner.c"
|
|
yy317:
|
|
YYDEBUG(317, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(318, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1796 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_XOR_EQUAL;
|
|
}
|
|
#line 4900 "Zend/zend_language_scanner.c"
|
|
yy319:
|
|
YYDEBUG(319, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(320, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1800 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_BOOLEAN_OR;
|
|
}
|
|
#line 4910 "Zend/zend_language_scanner.c"
|
|
yy321:
|
|
YYDEBUG(321, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(322, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1792 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_OR_EQUAL;
|
|
}
|
|
#line 4920 "Zend/zend_language_scanner.c"
|
|
yy323:
|
|
YYDEBUG(323, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(324, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1804 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_BOOLEAN_AND;
|
|
}
|
|
#line 4930 "Zend/zend_language_scanner.c"
|
|
yy325:
|
|
YYDEBUG(325, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(326, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1788 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_AND_EQUAL;
|
|
}
|
|
#line 4940 "Zend/zend_language_scanner.c"
|
|
yy327:
|
|
YYDEBUG(327, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '\n') goto yy331;
|
|
if (yych == '\r') goto yy332;
|
|
yy328:
|
|
YYDEBUG(328, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2371 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (CG(asp_tags)) {
|
|
BEGIN(INITIAL);
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
Z_STRVAL_P(zendlval) = yytext; /* no copying - intentional */
|
|
return T_CLOSE_TAG; /* implicit ';' at php-end tag */
|
|
} else {
|
|
yyless(1);
|
|
return yytext[0];
|
|
}
|
|
}
|
|
#line 4962 "Zend/zend_language_scanner.c"
|
|
yy329:
|
|
YYDEBUG(329, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(330, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1776 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_MOD_EQUAL;
|
|
}
|
|
#line 4972 "Zend/zend_language_scanner.c"
|
|
yy331:
|
|
YYDEBUG(331, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy328;
|
|
yy332:
|
|
YYDEBUG(332, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\n') goto yy331;
|
|
goto yy328;
|
|
yy333:
|
|
YYDEBUG(333, *YYCURSOR);
|
|
yyaccept = 5;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(334, *YYCURSOR);
|
|
if (yych <= 'D') {
|
|
if (yych <= '/') goto yy294;
|
|
if (yych <= '9') goto yy333;
|
|
goto yy294;
|
|
} else {
|
|
if (yych <= 'E') goto yy297;
|
|
if (yych == 'e') goto yy297;
|
|
goto yy294;
|
|
}
|
|
yy335:
|
|
YYDEBUG(335, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(336, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1772 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CONCAT_EQUAL;
|
|
}
|
|
#line 5007 "Zend/zend_language_scanner.c"
|
|
yy337:
|
|
YYDEBUG(337, *YYCURSOR);
|
|
yyaccept = 6;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych == '*') goto yy342;
|
|
yy338:
|
|
YYDEBUG(338, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2329 "Zend/zend_language_scanner.l"
|
|
{
|
|
BEGIN(ST_COMMENT);
|
|
yymore();
|
|
}
|
|
#line 5021 "Zend/zend_language_scanner.c"
|
|
yy339:
|
|
YYDEBUG(339, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy266;
|
|
yy340:
|
|
YYDEBUG(340, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(341, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1768 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DIV_EQUAL;
|
|
}
|
|
#line 5035 "Zend/zend_language_scanner.c"
|
|
yy342:
|
|
YYDEBUG(342, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yybm[0+yych] & 64) {
|
|
goto yy343;
|
|
}
|
|
goto yy281;
|
|
yy343:
|
|
YYDEBUG(343, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(344, *YYCURSOR);
|
|
if (yybm[0+yych] & 64) {
|
|
goto yy343;
|
|
}
|
|
YYDEBUG(345, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2323 "Zend/zend_language_scanner.l"
|
|
{
|
|
RESET_DOC_COMMENT();
|
|
BEGIN(ST_DOC_COMMENT);
|
|
yymore();
|
|
}
|
|
#line 5060 "Zend/zend_language_scanner.c"
|
|
yy346:
|
|
YYDEBUG(346, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(347, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1764 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_MUL_EQUAL;
|
|
}
|
|
#line 5070 "Zend/zend_language_scanner.c"
|
|
yy348:
|
|
YYDEBUG(348, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '=') goto yy352;
|
|
YYDEBUG(349, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1824 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_SR;
|
|
}
|
|
#line 5081 "Zend/zend_language_scanner.c"
|
|
yy350:
|
|
YYDEBUG(350, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(351, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1752 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IS_GREATER_OR_EQUAL;
|
|
}
|
|
#line 5091 "Zend/zend_language_scanner.c"
|
|
yy352:
|
|
YYDEBUG(352, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(353, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1784 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_SR_EQUAL;
|
|
}
|
|
#line 5101 "Zend/zend_language_scanner.c"
|
|
yy354:
|
|
YYDEBUG(354, *YYCURSOR);
|
|
yyaccept = 7;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= ';') goto yy355;
|
|
if (yych <= '<') goto yy370;
|
|
if (yych <= '=') goto yy368;
|
|
yy355:
|
|
YYDEBUG(355, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1820 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_SL;
|
|
}
|
|
#line 5116 "Zend/zend_language_scanner.c"
|
|
yy356:
|
|
YYDEBUG(356, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy361;
|
|
if (yych == 's') goto yy361;
|
|
goto yy281;
|
|
yy357:
|
|
YYDEBUG(357, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(358, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1748 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IS_SMALLER_OR_EQUAL;
|
|
}
|
|
#line 5132 "Zend/zend_language_scanner.c"
|
|
yy359:
|
|
YYDEBUG(359, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy360:
|
|
YYDEBUG(360, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1744 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IS_NOT_EQUAL;
|
|
}
|
|
#line 5143 "Zend/zend_language_scanner.c"
|
|
yy361:
|
|
YYDEBUG(361, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy362;
|
|
if (yych != 'c') goto yy281;
|
|
yy362:
|
|
YYDEBUG(362, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy363;
|
|
if (yych != 'r') goto yy281;
|
|
yy363:
|
|
YYDEBUG(363, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy364;
|
|
if (yych != 'i') goto yy281;
|
|
yy364:
|
|
YYDEBUG(364, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy365;
|
|
if (yych != 'p') goto yy281;
|
|
yy365:
|
|
YYDEBUG(365, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy366;
|
|
if (yych != 't') goto yy281;
|
|
yy366:
|
|
YYDEBUG(366, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(367, *YYCURSOR);
|
|
if (yych <= '\r') {
|
|
if (yych <= 0x08) goto yy281;
|
|
if (yych <= '\n') goto yy366;
|
|
if (yych <= '\f') goto yy281;
|
|
goto yy366;
|
|
} else {
|
|
if (yych <= ' ') {
|
|
if (yych <= 0x1F) goto yy281;
|
|
goto yy366;
|
|
} else {
|
|
if (yych == '>') goto yy305;
|
|
goto yy281;
|
|
}
|
|
}
|
|
yy368:
|
|
YYDEBUG(368, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(369, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1780 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_SL_EQUAL;
|
|
}
|
|
#line 5198 "Zend/zend_language_scanner.c"
|
|
yy370:
|
|
YYDEBUG(370, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(371, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy370;
|
|
}
|
|
if (yych <= 'Z') {
|
|
if (yych <= '&') {
|
|
if (yych == '"') goto yy375;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= '\'') goto yy372;
|
|
if (yych <= '@') goto yy281;
|
|
goto yy373;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych == '_') goto yy373;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= 'z') goto yy373;
|
|
if (yych <= '~') goto yy281;
|
|
goto yy373;
|
|
}
|
|
}
|
|
yy372:
|
|
YYDEBUG(372, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\'') goto yy281;
|
|
if (yych <= '/') goto yy383;
|
|
if (yych <= '9') goto yy281;
|
|
goto yy383;
|
|
yy373:
|
|
YYDEBUG(373, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(374, *YYCURSOR);
|
|
if (yych <= '@') {
|
|
if (yych <= '\f') {
|
|
if (yych == '\n') goto yy379;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= '\r') goto yy381;
|
|
if (yych <= '/') goto yy281;
|
|
if (yych <= '9') goto yy373;
|
|
goto yy281;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= 'Z') goto yy373;
|
|
if (yych <= '^') goto yy281;
|
|
goto yy373;
|
|
} else {
|
|
if (yych <= '`') goto yy281;
|
|
if (yych <= 'z') goto yy373;
|
|
if (yych <= '~') goto yy281;
|
|
goto yy373;
|
|
}
|
|
}
|
|
yy375:
|
|
YYDEBUG(375, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '"') goto yy281;
|
|
if (yych <= '/') goto yy377;
|
|
if (yych <= '9') goto yy281;
|
|
goto yy377;
|
|
yy376:
|
|
YYDEBUG(376, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
yy377:
|
|
YYDEBUG(377, *YYCURSOR);
|
|
if (yych <= 'Z') {
|
|
if (yych <= '/') {
|
|
if (yych != '"') goto yy281;
|
|
} else {
|
|
if (yych <= '9') goto yy376;
|
|
if (yych <= '@') goto yy281;
|
|
goto yy376;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych == '_') goto yy376;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= 'z') goto yy376;
|
|
if (yych <= '~') goto yy281;
|
|
goto yy376;
|
|
}
|
|
}
|
|
YYDEBUG(378, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\n') goto yy379;
|
|
if (yych == '\r') goto yy381;
|
|
goto yy281;
|
|
yy379:
|
|
YYDEBUG(379, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy380:
|
|
YYDEBUG(380, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2450 "Zend/zend_language_scanner.l"
|
|
{
|
|
char *s;
|
|
|
|
CG(zend_lineno)++;
|
|
CG(heredoc_len) = yyleng-3-1-(yytext[yyleng-2]=='\r'?1:0);
|
|
s = yytext+3;
|
|
while ((*s == ' ') || (*s == '\t')) {
|
|
s++;
|
|
CG(heredoc_len)--;
|
|
}
|
|
|
|
if (*s == '"') {
|
|
s++;
|
|
CG(heredoc_len) -= 2;
|
|
}
|
|
CG(heredoc) = estrndup(s, CG(heredoc_len));
|
|
BEGIN(ST_START_HEREDOC);
|
|
return T_START_HEREDOC;
|
|
}
|
|
#line 5325 "Zend/zend_language_scanner.c"
|
|
yy381:
|
|
YYDEBUG(381, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\n') goto yy379;
|
|
goto yy380;
|
|
yy382:
|
|
YYDEBUG(382, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
yy383:
|
|
YYDEBUG(383, *YYCURSOR);
|
|
if (yych <= 'Z') {
|
|
if (yych <= '/') {
|
|
if (yych != '\'') goto yy281;
|
|
} else {
|
|
if (yych <= '9') goto yy382;
|
|
if (yych <= '@') goto yy281;
|
|
goto yy382;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych == '_') goto yy382;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= 'z') goto yy382;
|
|
if (yych <= '~') goto yy281;
|
|
goto yy382;
|
|
}
|
|
}
|
|
YYDEBUG(384, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\n') goto yy385;
|
|
if (yych == '\r') goto yy387;
|
|
goto yy281;
|
|
yy385:
|
|
YYDEBUG(385, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy386:
|
|
YYDEBUG(386, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2652 "Zend/zend_language_scanner.l"
|
|
{
|
|
int bprefix = (yytext[0] != '<') ? 1 : 0;
|
|
char *s;
|
|
CG(zend_lineno)++;
|
|
/* 3 is <<<, 2 is quotes, 1 is newline */
|
|
CG(heredoc_len) = yyleng-bprefix-3-2-1-(yytext[yyleng-2]=='\r'?1:0);
|
|
s = yytext+bprefix+3;
|
|
while ((*s == ' ') || (*s == '\t')) {
|
|
s++;
|
|
CG(heredoc_len)--;
|
|
}
|
|
s++; /* first quote */
|
|
CG(heredoc) = estrndup(s, CG(heredoc_len));
|
|
|
|
CG(literal_type) = bprefix?IS_STRING:ZEND_STR_TYPE;
|
|
BEGIN(ST_START_NOWDOC);
|
|
return T_START_NOWDOC;
|
|
}
|
|
#line 5386 "Zend/zend_language_scanner.c"
|
|
yy387:
|
|
YYDEBUG(387, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\n') goto yy385;
|
|
goto yy386;
|
|
yy388:
|
|
YYDEBUG(388, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '=') goto yy360;
|
|
YYDEBUG(389, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(390, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1736 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IS_NOT_IDENTICAL;
|
|
}
|
|
#line 5404 "Zend/zend_language_scanner.c"
|
|
yy391:
|
|
YYDEBUG(391, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(392, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1756 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_PLUS_EQUAL;
|
|
}
|
|
#line 5414 "Zend/zend_language_scanner.c"
|
|
yy393:
|
|
YYDEBUG(393, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(394, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1724 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_INC;
|
|
}
|
|
#line 5424 "Zend/zend_language_scanner.c"
|
|
yy395:
|
|
YYDEBUG(395, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy396;
|
|
if (yych != 's') goto yy291;
|
|
yy396:
|
|
YYDEBUG(396, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy397;
|
|
if (yych != 't') goto yy291;
|
|
yy397:
|
|
YYDEBUG(397, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(398, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1716 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_LIST;
|
|
}
|
|
#line 5447 "Zend/zend_language_scanner.c"
|
|
yy399:
|
|
YYDEBUG(399, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '=') goto yy403;
|
|
YYDEBUG(400, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1740 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IS_EQUAL;
|
|
}
|
|
#line 5458 "Zend/zend_language_scanner.c"
|
|
yy401:
|
|
YYDEBUG(401, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(402, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1712 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DOUBLE_ARROW;
|
|
}
|
|
#line 5468 "Zend/zend_language_scanner.c"
|
|
yy403:
|
|
YYDEBUG(403, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(404, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1732 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IS_IDENTICAL;
|
|
}
|
|
#line 5478 "Zend/zend_language_scanner.c"
|
|
yy405:
|
|
YYDEBUG(405, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'H') {
|
|
if (yych <= 'D') {
|
|
if (yych <= 'B') goto yy291;
|
|
if (yych <= 'C') goto yy407;
|
|
goto yy411;
|
|
} else {
|
|
if (yych == 'F') goto yy408;
|
|
if (yych <= 'G') goto yy291;
|
|
}
|
|
} else {
|
|
if (yych <= 'M') {
|
|
if (yych <= 'K') goto yy291;
|
|
if (yych <= 'L') goto yy410;
|
|
goto yy409;
|
|
} else {
|
|
if (yych <= 'N') goto yy412;
|
|
if (yych != 'h') goto yy291;
|
|
}
|
|
}
|
|
YYDEBUG(406, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy466;
|
|
if (yych == 'a') goto yy466;
|
|
goto yy291;
|
|
yy407:
|
|
YYDEBUG(407, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy459;
|
|
goto yy291;
|
|
yy408:
|
|
YYDEBUG(408, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy443;
|
|
if (yych == 'U') goto yy444;
|
|
goto yy291;
|
|
yy409:
|
|
YYDEBUG(409, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy435;
|
|
goto yy291;
|
|
yy410:
|
|
YYDEBUG(410, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy429;
|
|
goto yy291;
|
|
yy411:
|
|
YYDEBUG(411, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy424;
|
|
goto yy291;
|
|
yy412:
|
|
YYDEBUG(412, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'A') goto yy291;
|
|
YYDEBUG(413, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'M') goto yy291;
|
|
YYDEBUG(414, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'E') goto yy291;
|
|
YYDEBUG(415, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'S') goto yy291;
|
|
YYDEBUG(416, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'P') goto yy291;
|
|
YYDEBUG(417, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'A') goto yy291;
|
|
YYDEBUG(418, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'C') goto yy291;
|
|
YYDEBUG(419, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'E') goto yy291;
|
|
YYDEBUG(420, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(421, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(422, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(423, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2064 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (CG(current_namespace)) {
|
|
*zendlval = *CG(current_namespace);
|
|
zval_copy_ctor(zendlval);
|
|
} else {
|
|
ZVAL_EMPTY_TEXT(zendlval);
|
|
}
|
|
return T_NS_C;
|
|
}
|
|
#line 5580 "Zend/zend_language_scanner.c"
|
|
yy424:
|
|
YYDEBUG(424, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'R') goto yy291;
|
|
YYDEBUG(425, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(426, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(427, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(428, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2037 "Zend/zend_language_scanner.l"
|
|
{
|
|
char *filename = zend_get_compiled_filename(TSRMLS_C);
|
|
const size_t filename_len = strlen(filename);
|
|
char *dirname;
|
|
|
|
if (!filename) {
|
|
filename = "";
|
|
}
|
|
|
|
dirname = estrndup(filename, filename_len);
|
|
zend_dirname(dirname, filename_len);
|
|
|
|
if (strcmp(dirname, ".") == 0) {
|
|
dirname = erealloc(dirname, MAXPATHLEN);
|
|
#if HAVE_GETCWD
|
|
VCWD_GETCWD(dirname, MAXPATHLEN);
|
|
#elif HAVE_GETWD
|
|
VCWD_GETWD(dirname);
|
|
#endif
|
|
}
|
|
|
|
zendlval->value.str.len = strlen(dirname);
|
|
zendlval->value.str.val = dirname;
|
|
zendlval->type = IS_STRING;
|
|
return T_DIR;
|
|
}
|
|
#line 5625 "Zend/zend_language_scanner.c"
|
|
yy429:
|
|
YYDEBUG(429, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'N') goto yy291;
|
|
YYDEBUG(430, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'E') goto yy291;
|
|
YYDEBUG(431, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(432, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(433, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(434, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2021 "Zend/zend_language_scanner.l"
|
|
{
|
|
Z_LVAL_P(zendlval) = CG(zend_lineno);
|
|
Z_TYPE_P(zendlval) = IS_LONG;
|
|
return T_LINE;
|
|
}
|
|
#line 5652 "Zend/zend_language_scanner.c"
|
|
yy435:
|
|
YYDEBUG(435, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'T') goto yy291;
|
|
YYDEBUG(436, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'H') goto yy291;
|
|
YYDEBUG(437, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'O') goto yy291;
|
|
YYDEBUG(438, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'D') goto yy291;
|
|
YYDEBUG(439, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(440, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(441, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(442, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1972 "Zend/zend_language_scanner.l"
|
|
{
|
|
zstr class_name = CG(active_class_entry) ? CG(active_class_entry)->name : NULL_ZSTR;
|
|
zstr func_name = CG(active_op_array)? CG(active_op_array)->function_name : NULL_ZSTR;
|
|
size_t len = 0;
|
|
|
|
if (UG(unicode)) {
|
|
size_t len1;
|
|
|
|
if (class_name.u) {
|
|
len += len1 = u_strlen(class_name.u);
|
|
len += 2;
|
|
}
|
|
if (func_name.u) {
|
|
len += u_strlen(func_name.u);
|
|
} else {
|
|
func_name.u = EMPTY_STR;
|
|
}
|
|
Z_USTRLEN_P(zendlval) = len;
|
|
Z_USTRVAL_P(zendlval) = eumalloc(len+1);
|
|
if (class_name.u) {
|
|
u_strcpy(Z_USTRVAL_P(zendlval), class_name.u);
|
|
Z_USTRVAL_P(zendlval)[len1] = 0x3a; /* ':' */
|
|
Z_USTRVAL_P(zendlval)[len1+1] = 0x3a; /* ':' */
|
|
Z_USTRVAL_P(zendlval)[len1+2] = 0;
|
|
} else {
|
|
Z_USTRVAL_P(zendlval)[0] = 0;
|
|
}
|
|
u_strcat(Z_USTRVAL_P(zendlval), func_name.u);
|
|
Z_TYPE_P(zendlval) = IS_UNICODE;
|
|
} else {
|
|
if (class_name.s) {
|
|
len += strlen(class_name.s) + 2;
|
|
}
|
|
if (func_name.s) {
|
|
len += strlen(func_name.s);
|
|
}
|
|
|
|
Z_STRVAL_P(zendlval) = emalloc(len+1);
|
|
Z_STRLEN_P(zendlval) = sprintf(Z_STRVAL_P(zendlval), "%s%s%s",
|
|
class_name.s ? class_name.s : "",
|
|
class_name.s && func_name.s ? "::" : "",
|
|
func_name.s ? func_name.s : ""
|
|
);
|
|
Z_STRLEN_P(zendlval) = strlen(Z_STRVAL_P(zendlval));
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
}
|
|
return T_METHOD_C;
|
|
}
|
|
#line 5728 "Zend/zend_language_scanner.c"
|
|
yy443:
|
|
YYDEBUG(443, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy454;
|
|
goto yy291;
|
|
yy444:
|
|
YYDEBUG(444, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'N') goto yy291;
|
|
YYDEBUG(445, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'C') goto yy291;
|
|
YYDEBUG(446, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'T') goto yy291;
|
|
YYDEBUG(447, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'I') goto yy291;
|
|
YYDEBUG(448, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'O') goto yy291;
|
|
YYDEBUG(449, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'N') goto yy291;
|
|
YYDEBUG(450, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(451, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(452, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(453, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1957 "Zend/zend_language_scanner.l"
|
|
{
|
|
zstr func_name = NULL_ZSTR;
|
|
|
|
if (CG(active_op_array)) {
|
|
func_name = CG(active_op_array)->function_name;
|
|
}
|
|
|
|
if (!func_name.v) {
|
|
ZVAL_EMPTY_TEXT(zendlval);
|
|
} else {
|
|
ZVAL_TEXT(zendlval, func_name, 1);
|
|
}
|
|
return T_FUNC_C;
|
|
}
|
|
#line 5781 "Zend/zend_language_scanner.c"
|
|
yy454:
|
|
YYDEBUG(454, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'E') goto yy291;
|
|
YYDEBUG(455, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(456, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(457, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(458, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2027 "Zend/zend_language_scanner.l"
|
|
{
|
|
char *filename = zend_get_compiled_filename(TSRMLS_C);
|
|
|
|
if (!filename) {
|
|
filename = "";
|
|
}
|
|
ZVAL_RT_STRING(zendlval, filename, 1);
|
|
return T_FILE;
|
|
}
|
|
#line 5809 "Zend/zend_language_scanner.c"
|
|
yy459:
|
|
YYDEBUG(459, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'A') goto yy291;
|
|
YYDEBUG(460, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'S') goto yy291;
|
|
YYDEBUG(461, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != 'S') goto yy291;
|
|
YYDEBUG(462, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(463, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(464, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(465, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1942 "Zend/zend_language_scanner.l"
|
|
{
|
|
zstr class_name = NULL_ZSTR;
|
|
|
|
if (CG(active_class_entry)) {
|
|
class_name = CG(active_class_entry)->name;
|
|
}
|
|
|
|
if (!class_name.v) {
|
|
ZVAL_EMPTY_TEXT(zendlval);
|
|
} else {
|
|
ZVAL_TEXT(zendlval, class_name, 1);
|
|
}
|
|
return T_CLASS_C;
|
|
}
|
|
#line 5848 "Zend/zend_language_scanner.c"
|
|
yy466:
|
|
YYDEBUG(466, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy467;
|
|
if (yych != 'l') goto yy291;
|
|
yy467:
|
|
YYDEBUG(467, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy468;
|
|
if (yych != 't') goto yy291;
|
|
yy468:
|
|
YYDEBUG(468, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy291;
|
|
YYDEBUG(469, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy470;
|
|
if (yych != 'c') goto yy291;
|
|
yy470:
|
|
YYDEBUG(470, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy471;
|
|
if (yych != 'o') goto yy291;
|
|
yy471:
|
|
YYDEBUG(471, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'M') goto yy472;
|
|
if (yych != 'm') goto yy291;
|
|
yy472:
|
|
YYDEBUG(472, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy473;
|
|
if (yych != 'p') goto yy291;
|
|
yy473:
|
|
YYDEBUG(473, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy474;
|
|
if (yych != 'i') goto yy291;
|
|
yy474:
|
|
YYDEBUG(474, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy475;
|
|
if (yych != 'l') goto yy291;
|
|
yy475:
|
|
YYDEBUG(475, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy476;
|
|
if (yych != 'e') goto yy291;
|
|
yy476:
|
|
YYDEBUG(476, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy477;
|
|
if (yych != 'r') goto yy291;
|
|
yy477:
|
|
YYDEBUG(477, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(478, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1680 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_HALT_COMPILER;
|
|
}
|
|
#line 5914 "Zend/zend_language_scanner.c"
|
|
yy479:
|
|
YYDEBUG(479, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy483;
|
|
if (yych == 's') goto yy483;
|
|
goto yy291;
|
|
yy480:
|
|
YYDEBUG(480, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy481;
|
|
if (yych != 'e') goto yy291;
|
|
yy481:
|
|
YYDEBUG(481, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(482, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1664 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_USE;
|
|
}
|
|
#line 5938 "Zend/zend_language_scanner.c"
|
|
yy483:
|
|
YYDEBUG(483, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy484;
|
|
if (yych != 'e') goto yy291;
|
|
yy484:
|
|
YYDEBUG(484, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy485;
|
|
if (yych != 't') goto yy291;
|
|
yy485:
|
|
YYDEBUG(485, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(486, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1708 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_UNSET;
|
|
}
|
|
#line 5961 "Zend/zend_language_scanner.c"
|
|
yy487:
|
|
YYDEBUG(487, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(7);
|
|
yych = *YYCURSOR;
|
|
yy488:
|
|
YYDEBUG(488, *YYCURSOR);
|
|
if (yych <= 'S') {
|
|
if (yych <= 'D') {
|
|
if (yych <= ' ') {
|
|
if (yych == '\t') goto yy487;
|
|
if (yych <= 0x1F) goto yy281;
|
|
goto yy487;
|
|
} else {
|
|
if (yych <= 'A') {
|
|
if (yych <= '@') goto yy281;
|
|
goto yy492;
|
|
} else {
|
|
if (yych <= 'B') goto yy490;
|
|
if (yych <= 'C') goto yy281;
|
|
goto yy495;
|
|
}
|
|
}
|
|
} else {
|
|
if (yych <= 'I') {
|
|
if (yych == 'F') goto yy496;
|
|
if (yych <= 'H') goto yy281;
|
|
goto yy497;
|
|
} else {
|
|
if (yych <= 'O') {
|
|
if (yych <= 'N') goto yy281;
|
|
goto yy491;
|
|
} else {
|
|
if (yych <= 'Q') goto yy281;
|
|
if (yych <= 'R') goto yy494;
|
|
goto yy493;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
if (yych <= 'f') {
|
|
if (yych <= 'a') {
|
|
if (yych == 'U') goto yy489;
|
|
if (yych <= '`') goto yy281;
|
|
goto yy492;
|
|
} else {
|
|
if (yych <= 'c') {
|
|
if (yych <= 'b') goto yy490;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= 'd') goto yy495;
|
|
if (yych <= 'e') goto yy281;
|
|
goto yy496;
|
|
}
|
|
}
|
|
} else {
|
|
if (yych <= 'q') {
|
|
if (yych <= 'i') {
|
|
if (yych <= 'h') goto yy281;
|
|
goto yy497;
|
|
} else {
|
|
if (yych == 'o') goto yy491;
|
|
goto yy281;
|
|
}
|
|
} else {
|
|
if (yych <= 's') {
|
|
if (yych <= 'r') goto yy494;
|
|
goto yy493;
|
|
} else {
|
|
if (yych != 'u') goto yy281;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
yy489:
|
|
YYDEBUG(489, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy560;
|
|
if (yych == 'n') goto yy560;
|
|
goto yy281;
|
|
yy490:
|
|
YYDEBUG(490, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'O') {
|
|
if (yych == 'I') goto yy543;
|
|
if (yych <= 'N') goto yy281;
|
|
goto yy544;
|
|
} else {
|
|
if (yych <= 'i') {
|
|
if (yych <= 'h') goto yy281;
|
|
goto yy543;
|
|
} else {
|
|
if (yych == 'o') goto yy544;
|
|
goto yy281;
|
|
}
|
|
}
|
|
yy491:
|
|
YYDEBUG(491, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'B') goto yy535;
|
|
if (yych == 'b') goto yy535;
|
|
goto yy281;
|
|
yy492:
|
|
YYDEBUG(492, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy528;
|
|
if (yych == 'r') goto yy528;
|
|
goto yy281;
|
|
yy493:
|
|
YYDEBUG(493, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy520;
|
|
if (yych == 't') goto yy520;
|
|
goto yy281;
|
|
yy494:
|
|
YYDEBUG(494, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy518;
|
|
if (yych == 'e') goto yy518;
|
|
goto yy281;
|
|
yy495:
|
|
YYDEBUG(495, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy514;
|
|
if (yych == 'o') goto yy514;
|
|
goto yy281;
|
|
yy496:
|
|
YYDEBUG(496, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy507;
|
|
if (yych == 'l') goto yy507;
|
|
goto yy281;
|
|
yy497:
|
|
YYDEBUG(497, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy498;
|
|
if (yych != 'n') goto yy281;
|
|
yy498:
|
|
YYDEBUG(498, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy499;
|
|
if (yych != 't') goto yy281;
|
|
yy499:
|
|
YYDEBUG(499, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy500;
|
|
if (yych != 'e') goto yy502;
|
|
yy500:
|
|
YYDEBUG(500, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'G') goto yy505;
|
|
if (yych == 'g') goto yy505;
|
|
goto yy281;
|
|
yy501:
|
|
YYDEBUG(501, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy502:
|
|
YYDEBUG(502, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy501;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= ' ') goto yy501;
|
|
if (yych != ')') goto yy281;
|
|
}
|
|
YYDEBUG(503, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(504, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1604 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_INT_CAST;
|
|
}
|
|
#line 6137 "Zend/zend_language_scanner.c"
|
|
yy505:
|
|
YYDEBUG(505, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy506;
|
|
if (yych != 'e') goto yy281;
|
|
yy506:
|
|
YYDEBUG(506, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy501;
|
|
if (yych == 'r') goto yy501;
|
|
goto yy281;
|
|
yy507:
|
|
YYDEBUG(507, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy508;
|
|
if (yych != 'o') goto yy281;
|
|
yy508:
|
|
YYDEBUG(508, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy509;
|
|
if (yych != 'a') goto yy281;
|
|
yy509:
|
|
YYDEBUG(509, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy510;
|
|
if (yych != 't') goto yy281;
|
|
yy510:
|
|
YYDEBUG(510, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(511, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy510;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= ' ') goto yy510;
|
|
if (yych != ')') goto yy281;
|
|
}
|
|
YYDEBUG(512, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(513, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1608 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DOUBLE_CAST;
|
|
}
|
|
#line 6185 "Zend/zend_language_scanner.c"
|
|
yy514:
|
|
YYDEBUG(514, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'U') goto yy515;
|
|
if (yych != 'u') goto yy281;
|
|
yy515:
|
|
YYDEBUG(515, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'B') goto yy516;
|
|
if (yych != 'b') goto yy281;
|
|
yy516:
|
|
YYDEBUG(516, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy517;
|
|
if (yych != 'l') goto yy281;
|
|
yy517:
|
|
YYDEBUG(517, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy510;
|
|
if (yych == 'e') goto yy510;
|
|
goto yy281;
|
|
yy518:
|
|
YYDEBUG(518, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy519;
|
|
if (yych != 'a') goto yy281;
|
|
yy519:
|
|
YYDEBUG(519, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy510;
|
|
if (yych == 'l') goto yy510;
|
|
goto yy281;
|
|
yy520:
|
|
YYDEBUG(520, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy521;
|
|
if (yych != 'r') goto yy281;
|
|
yy521:
|
|
YYDEBUG(521, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy522;
|
|
if (yych != 'i') goto yy281;
|
|
yy522:
|
|
YYDEBUG(522, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy523;
|
|
if (yych != 'n') goto yy281;
|
|
yy523:
|
|
YYDEBUG(523, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'G') goto yy524;
|
|
if (yych != 'g') goto yy281;
|
|
yy524:
|
|
YYDEBUG(524, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(525, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy524;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= ' ') goto yy524;
|
|
if (yych != ')') goto yy281;
|
|
}
|
|
YYDEBUG(526, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(527, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1612 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_STRING_CAST;
|
|
}
|
|
#line 6259 "Zend/zend_language_scanner.c"
|
|
yy528:
|
|
YYDEBUG(528, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy529;
|
|
if (yych != 'r') goto yy281;
|
|
yy529:
|
|
YYDEBUG(529, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy530;
|
|
if (yych != 'a') goto yy281;
|
|
yy530:
|
|
YYDEBUG(530, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'Y') goto yy531;
|
|
if (yych != 'y') goto yy281;
|
|
yy531:
|
|
YYDEBUG(531, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(532, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy531;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= ' ') goto yy531;
|
|
if (yych != ')') goto yy281;
|
|
}
|
|
YYDEBUG(533, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(534, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1624 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ARRAY_CAST;
|
|
}
|
|
#line 6296 "Zend/zend_language_scanner.c"
|
|
yy535:
|
|
YYDEBUG(535, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'J') goto yy536;
|
|
if (yych != 'j') goto yy281;
|
|
yy536:
|
|
YYDEBUG(536, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy537;
|
|
if (yych != 'e') goto yy281;
|
|
yy537:
|
|
YYDEBUG(537, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy538;
|
|
if (yych != 'c') goto yy281;
|
|
yy538:
|
|
YYDEBUG(538, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy539;
|
|
if (yych != 't') goto yy281;
|
|
yy539:
|
|
YYDEBUG(539, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(540, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy539;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= ' ') goto yy539;
|
|
if (yych != ')') goto yy281;
|
|
}
|
|
YYDEBUG(541, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(542, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1628 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_OBJECT_CAST;
|
|
}
|
|
#line 6338 "Zend/zend_language_scanner.c"
|
|
yy543:
|
|
YYDEBUG(543, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy553;
|
|
if (yych == 'n') goto yy553;
|
|
goto yy281;
|
|
yy544:
|
|
YYDEBUG(544, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy545;
|
|
if (yych != 'o') goto yy281;
|
|
yy545:
|
|
YYDEBUG(545, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy546;
|
|
if (yych != 'l') goto yy281;
|
|
yy546:
|
|
YYDEBUG(546, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy551;
|
|
if (yych == 'e') goto yy551;
|
|
goto yy548;
|
|
yy547:
|
|
YYDEBUG(547, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy548:
|
|
YYDEBUG(548, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy547;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= ' ') goto yy547;
|
|
if (yych != ')') goto yy281;
|
|
}
|
|
YYDEBUG(549, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(550, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1632 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_BOOL_CAST;
|
|
}
|
|
#line 6383 "Zend/zend_language_scanner.c"
|
|
yy551:
|
|
YYDEBUG(551, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy552;
|
|
if (yych != 'a') goto yy281;
|
|
yy552:
|
|
YYDEBUG(552, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy547;
|
|
if (yych == 'n') goto yy547;
|
|
goto yy281;
|
|
yy553:
|
|
YYDEBUG(553, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy554;
|
|
if (yych != 'a') goto yy281;
|
|
yy554:
|
|
YYDEBUG(554, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy555;
|
|
if (yych != 'r') goto yy281;
|
|
yy555:
|
|
YYDEBUG(555, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'Y') goto yy556;
|
|
if (yych != 'y') goto yy281;
|
|
yy556:
|
|
YYDEBUG(556, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(557, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy556;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= ' ') goto yy556;
|
|
if (yych != ')') goto yy281;
|
|
}
|
|
YYDEBUG(558, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(559, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1620 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_BINARY_CAST;
|
|
}
|
|
#line 6431 "Zend/zend_language_scanner.c"
|
|
yy560:
|
|
YYDEBUG(560, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'S') {
|
|
if (yych == 'I') goto yy562;
|
|
if (yych <= 'R') goto yy281;
|
|
} else {
|
|
if (yych <= 'i') {
|
|
if (yych <= 'h') goto yy281;
|
|
goto yy562;
|
|
} else {
|
|
if (yych != 's') goto yy281;
|
|
}
|
|
}
|
|
YYDEBUG(561, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy570;
|
|
if (yych == 'e') goto yy570;
|
|
goto yy281;
|
|
yy562:
|
|
YYDEBUG(562, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy563;
|
|
if (yych != 'c') goto yy281;
|
|
yy563:
|
|
YYDEBUG(563, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy564;
|
|
if (yych != 'o') goto yy281;
|
|
yy564:
|
|
YYDEBUG(564, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'D') goto yy565;
|
|
if (yych != 'd') goto yy281;
|
|
yy565:
|
|
YYDEBUG(565, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy566;
|
|
if (yych != 'e') goto yy281;
|
|
yy566:
|
|
YYDEBUG(566, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(567, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy566;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= ' ') goto yy566;
|
|
if (yych != ')') goto yy281;
|
|
}
|
|
YYDEBUG(568, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(569, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1616 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_UNICODE_CAST;
|
|
}
|
|
#line 6492 "Zend/zend_language_scanner.c"
|
|
yy570:
|
|
YYDEBUG(570, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy571;
|
|
if (yych != 't') goto yy281;
|
|
yy571:
|
|
YYDEBUG(571, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(572, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy571;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= ' ') goto yy571;
|
|
if (yych != ')') goto yy281;
|
|
}
|
|
YYDEBUG(573, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(574, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1636 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_UNSET_CAST;
|
|
}
|
|
#line 6519 "Zend/zend_language_scanner.c"
|
|
yy575:
|
|
YYDEBUG(575, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy576;
|
|
if (yych != 'r') goto yy291;
|
|
yy576:
|
|
YYDEBUG(576, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(577, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1600 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_VAR;
|
|
}
|
|
#line 6537 "Zend/zend_language_scanner.c"
|
|
yy578:
|
|
YYDEBUG(578, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'M') goto yy582;
|
|
if (yych == 'm') goto yy582;
|
|
goto yy291;
|
|
yy579:
|
|
YYDEBUG(579, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'W') goto yy580;
|
|
if (yych != 'w') goto yy291;
|
|
yy580:
|
|
YYDEBUG(580, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(581, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1592 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_NEW;
|
|
}
|
|
#line 6561 "Zend/zend_language_scanner.c"
|
|
yy582:
|
|
YYDEBUG(582, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy583;
|
|
if (yych != 'e') goto yy291;
|
|
yy583:
|
|
YYDEBUG(583, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy584;
|
|
if (yych != 's') goto yy291;
|
|
yy584:
|
|
YYDEBUG(584, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy585;
|
|
if (yych != 'p') goto yy291;
|
|
yy585:
|
|
YYDEBUG(585, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy586;
|
|
if (yych != 'a') goto yy291;
|
|
yy586:
|
|
YYDEBUG(586, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy587;
|
|
if (yych != 'c') goto yy291;
|
|
yy587:
|
|
YYDEBUG(587, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy588;
|
|
if (yych != 'e') goto yy291;
|
|
yy588:
|
|
YYDEBUG(588, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(589, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1660 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_NAMESPACE;
|
|
}
|
|
#line 6604 "Zend/zend_language_scanner.c"
|
|
yy590:
|
|
YYDEBUG(590, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(591, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1588 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_PAAMAYIM_NEKUDOTAYIM;
|
|
}
|
|
#line 6614 "Zend/zend_language_scanner.c"
|
|
yy592:
|
|
YYDEBUG(592, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy593:
|
|
YYDEBUG(593, *YYCURSOR);
|
|
if (yych <= '\f') {
|
|
if (yych <= 0x08) goto yy232;
|
|
if (yych <= '\n') goto yy592;
|
|
goto yy232;
|
|
} else {
|
|
if (yych <= '\r') goto yy592;
|
|
if (yych == ' ') goto yy592;
|
|
goto yy232;
|
|
}
|
|
yy594:
|
|
YYDEBUG(594, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(595, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1760 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_MINUS_EQUAL;
|
|
}
|
|
#line 6640 "Zend/zend_language_scanner.c"
|
|
yy596:
|
|
YYDEBUG(596, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(597, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1728 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DEC;
|
|
}
|
|
#line 6650 "Zend/zend_language_scanner.c"
|
|
yy598:
|
|
YYDEBUG(598, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(599, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1554 "Zend/zend_language_scanner.l"
|
|
{
|
|
yy_push_state(ST_LOOKING_FOR_PROPERTY TSRMLS_CC);
|
|
return T_OBJECT_OPERATOR;
|
|
}
|
|
#line 6661 "Zend/zend_language_scanner.c"
|
|
yy600:
|
|
YYDEBUG(600, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'O') {
|
|
if (yych == 'I') goto yy607;
|
|
if (yych <= 'N') goto yy291;
|
|
goto yy608;
|
|
} else {
|
|
if (yych <= 'i') {
|
|
if (yych <= 'h') goto yy291;
|
|
goto yy607;
|
|
} else {
|
|
if (yych == 'o') goto yy608;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy601:
|
|
YYDEBUG(601, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'B') goto yy602;
|
|
if (yych != 'b') goto yy291;
|
|
yy602:
|
|
YYDEBUG(602, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy603;
|
|
if (yych != 'l') goto yy291;
|
|
yy603:
|
|
YYDEBUG(603, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy604;
|
|
if (yych != 'i') goto yy291;
|
|
yy604:
|
|
YYDEBUG(604, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy605;
|
|
if (yych != 'c') goto yy291;
|
|
yy605:
|
|
YYDEBUG(605, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(606, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1704 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_PUBLIC;
|
|
}
|
|
#line 6710 "Zend/zend_language_scanner.c"
|
|
yy607:
|
|
YYDEBUG(607, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'V') {
|
|
if (yych == 'N') goto yy616;
|
|
if (yych <= 'U') goto yy291;
|
|
goto yy617;
|
|
} else {
|
|
if (yych <= 'n') {
|
|
if (yych <= 'm') goto yy291;
|
|
goto yy616;
|
|
} else {
|
|
if (yych == 'v') goto yy617;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy608:
|
|
YYDEBUG(608, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy609;
|
|
if (yych != 't') goto yy291;
|
|
yy609:
|
|
YYDEBUG(609, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy610;
|
|
if (yych != 'e') goto yy291;
|
|
yy610:
|
|
YYDEBUG(610, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy611;
|
|
if (yych != 'c') goto yy291;
|
|
yy611:
|
|
YYDEBUG(611, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy612;
|
|
if (yych != 't') goto yy291;
|
|
yy612:
|
|
YYDEBUG(612, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy613;
|
|
if (yych != 'e') goto yy291;
|
|
yy613:
|
|
YYDEBUG(613, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'D') goto yy614;
|
|
if (yych != 'd') goto yy291;
|
|
yy614:
|
|
YYDEBUG(614, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(615, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1700 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_PROTECTED;
|
|
}
|
|
#line 6769 "Zend/zend_language_scanner.c"
|
|
yy616:
|
|
YYDEBUG(616, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy622;
|
|
if (yych == 't') goto yy622;
|
|
goto yy291;
|
|
yy617:
|
|
YYDEBUG(617, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy618;
|
|
if (yych != 'a') goto yy291;
|
|
yy618:
|
|
YYDEBUG(618, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy619;
|
|
if (yych != 't') goto yy291;
|
|
yy619:
|
|
YYDEBUG(619, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy620;
|
|
if (yych != 'e') goto yy291;
|
|
yy620:
|
|
YYDEBUG(620, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(621, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1696 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_PRIVATE;
|
|
}
|
|
#line 6803 "Zend/zend_language_scanner.c"
|
|
yy622:
|
|
YYDEBUG(622, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(623, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1534 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_PRINT;
|
|
}
|
|
#line 6816 "Zend/zend_language_scanner.c"
|
|
yy624:
|
|
YYDEBUG(624, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy629;
|
|
if (yych == 'o') goto yy629;
|
|
goto yy291;
|
|
yy625:
|
|
YYDEBUG(625, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy626;
|
|
if (yych != 't') goto yy291;
|
|
yy626:
|
|
YYDEBUG(626, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy627;
|
|
if (yych != 'o') goto yy291;
|
|
yy627:
|
|
YYDEBUG(627, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(628, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1526 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_GOTO;
|
|
}
|
|
#line 6845 "Zend/zend_language_scanner.c"
|
|
yy629:
|
|
YYDEBUG(629, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'B') goto yy630;
|
|
if (yych != 'b') goto yy291;
|
|
yy630:
|
|
YYDEBUG(630, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy631;
|
|
if (yych != 'a') goto yy291;
|
|
yy631:
|
|
YYDEBUG(631, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy632;
|
|
if (yych != 'l') goto yy291;
|
|
yy632:
|
|
YYDEBUG(632, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(633, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1668 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_GLOBAL;
|
|
}
|
|
#line 6873 "Zend/zend_language_scanner.c"
|
|
yy634:
|
|
YYDEBUG(634, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '<') goto yy657;
|
|
goto yy281;
|
|
yy635:
|
|
YYDEBUG(635, *YYCURSOR);
|
|
yyaccept = 8;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
goto yy650;
|
|
yy636:
|
|
YYDEBUG(636, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2424 "Zend/zend_language_scanner.l"
|
|
{
|
|
BEGIN(ST_DOUBLE_QUOTES);
|
|
return T_BINARY_DOUBLE;
|
|
}
|
|
#line 6892 "Zend/zend_language_scanner.c"
|
|
yy637:
|
|
YYDEBUG(637, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(638, *YYCURSOR);
|
|
if (yych == '\'') goto yy645;
|
|
if (yych == '\\') goto yy644;
|
|
goto yy637;
|
|
yy639:
|
|
YYDEBUG(639, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy640;
|
|
if (yych != 'e') goto yy291;
|
|
yy640:
|
|
YYDEBUG(640, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy641;
|
|
if (yych != 'a') goto yy291;
|
|
yy641:
|
|
YYDEBUG(641, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'K') goto yy642;
|
|
if (yych != 'k') goto yy291;
|
|
yy642:
|
|
YYDEBUG(642, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(643, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1518 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_BREAK;
|
|
}
|
|
#line 6929 "Zend/zend_language_scanner.c"
|
|
yy644:
|
|
YYDEBUG(644, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
goto yy637;
|
|
yy645:
|
|
YYDEBUG(645, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(646, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2413 "Zend/zend_language_scanner.l"
|
|
{
|
|
zend_scan_binary_single_string(zendlval, yytext+2, yyleng-3 TSRMLS_CC);
|
|
return T_CONSTANT_ENCAPSED_STRING;
|
|
}
|
|
#line 6946 "Zend/zend_language_scanner.c"
|
|
yy647:
|
|
YYDEBUG(647, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(648, *YYCURSOR);
|
|
if (yych <= '$') {
|
|
if (yych == '"') goto yy654;
|
|
if (yych >= '$') goto yy281;
|
|
} else {
|
|
if (yych <= '\\') {
|
|
if (yych >= '\\') goto yy651;
|
|
} else {
|
|
if (yych == '{') goto yy647;
|
|
}
|
|
}
|
|
yy649:
|
|
YYDEBUG(649, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy650:
|
|
YYDEBUG(650, *YYCURSOR);
|
|
if (yych <= '$') {
|
|
if (yych == '"') goto yy654;
|
|
if (yych <= '#') goto yy649;
|
|
goto yy652;
|
|
} else {
|
|
if (yych <= '\\') {
|
|
if (yych <= '[') goto yy649;
|
|
} else {
|
|
if (yych == '{') goto yy647;
|
|
goto yy649;
|
|
}
|
|
}
|
|
yy651:
|
|
YYDEBUG(651, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
goto yy649;
|
|
yy652:
|
|
YYDEBUG(652, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(653, *YYCURSOR);
|
|
if (yych <= '[') {
|
|
if (yych <= '#') {
|
|
if (yych != '"') goto yy649;
|
|
} else {
|
|
if (yych <= '$') goto yy652;
|
|
if (yych <= '@') goto yy649;
|
|
if (yych <= 'Z') goto yy281;
|
|
goto yy649;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= '\\') goto yy656;
|
|
if (yych <= '^') goto yy649;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= '`') goto yy649;
|
|
if (yych <= '{') goto yy281;
|
|
if (yych <= '~') goto yy649;
|
|
goto yy281;
|
|
}
|
|
}
|
|
yy654:
|
|
YYDEBUG(654, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(655, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2397 "Zend/zend_language_scanner.l"
|
|
{
|
|
zend_scan_binary_escape_string(zendlval, yytext+2, yyleng-3, '"' TSRMLS_CC);
|
|
return T_CONSTANT_ENCAPSED_STRING;
|
|
}
|
|
#line 7025 "Zend/zend_language_scanner.c"
|
|
yy656:
|
|
YYDEBUG(656, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
goto yy649;
|
|
yy657:
|
|
YYDEBUG(657, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '<') goto yy281;
|
|
yy658:
|
|
YYDEBUG(658, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(659, *YYCURSOR);
|
|
if (yych <= '\'') {
|
|
if (yych <= ' ') {
|
|
if (yych == '\t') goto yy658;
|
|
if (yych <= 0x1F) goto yy281;
|
|
goto yy658;
|
|
} else {
|
|
if (yych == '"') goto yy662;
|
|
if (yych <= '&') goto yy281;
|
|
goto yy372;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy281;
|
|
if (yych <= 'Z') goto yy660;
|
|
if (yych <= '^') goto yy281;
|
|
} else {
|
|
if (yych <= '`') goto yy281;
|
|
if (yych <= 'z') goto yy660;
|
|
if (yych <= '~') goto yy281;
|
|
}
|
|
}
|
|
yy660:
|
|
YYDEBUG(660, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(661, *YYCURSOR);
|
|
if (yych <= '@') {
|
|
if (yych <= '\f') {
|
|
if (yych == '\n') goto yy666;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= '\r') goto yy668;
|
|
if (yych <= '/') goto yy281;
|
|
if (yych <= '9') goto yy660;
|
|
goto yy281;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= 'Z') goto yy660;
|
|
if (yych <= '^') goto yy281;
|
|
goto yy660;
|
|
} else {
|
|
if (yych <= '`') goto yy281;
|
|
if (yych <= 'z') goto yy660;
|
|
if (yych <= '~') goto yy281;
|
|
goto yy660;
|
|
}
|
|
}
|
|
yy662:
|
|
YYDEBUG(662, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '"') goto yy281;
|
|
if (yych <= '/') goto yy664;
|
|
if (yych <= '9') goto yy281;
|
|
goto yy664;
|
|
yy663:
|
|
YYDEBUG(663, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
yy664:
|
|
YYDEBUG(664, *YYCURSOR);
|
|
if (yych <= 'Z') {
|
|
if (yych <= '/') {
|
|
if (yych != '"') goto yy281;
|
|
} else {
|
|
if (yych <= '9') goto yy663;
|
|
if (yych <= '@') goto yy281;
|
|
goto yy663;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych == '_') goto yy663;
|
|
goto yy281;
|
|
} else {
|
|
if (yych <= 'z') goto yy663;
|
|
if (yych <= '~') goto yy281;
|
|
goto yy663;
|
|
}
|
|
}
|
|
YYDEBUG(665, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\n') goto yy666;
|
|
if (yych == '\r') goto yy668;
|
|
goto yy281;
|
|
yy666:
|
|
YYDEBUG(666, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy667:
|
|
YYDEBUG(667, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2429 "Zend/zend_language_scanner.l"
|
|
{
|
|
char *s;
|
|
|
|
CG(zend_lineno)++;
|
|
CG(heredoc_len) = yyleng-4-1-(yytext[yyleng-2]=='\r'?1:0);
|
|
s = yytext+4;
|
|
while ((*s == ' ') || (*s == '\t')) {
|
|
s++;
|
|
CG(heredoc_len)--;
|
|
}
|
|
|
|
if (*s == '"') {
|
|
s++;
|
|
CG(heredoc_len) -= 2;
|
|
}
|
|
CG(heredoc) = estrndup(s, CG(heredoc_len));
|
|
BEGIN(ST_START_HEREDOC);
|
|
return T_BINARY_HEREDOC;
|
|
}
|
|
#line 7154 "Zend/zend_language_scanner.c"
|
|
yy668:
|
|
YYDEBUG(668, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\n') goto yy666;
|
|
goto yy667;
|
|
yy669:
|
|
YYDEBUG(669, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy676;
|
|
if (yych == 'a') goto yy676;
|
|
goto yy291;
|
|
yy670:
|
|
YYDEBUG(670, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy671;
|
|
if (yych != 'i') goto yy291;
|
|
yy671:
|
|
YYDEBUG(671, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy672;
|
|
if (yych != 't') goto yy291;
|
|
yy672:
|
|
YYDEBUG(672, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy673;
|
|
if (yych != 'c') goto yy291;
|
|
yy673:
|
|
YYDEBUG(673, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy674;
|
|
if (yych != 'h') goto yy291;
|
|
yy674:
|
|
YYDEBUG(674, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(675, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1502 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_SWITCH;
|
|
}
|
|
#line 7198 "Zend/zend_language_scanner.c"
|
|
yy676:
|
|
YYDEBUG(676, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy677;
|
|
if (yych != 't') goto yy291;
|
|
yy677:
|
|
YYDEBUG(677, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy678;
|
|
if (yych != 'i') goto yy291;
|
|
yy678:
|
|
YYDEBUG(678, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy679;
|
|
if (yych != 'c') goto yy291;
|
|
yy679:
|
|
YYDEBUG(679, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(680, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1684 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_STATIC;
|
|
}
|
|
#line 7226 "Zend/zend_language_scanner.c"
|
|
yy681:
|
|
YYDEBUG(681, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy692;
|
|
if (yych == 's') goto yy692;
|
|
goto yy291;
|
|
yy682:
|
|
YYDEBUG(682, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'D') goto yy690;
|
|
if (yych == 'd') goto yy690;
|
|
goto yy291;
|
|
yy683:
|
|
YYDEBUG(683, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy686;
|
|
if (yych == 'r') goto yy686;
|
|
goto yy291;
|
|
yy684:
|
|
YYDEBUG(684, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(685, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1498 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_AS;
|
|
}
|
|
#line 7257 "Zend/zend_language_scanner.c"
|
|
yy686:
|
|
YYDEBUG(686, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy687;
|
|
if (yych != 'a') goto yy291;
|
|
yy687:
|
|
YYDEBUG(687, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'Y') goto yy688;
|
|
if (yych != 'y') goto yy291;
|
|
yy688:
|
|
YYDEBUG(688, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(689, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1720 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ARRAY;
|
|
}
|
|
#line 7280 "Zend/zend_language_scanner.c"
|
|
yy690:
|
|
YYDEBUG(690, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(691, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1812 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_LOGICAL_AND;
|
|
}
|
|
#line 7293 "Zend/zend_language_scanner.c"
|
|
yy692:
|
|
YYDEBUG(692, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy693;
|
|
if (yych != 't') goto yy291;
|
|
yy693:
|
|
YYDEBUG(693, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy694;
|
|
if (yych != 'r') goto yy291;
|
|
yy694:
|
|
YYDEBUG(694, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy695;
|
|
if (yych != 'a') goto yy291;
|
|
yy695:
|
|
YYDEBUG(695, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy696;
|
|
if (yych != 'c') goto yy291;
|
|
yy696:
|
|
YYDEBUG(696, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy697;
|
|
if (yych != 't') goto yy291;
|
|
yy697:
|
|
YYDEBUG(697, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(698, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1688 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ABSTRACT;
|
|
}
|
|
#line 7331 "Zend/zend_language_scanner.c"
|
|
yy699:
|
|
YYDEBUG(699, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy700;
|
|
if (yych != 'i') goto yy291;
|
|
yy700:
|
|
YYDEBUG(700, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy701;
|
|
if (yych != 'l') goto yy291;
|
|
yy701:
|
|
YYDEBUG(701, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy702;
|
|
if (yych != 'e') goto yy291;
|
|
yy702:
|
|
YYDEBUG(702, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(703, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1458 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_WHILE;
|
|
}
|
|
#line 7359 "Zend/zend_language_scanner.c"
|
|
yy704:
|
|
YYDEBUG(704, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(705, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1442 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IF;
|
|
}
|
|
#line 7372 "Zend/zend_language_scanner.c"
|
|
yy706:
|
|
YYDEBUG(706, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy742;
|
|
if (yych == 'p') goto yy742;
|
|
goto yy291;
|
|
yy707:
|
|
YYDEBUG(707, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'T') {
|
|
if (yych <= 'C') {
|
|
if (yych <= 'B') goto yy291;
|
|
goto yy715;
|
|
} else {
|
|
if (yych <= 'R') goto yy291;
|
|
if (yych <= 'S') goto yy713;
|
|
goto yy714;
|
|
}
|
|
} else {
|
|
if (yych <= 'r') {
|
|
if (yych == 'c') goto yy715;
|
|
goto yy291;
|
|
} else {
|
|
if (yych <= 's') goto yy713;
|
|
if (yych <= 't') goto yy714;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy708:
|
|
YYDEBUG(708, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy709;
|
|
if (yych != 's') goto yy291;
|
|
yy709:
|
|
YYDEBUG(709, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy710;
|
|
if (yych != 'e') goto yy291;
|
|
yy710:
|
|
YYDEBUG(710, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy711;
|
|
if (yych != 't') goto yy291;
|
|
yy711:
|
|
YYDEBUG(711, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(712, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1672 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ISSET;
|
|
}
|
|
#line 7428 "Zend/zend_language_scanner.c"
|
|
yy713:
|
|
YYDEBUG(713, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy734;
|
|
if (yych == 't') goto yy734;
|
|
goto yy291;
|
|
yy714:
|
|
YYDEBUG(714, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy727;
|
|
if (yych == 'e') goto yy727;
|
|
goto yy291;
|
|
yy715:
|
|
YYDEBUG(715, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy716;
|
|
if (yych != 'l') goto yy291;
|
|
yy716:
|
|
YYDEBUG(716, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'U') goto yy717;
|
|
if (yych != 'u') goto yy291;
|
|
yy717:
|
|
YYDEBUG(717, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'D') goto yy718;
|
|
if (yych != 'd') goto yy291;
|
|
yy718:
|
|
YYDEBUG(718, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy719;
|
|
if (yych != 'e') goto yy291;
|
|
yy719:
|
|
YYDEBUG(719, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '^') {
|
|
if (yych <= '9') {
|
|
if (yych >= '0') goto yy290;
|
|
} else {
|
|
if (yych <= '@') goto yy720;
|
|
if (yych <= 'Z') goto yy290;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych <= '_') goto yy721;
|
|
} else {
|
|
if (yych <= 'z') goto yy290;
|
|
if (yych >= 0x7F) goto yy290;
|
|
}
|
|
}
|
|
yy720:
|
|
YYDEBUG(720, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1644 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_INCLUDE;
|
|
}
|
|
#line 7486 "Zend/zend_language_scanner.c"
|
|
yy721:
|
|
YYDEBUG(721, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy722;
|
|
if (yych != 'o') goto yy291;
|
|
yy722:
|
|
YYDEBUG(722, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy723;
|
|
if (yych != 'n') goto yy291;
|
|
yy723:
|
|
YYDEBUG(723, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy724;
|
|
if (yych != 'c') goto yy291;
|
|
yy724:
|
|
YYDEBUG(724, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy725;
|
|
if (yych != 'e') goto yy291;
|
|
yy725:
|
|
YYDEBUG(725, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(726, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1648 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_INCLUDE_ONCE;
|
|
}
|
|
#line 7519 "Zend/zend_language_scanner.c"
|
|
yy727:
|
|
YYDEBUG(727, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy728;
|
|
if (yych != 'r') goto yy291;
|
|
yy728:
|
|
YYDEBUG(728, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'F') goto yy729;
|
|
if (yych != 'f') goto yy291;
|
|
yy729:
|
|
YYDEBUG(729, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy730;
|
|
if (yych != 'a') goto yy291;
|
|
yy730:
|
|
YYDEBUG(730, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy731;
|
|
if (yych != 'c') goto yy291;
|
|
yy731:
|
|
YYDEBUG(731, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy732;
|
|
if (yych != 'e') goto yy291;
|
|
yy732:
|
|
YYDEBUG(732, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(733, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1542 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_INTERFACE;
|
|
}
|
|
#line 7557 "Zend/zend_language_scanner.c"
|
|
yy734:
|
|
YYDEBUG(734, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy735;
|
|
if (yych != 'a') goto yy291;
|
|
yy735:
|
|
YYDEBUG(735, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy736;
|
|
if (yych != 'n') goto yy291;
|
|
yy736:
|
|
YYDEBUG(736, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy737;
|
|
if (yych != 'c') goto yy291;
|
|
yy737:
|
|
YYDEBUG(737, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy738;
|
|
if (yych != 'e') goto yy291;
|
|
yy738:
|
|
YYDEBUG(738, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy739;
|
|
if (yych != 'o') goto yy291;
|
|
yy739:
|
|
YYDEBUG(739, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'F') goto yy740;
|
|
if (yych != 'f') goto yy291;
|
|
yy740:
|
|
YYDEBUG(740, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(741, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1494 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_INSTANCEOF;
|
|
}
|
|
#line 7600 "Zend/zend_language_scanner.c"
|
|
yy742:
|
|
YYDEBUG(742, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy743;
|
|
if (yych != 'l') goto yy291;
|
|
yy743:
|
|
YYDEBUG(743, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy744;
|
|
if (yych != 'e') goto yy291;
|
|
yy744:
|
|
YYDEBUG(744, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'M') goto yy745;
|
|
if (yych != 'm') goto yy291;
|
|
yy745:
|
|
YYDEBUG(745, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy746;
|
|
if (yych != 'e') goto yy291;
|
|
yy746:
|
|
YYDEBUG(746, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy747;
|
|
if (yych != 'n') goto yy291;
|
|
yy747:
|
|
YYDEBUG(747, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy748;
|
|
if (yych != 't') goto yy291;
|
|
yy748:
|
|
YYDEBUG(748, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy749;
|
|
if (yych != 's') goto yy291;
|
|
yy749:
|
|
YYDEBUG(749, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(750, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1550 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IMPLEMENTS;
|
|
}
|
|
#line 7648 "Zend/zend_language_scanner.c"
|
|
yy751:
|
|
YYDEBUG(751, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy755;
|
|
if (yych == 'r') goto yy755;
|
|
goto yy291;
|
|
yy752:
|
|
YYDEBUG(752, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'Y') goto yy753;
|
|
if (yych != 'y') goto yy291;
|
|
yy753:
|
|
YYDEBUG(753, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(754, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1430 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_TRY;
|
|
}
|
|
#line 7672 "Zend/zend_language_scanner.c"
|
|
yy755:
|
|
YYDEBUG(755, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy756;
|
|
if (yych != 'o') goto yy291;
|
|
yy756:
|
|
YYDEBUG(756, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'W') goto yy757;
|
|
if (yych != 'w') goto yy291;
|
|
yy757:
|
|
YYDEBUG(757, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(758, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1438 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_THROW;
|
|
}
|
|
#line 7695 "Zend/zend_language_scanner.c"
|
|
yy759:
|
|
YYDEBUG(759, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'T') {
|
|
if (yych == 'Q') goto yy761;
|
|
if (yych <= 'S') goto yy291;
|
|
} else {
|
|
if (yych <= 'q') {
|
|
if (yych <= 'p') goto yy291;
|
|
goto yy761;
|
|
} else {
|
|
if (yych != 't') goto yy291;
|
|
}
|
|
}
|
|
YYDEBUG(760, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'U') goto yy773;
|
|
if (yych == 'u') goto yy773;
|
|
goto yy291;
|
|
yy761:
|
|
YYDEBUG(761, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'U') goto yy762;
|
|
if (yych != 'u') goto yy291;
|
|
yy762:
|
|
YYDEBUG(762, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy763;
|
|
if (yych != 'i') goto yy291;
|
|
yy763:
|
|
YYDEBUG(763, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy764;
|
|
if (yych != 'r') goto yy291;
|
|
yy764:
|
|
YYDEBUG(764, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy765;
|
|
if (yych != 'e') goto yy291;
|
|
yy765:
|
|
YYDEBUG(765, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '^') {
|
|
if (yych <= '9') {
|
|
if (yych >= '0') goto yy290;
|
|
} else {
|
|
if (yych <= '@') goto yy766;
|
|
if (yych <= 'Z') goto yy290;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych <= '_') goto yy767;
|
|
} else {
|
|
if (yych <= 'z') goto yy290;
|
|
if (yych >= 0x7F) goto yy290;
|
|
}
|
|
}
|
|
yy766:
|
|
YYDEBUG(766, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1652 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_REQUIRE;
|
|
}
|
|
#line 7760 "Zend/zend_language_scanner.c"
|
|
yy767:
|
|
YYDEBUG(767, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy768;
|
|
if (yych != 'o') goto yy291;
|
|
yy768:
|
|
YYDEBUG(768, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy769;
|
|
if (yych != 'n') goto yy291;
|
|
yy769:
|
|
YYDEBUG(769, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy770;
|
|
if (yych != 'c') goto yy291;
|
|
yy770:
|
|
YYDEBUG(770, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy771;
|
|
if (yych != 'e') goto yy291;
|
|
yy771:
|
|
YYDEBUG(771, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(772, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1656 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_REQUIRE_ONCE;
|
|
}
|
|
#line 7793 "Zend/zend_language_scanner.c"
|
|
yy773:
|
|
YYDEBUG(773, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy774;
|
|
if (yych != 'r') goto yy291;
|
|
yy774:
|
|
YYDEBUG(774, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy775;
|
|
if (yych != 'n') goto yy291;
|
|
yy775:
|
|
YYDEBUG(775, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(776, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1426 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_RETURN;
|
|
}
|
|
#line 7816 "Zend/zend_language_scanner.c"
|
|
yy777:
|
|
YYDEBUG(777, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'T') {
|
|
if (yych <= 'R') goto yy291;
|
|
if (yych <= 'S') goto yy799;
|
|
goto yy798;
|
|
} else {
|
|
if (yych <= 'r') goto yy291;
|
|
if (yych <= 's') goto yy799;
|
|
if (yych <= 't') goto yy798;
|
|
goto yy291;
|
|
}
|
|
yy778:
|
|
YYDEBUG(778, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'O') {
|
|
if (yych == 'A') goto yy790;
|
|
if (yych <= 'N') goto yy291;
|
|
goto yy791;
|
|
} else {
|
|
if (yych <= 'a') {
|
|
if (yych <= '`') goto yy291;
|
|
goto yy790;
|
|
} else {
|
|
if (yych == 'o') goto yy791;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy779:
|
|
YYDEBUG(779, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy780;
|
|
if (yych != 'n') goto yy291;
|
|
yy780:
|
|
YYDEBUG(780, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'T') {
|
|
if (yych <= 'R') goto yy291;
|
|
if (yych >= 'T') goto yy782;
|
|
} else {
|
|
if (yych <= 'r') goto yy291;
|
|
if (yych <= 's') goto yy781;
|
|
if (yych <= 't') goto yy782;
|
|
goto yy291;
|
|
}
|
|
yy781:
|
|
YYDEBUG(781, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy788;
|
|
if (yych == 't') goto yy788;
|
|
goto yy291;
|
|
yy782:
|
|
YYDEBUG(782, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy783;
|
|
if (yych != 'i') goto yy291;
|
|
yy783:
|
|
YYDEBUG(783, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy784;
|
|
if (yych != 'n') goto yy291;
|
|
yy784:
|
|
YYDEBUG(784, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'U') goto yy785;
|
|
if (yych != 'u') goto yy291;
|
|
yy785:
|
|
YYDEBUG(785, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy786;
|
|
if (yych != 'e') goto yy291;
|
|
yy786:
|
|
YYDEBUG(786, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(787, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1522 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CONTINUE;
|
|
}
|
|
#line 7901 "Zend/zend_language_scanner.c"
|
|
yy788:
|
|
YYDEBUG(788, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(789, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1422 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CONST;
|
|
}
|
|
#line 7914 "Zend/zend_language_scanner.c"
|
|
yy790:
|
|
YYDEBUG(790, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy795;
|
|
if (yych == 's') goto yy795;
|
|
goto yy291;
|
|
yy791:
|
|
YYDEBUG(791, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy792;
|
|
if (yych != 'n') goto yy291;
|
|
yy792:
|
|
YYDEBUG(792, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy793;
|
|
if (yych != 'e') goto yy291;
|
|
yy793:
|
|
YYDEBUG(793, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(794, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1596 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CLONE;
|
|
}
|
|
#line 7943 "Zend/zend_language_scanner.c"
|
|
yy795:
|
|
YYDEBUG(795, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy796;
|
|
if (yych != 's') goto yy291;
|
|
yy796:
|
|
YYDEBUG(796, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(797, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1538 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CLASS;
|
|
}
|
|
#line 7961 "Zend/zend_language_scanner.c"
|
|
yy798:
|
|
YYDEBUG(798, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy802;
|
|
if (yych == 'c') goto yy802;
|
|
goto yy291;
|
|
yy799:
|
|
YYDEBUG(799, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy800;
|
|
if (yych != 'e') goto yy291;
|
|
yy800:
|
|
YYDEBUG(800, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(801, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1510 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CASE;
|
|
}
|
|
#line 7985 "Zend/zend_language_scanner.c"
|
|
yy802:
|
|
YYDEBUG(802, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy803;
|
|
if (yych != 'h') goto yy291;
|
|
yy803:
|
|
YYDEBUG(803, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(804, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1434 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CATCH;
|
|
}
|
|
#line 8003 "Zend/zend_language_scanner.c"
|
|
yy805:
|
|
YYDEBUG(805, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy822;
|
|
if (yych == 'n') goto yy822;
|
|
goto yy291;
|
|
yy806:
|
|
YYDEBUG(806, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy815;
|
|
if (yych == 'r') goto yy815;
|
|
goto yy291;
|
|
yy807:
|
|
YYDEBUG(807, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy808;
|
|
if (yych != 'n') goto yy291;
|
|
yy808:
|
|
YYDEBUG(808, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy809;
|
|
if (yych != 'c') goto yy291;
|
|
yy809:
|
|
YYDEBUG(809, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy810;
|
|
if (yych != 't') goto yy291;
|
|
yy810:
|
|
YYDEBUG(810, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy811;
|
|
if (yych != 'i') goto yy291;
|
|
yy811:
|
|
YYDEBUG(811, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy812;
|
|
if (yych != 'o') goto yy291;
|
|
yy812:
|
|
YYDEBUG(812, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy813;
|
|
if (yych != 'n') goto yy291;
|
|
yy813:
|
|
YYDEBUG(813, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(814, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1418 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_FUNCTION;
|
|
}
|
|
#line 8058 "Zend/zend_language_scanner.c"
|
|
yy815:
|
|
YYDEBUG(815, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '^') {
|
|
if (yych <= '@') {
|
|
if (yych <= '/') goto yy816;
|
|
if (yych <= '9') goto yy290;
|
|
} else {
|
|
if (yych == 'E') goto yy817;
|
|
if (yych <= 'Z') goto yy290;
|
|
}
|
|
} else {
|
|
if (yych <= 'd') {
|
|
if (yych != '`') goto yy290;
|
|
} else {
|
|
if (yych <= 'e') goto yy817;
|
|
if (yych <= 'z') goto yy290;
|
|
if (yych >= 0x7F) goto yy290;
|
|
}
|
|
}
|
|
yy816:
|
|
YYDEBUG(816, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1470 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_FOR;
|
|
}
|
|
#line 8086 "Zend/zend_language_scanner.c"
|
|
yy817:
|
|
YYDEBUG(817, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy818;
|
|
if (yych != 'a') goto yy291;
|
|
yy818:
|
|
YYDEBUG(818, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy819;
|
|
if (yych != 'c') goto yy291;
|
|
yy819:
|
|
YYDEBUG(819, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy820;
|
|
if (yych != 'h') goto yy291;
|
|
yy820:
|
|
YYDEBUG(820, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(821, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1478 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_FOREACH;
|
|
}
|
|
#line 8114 "Zend/zend_language_scanner.c"
|
|
yy822:
|
|
YYDEBUG(822, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy823;
|
|
if (yych != 'a') goto yy291;
|
|
yy823:
|
|
YYDEBUG(823, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy824;
|
|
if (yych != 'l') goto yy291;
|
|
yy824:
|
|
YYDEBUG(824, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(825, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1692 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_FINAL;
|
|
}
|
|
#line 8137 "Zend/zend_language_scanner.c"
|
|
yy826:
|
|
YYDEBUG(826, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'F') {
|
|
if (yych == 'C') goto yy832;
|
|
if (yych <= 'E') goto yy291;
|
|
goto yy833;
|
|
} else {
|
|
if (yych <= 'c') {
|
|
if (yych <= 'b') goto yy291;
|
|
goto yy832;
|
|
} else {
|
|
if (yych == 'f') goto yy833;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy827:
|
|
YYDEBUG(827, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy830;
|
|
if (yych == 'e') goto yy830;
|
|
goto yy291;
|
|
yy828:
|
|
YYDEBUG(828, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(829, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1466 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DO;
|
|
}
|
|
#line 8172 "Zend/zend_language_scanner.c"
|
|
yy830:
|
|
YYDEBUG(830, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(831, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1414 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_EXIT;
|
|
}
|
|
#line 8185 "Zend/zend_language_scanner.c"
|
|
yy832:
|
|
YYDEBUG(832, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy839;
|
|
if (yych == 'l') goto yy839;
|
|
goto yy291;
|
|
yy833:
|
|
YYDEBUG(833, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy834;
|
|
if (yych != 'a') goto yy291;
|
|
yy834:
|
|
YYDEBUG(834, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'U') goto yy835;
|
|
if (yych != 'u') goto yy291;
|
|
yy835:
|
|
YYDEBUG(835, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy836;
|
|
if (yych != 'l') goto yy291;
|
|
yy836:
|
|
YYDEBUG(836, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy837;
|
|
if (yych != 't') goto yy291;
|
|
yy837:
|
|
YYDEBUG(837, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(838, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1514 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DEFAULT;
|
|
}
|
|
#line 8224 "Zend/zend_language_scanner.c"
|
|
yy839:
|
|
YYDEBUG(839, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy840;
|
|
if (yych != 'a') goto yy291;
|
|
yy840:
|
|
YYDEBUG(840, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy841;
|
|
if (yych != 'r') goto yy291;
|
|
yy841:
|
|
YYDEBUG(841, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy842;
|
|
if (yych != 'e') goto yy291;
|
|
yy842:
|
|
YYDEBUG(842, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(843, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1486 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DECLARE;
|
|
}
|
|
#line 8252 "Zend/zend_language_scanner.c"
|
|
yy844:
|
|
YYDEBUG(844, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy906;
|
|
if (yych == 'h') goto yy906;
|
|
goto yy291;
|
|
yy845:
|
|
YYDEBUG(845, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy900;
|
|
if (yych == 's') goto yy900;
|
|
goto yy291;
|
|
yy846:
|
|
YYDEBUG(846, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy896;
|
|
if (yych == 'p') goto yy896;
|
|
goto yy291;
|
|
yy847:
|
|
YYDEBUG(847, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'D') goto yy862;
|
|
if (yych == 'd') goto yy862;
|
|
goto yy291;
|
|
yy848:
|
|
YYDEBUG(848, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy859;
|
|
if (yych == 'a') goto yy859;
|
|
goto yy291;
|
|
yy849:
|
|
YYDEBUG(849, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'T') {
|
|
if (yych == 'I') goto yy850;
|
|
if (yych <= 'S') goto yy291;
|
|
goto yy851;
|
|
} else {
|
|
if (yych <= 'i') {
|
|
if (yych <= 'h') goto yy291;
|
|
} else {
|
|
if (yych == 't') goto yy851;
|
|
goto yy291;
|
|
}
|
|
}
|
|
yy850:
|
|
YYDEBUG(850, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy857;
|
|
if (yych == 't') goto yy857;
|
|
goto yy291;
|
|
yy851:
|
|
YYDEBUG(851, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy852;
|
|
if (yych != 'e') goto yy291;
|
|
yy852:
|
|
YYDEBUG(852, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy853;
|
|
if (yych != 'n') goto yy291;
|
|
yy853:
|
|
YYDEBUG(853, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'D') goto yy854;
|
|
if (yych != 'd') goto yy291;
|
|
yy854:
|
|
YYDEBUG(854, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy855;
|
|
if (yych != 's') goto yy291;
|
|
yy855:
|
|
YYDEBUG(855, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(856, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1546 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_EXTENDS;
|
|
}
|
|
#line 8336 "Zend/zend_language_scanner.c"
|
|
yy857:
|
|
YYDEBUG(857, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(858, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1410 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_EXIT;
|
|
}
|
|
#line 8349 "Zend/zend_language_scanner.c"
|
|
yy859:
|
|
YYDEBUG(859, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy860;
|
|
if (yych != 'l') goto yy291;
|
|
yy860:
|
|
YYDEBUG(860, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(861, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1640 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_EVAL;
|
|
}
|
|
#line 8367 "Zend/zend_language_scanner.c"
|
|
yy862:
|
|
YYDEBUG(862, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
YYDEBUG(-1, yych);
|
|
switch (yych) {
|
|
case 'D':
|
|
case 'd': goto yy863;
|
|
case 'F':
|
|
case 'f': goto yy864;
|
|
case 'I':
|
|
case 'i': goto yy865;
|
|
case 'S':
|
|
case 's': goto yy866;
|
|
case 'W':
|
|
case 'w': goto yy867;
|
|
default: goto yy291;
|
|
}
|
|
yy863:
|
|
YYDEBUG(863, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy889;
|
|
if (yych == 'e') goto yy889;
|
|
goto yy291;
|
|
yy864:
|
|
YYDEBUG(864, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy881;
|
|
if (yych == 'o') goto yy881;
|
|
goto yy291;
|
|
yy865:
|
|
YYDEBUG(865, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'F') goto yy879;
|
|
if (yych == 'f') goto yy879;
|
|
goto yy291;
|
|
yy866:
|
|
YYDEBUG(866, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'W') goto yy873;
|
|
if (yych == 'w') goto yy873;
|
|
goto yy291;
|
|
yy867:
|
|
YYDEBUG(867, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy868;
|
|
if (yych != 'h') goto yy291;
|
|
yy868:
|
|
YYDEBUG(868, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy869;
|
|
if (yych != 'i') goto yy291;
|
|
yy869:
|
|
YYDEBUG(869, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy870;
|
|
if (yych != 'l') goto yy291;
|
|
yy870:
|
|
YYDEBUG(870, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy871;
|
|
if (yych != 'e') goto yy291;
|
|
yy871:
|
|
YYDEBUG(871, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(872, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1462 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ENDWHILE;
|
|
}
|
|
#line 8441 "Zend/zend_language_scanner.c"
|
|
yy873:
|
|
YYDEBUG(873, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy874;
|
|
if (yych != 'i') goto yy291;
|
|
yy874:
|
|
YYDEBUG(874, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy875;
|
|
if (yych != 't') goto yy291;
|
|
yy875:
|
|
YYDEBUG(875, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy876;
|
|
if (yych != 'c') goto yy291;
|
|
yy876:
|
|
YYDEBUG(876, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy877;
|
|
if (yych != 'h') goto yy291;
|
|
yy877:
|
|
YYDEBUG(877, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(878, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1506 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ENDSWITCH;
|
|
}
|
|
#line 8474 "Zend/zend_language_scanner.c"
|
|
yy879:
|
|
YYDEBUG(879, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(880, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1450 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ENDIF;
|
|
}
|
|
#line 8487 "Zend/zend_language_scanner.c"
|
|
yy881:
|
|
YYDEBUG(881, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy882;
|
|
if (yych != 'r') goto yy291;
|
|
yy882:
|
|
YYDEBUG(882, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '^') {
|
|
if (yych <= '@') {
|
|
if (yych <= '/') goto yy883;
|
|
if (yych <= '9') goto yy290;
|
|
} else {
|
|
if (yych == 'E') goto yy884;
|
|
if (yych <= 'Z') goto yy290;
|
|
}
|
|
} else {
|
|
if (yych <= 'd') {
|
|
if (yych != '`') goto yy290;
|
|
} else {
|
|
if (yych <= 'e') goto yy884;
|
|
if (yych <= 'z') goto yy290;
|
|
if (yych >= 0x7F) goto yy290;
|
|
}
|
|
}
|
|
yy883:
|
|
YYDEBUG(883, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1474 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ENDFOR;
|
|
}
|
|
#line 8520 "Zend/zend_language_scanner.c"
|
|
yy884:
|
|
YYDEBUG(884, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy885;
|
|
if (yych != 'a') goto yy291;
|
|
yy885:
|
|
YYDEBUG(885, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy886;
|
|
if (yych != 'c') goto yy291;
|
|
yy886:
|
|
YYDEBUG(886, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy887;
|
|
if (yych != 'h') goto yy291;
|
|
yy887:
|
|
YYDEBUG(887, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(888, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1482 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ENDFOREACH;
|
|
}
|
|
#line 8548 "Zend/zend_language_scanner.c"
|
|
yy889:
|
|
YYDEBUG(889, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy890;
|
|
if (yych != 'c') goto yy291;
|
|
yy890:
|
|
YYDEBUG(890, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy891;
|
|
if (yych != 'l') goto yy291;
|
|
yy891:
|
|
YYDEBUG(891, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy892;
|
|
if (yych != 'a') goto yy291;
|
|
yy892:
|
|
YYDEBUG(892, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy893;
|
|
if (yych != 'r') goto yy291;
|
|
yy893:
|
|
YYDEBUG(893, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy894;
|
|
if (yych != 'e') goto yy291;
|
|
yy894:
|
|
YYDEBUG(894, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(895, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1490 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ENDDECLARE;
|
|
}
|
|
#line 8586 "Zend/zend_language_scanner.c"
|
|
yy896:
|
|
YYDEBUG(896, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy897;
|
|
if (yych != 't') goto yy291;
|
|
yy897:
|
|
YYDEBUG(897, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'Y') goto yy898;
|
|
if (yych != 'y') goto yy291;
|
|
yy898:
|
|
YYDEBUG(898, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(899, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1676 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_EMPTY;
|
|
}
|
|
#line 8609 "Zend/zend_language_scanner.c"
|
|
yy900:
|
|
YYDEBUG(900, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy901;
|
|
if (yych != 'e') goto yy291;
|
|
yy901:
|
|
YYDEBUG(901, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '^') {
|
|
if (yych <= '@') {
|
|
if (yych <= '/') goto yy902;
|
|
if (yych <= '9') goto yy290;
|
|
} else {
|
|
if (yych == 'I') goto yy903;
|
|
if (yych <= 'Z') goto yy290;
|
|
}
|
|
} else {
|
|
if (yych <= 'h') {
|
|
if (yych != '`') goto yy290;
|
|
} else {
|
|
if (yych <= 'i') goto yy903;
|
|
if (yych <= 'z') goto yy290;
|
|
if (yych >= 0x7F) goto yy290;
|
|
}
|
|
}
|
|
yy902:
|
|
YYDEBUG(902, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1454 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ELSE;
|
|
}
|
|
#line 8642 "Zend/zend_language_scanner.c"
|
|
yy903:
|
|
YYDEBUG(903, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'F') goto yy904;
|
|
if (yych != 'f') goto yy291;
|
|
yy904:
|
|
YYDEBUG(904, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(905, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1446 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ELSEIF;
|
|
}
|
|
#line 8660 "Zend/zend_language_scanner.c"
|
|
yy906:
|
|
YYDEBUG(906, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy907;
|
|
if (yych != 'o') goto yy291;
|
|
yy907:
|
|
YYDEBUG(907, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 8) {
|
|
goto yy290;
|
|
}
|
|
YYDEBUG(908, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1530 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ECHO;
|
|
}
|
|
#line 8678 "Zend/zend_language_scanner.c"
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_LOOKING_FOR_PROPERTY:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 128, 128, 0, 0, 128, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
128, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 0, 0, 0, 0, 0, 0,
|
|
0, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 0, 0, 0, 0, 64,
|
|
0, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 0, 0, 0, 0, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
};
|
|
YYDEBUG(909, *YYCURSOR);
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
if (yych <= '-') {
|
|
if (yych <= '\r') {
|
|
if (yych <= 0x08) goto yy917;
|
|
if (yych <= '\n') goto yy911;
|
|
if (yych <= '\f') goto yy917;
|
|
} else {
|
|
if (yych == ' ') goto yy911;
|
|
if (yych <= ',') goto yy917;
|
|
goto yy913;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy917;
|
|
if (yych <= 'Z') goto yy915;
|
|
if (yych <= '^') goto yy917;
|
|
goto yy915;
|
|
} else {
|
|
if (yych <= '`') goto yy917;
|
|
if (yych <= 'z') goto yy915;
|
|
if (yych <= '~') goto yy917;
|
|
goto yy915;
|
|
}
|
|
}
|
|
yy911:
|
|
YYDEBUG(911, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yych = *YYCURSOR;
|
|
goto yy923;
|
|
yy912:
|
|
YYDEBUG(912, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1559 "Zend/zend_language_scanner.l"
|
|
{
|
|
Z_STRVAL_P(zendlval) = yytext; /* no copying - intentional */
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
HANDLE_NEWLINES(yytext, yyleng);
|
|
return T_WHITESPACE;
|
|
}
|
|
#line 8759 "Zend/zend_language_scanner.c"
|
|
yy913:
|
|
YYDEBUG(913, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '>') goto yy920;
|
|
yy914:
|
|
YYDEBUG(914, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1582 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(0);
|
|
yy_pop_state(TSRMLS_C);
|
|
goto restart;
|
|
}
|
|
#line 8773 "Zend/zend_language_scanner.c"
|
|
yy915:
|
|
YYDEBUG(915, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yych = *YYCURSOR;
|
|
goto yy919;
|
|
yy916:
|
|
YYDEBUG(916, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1571 "Zend/zend_language_scanner.l"
|
|
{
|
|
yy_pop_state(TSRMLS_C);
|
|
if (!zend_copy_scanner_string(zendlval, yytext, yyleng, UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
if (UG(unicode) && !zend_check_and_normalize_identifier(zendlval)) {
|
|
return 0;
|
|
}
|
|
return T_STRING;
|
|
}
|
|
#line 8793 "Zend/zend_language_scanner.c"
|
|
yy917:
|
|
YYDEBUG(917, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy914;
|
|
yy918:
|
|
YYDEBUG(918, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy919:
|
|
YYDEBUG(919, *YYCURSOR);
|
|
if (yybm[0+yych] & 64) {
|
|
goto yy918;
|
|
}
|
|
goto yy916;
|
|
yy920:
|
|
YYDEBUG(920, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(921, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1567 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_OBJECT_OPERATOR;
|
|
}
|
|
#line 8818 "Zend/zend_language_scanner.c"
|
|
yy922:
|
|
YYDEBUG(922, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy923:
|
|
YYDEBUG(923, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy922;
|
|
}
|
|
goto yy912;
|
|
}
|
|
/* *********************************** */
|
|
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, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
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(924, *YYCURSOR);
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy928;
|
|
if (yych <= 'Z') goto yy926;
|
|
if (yych <= '^') goto yy928;
|
|
} else {
|
|
if (yych <= '`') goto yy928;
|
|
if (yych <= 'z') goto yy926;
|
|
if (yych <= '~') goto yy928;
|
|
}
|
|
yy926:
|
|
YYDEBUG(926, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yych = *YYCURSOR;
|
|
goto yy931;
|
|
yy927:
|
|
YYDEBUG(927, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1854 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (!zend_copy_scanner_string(zendlval, yytext, yyleng, UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
if (UG(unicode) && !zend_check_and_normalize_identifier(zendlval)) {
|
|
return 0;
|
|
}
|
|
yy_pop_state(TSRMLS_C);
|
|
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
|
|
return T_STRING_VARNAME;
|
|
}
|
|
#line 8900 "Zend/zend_language_scanner.c"
|
|
yy928:
|
|
YYDEBUG(928, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(929, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1867 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(0);
|
|
yy_pop_state(TSRMLS_C);
|
|
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
|
|
goto restart;
|
|
}
|
|
#line 8913 "Zend/zend_language_scanner.c"
|
|
yy930:
|
|
YYDEBUG(930, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy931:
|
|
YYDEBUG(931, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy930;
|
|
}
|
|
goto yy927;
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_NOWDOC:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
32, 32, 32, 32, 32, 32, 32, 32,
|
|
32, 32, 8, 32, 32, 16, 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,
|
|
96, 96, 96, 96, 96, 96, 96, 96,
|
|
96, 96, 32, 32, 32, 32, 32, 32,
|
|
32, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 32, 32, 32, 32, 192,
|
|
32, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 32, 32, 32, 32, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 192, 192,
|
|
};
|
|
YYDEBUG(932, *YYCURSOR);
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy938;
|
|
}
|
|
if (yych <= '\f') goto yy934;
|
|
if (yych <= '\r') goto yy936;
|
|
goto yy940;
|
|
yy934:
|
|
YYDEBUG(934, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(935, *YYCURSOR);
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy938;
|
|
}
|
|
if (yych <= '\f') goto yy934;
|
|
if (yych >= 0x0E) goto yy964;
|
|
yy936:
|
|
YYDEBUG(936, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(937, *YYCURSOR);
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy938;
|
|
}
|
|
if (yych <= '\f') goto yy934;
|
|
if (yych <= '\r') goto yy936;
|
|
goto yy964;
|
|
yy938:
|
|
YYDEBUG(938, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(939, *YYCURSOR);
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy938;
|
|
}
|
|
if (yych <= '\f') goto yy934;
|
|
if (yych <= '\r') goto yy936;
|
|
goto yy962;
|
|
yy940:
|
|
YYDEBUG(940, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(941, *YYCURSOR);
|
|
if (yybm[0+yych] & 64) {
|
|
goto yy940;
|
|
}
|
|
if (yych <= '\f') {
|
|
if (yych != '\n') goto yy944;
|
|
} else {
|
|
if (yych <= '\r') goto yy942;
|
|
if (yych == ';') goto yy943;
|
|
goto yy944;
|
|
}
|
|
yy942:
|
|
YYDEBUG(942, *YYCURSOR);
|
|
yy943:
|
|
YYDEBUG(943, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\n') goto yy942;
|
|
if (yych == '\r') goto yy942;
|
|
goto yy955;
|
|
yy944:
|
|
YYDEBUG(944, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 8) {
|
|
goto yy934;
|
|
}
|
|
if (yych <= '^') {
|
|
if (yych <= '\r') {
|
|
if (yych >= '\r') goto yy936;
|
|
} else {
|
|
if (yych <= '@') goto yy945;
|
|
if (yych <= 'Z') goto yy947;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych <= '_') goto yy947;
|
|
} else {
|
|
if (yych <= 'z') goto yy947;
|
|
if (yych >= 0x7F) goto yy947;
|
|
}
|
|
}
|
|
yy945:
|
|
YYDEBUG(945, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(946, *YYCURSOR);
|
|
if (yybm[0+yych] & 8) {
|
|
goto yy934;
|
|
}
|
|
if (yych <= '^') {
|
|
if (yych <= '\r') {
|
|
if (yych <= '\f') goto yy945;
|
|
goto yy936;
|
|
} else {
|
|
if (yych <= '@') goto yy945;
|
|
if (yych <= 'Z') goto yy949;
|
|
goto yy945;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych <= '_') goto yy949;
|
|
goto yy945;
|
|
} else {
|
|
if (yych <= 'z') goto yy949;
|
|
if (yych <= '~') goto yy945;
|
|
goto yy949;
|
|
}
|
|
}
|
|
yy947:
|
|
YYDEBUG(947, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(948, *YYCURSOR);
|
|
if (yybm[0+yych] & 8) {
|
|
goto yy934;
|
|
}
|
|
if (yych <= '@') {
|
|
if (yych <= '/') {
|
|
if (yych == '\r') goto yy936;
|
|
goto yy945;
|
|
} else {
|
|
if (yych <= '9') goto yy949;
|
|
if (yych == ';') goto yy951;
|
|
goto yy945;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= 'Z') goto yy947;
|
|
if (yych <= '^') goto yy945;
|
|
goto yy947;
|
|
} else {
|
|
if (yych <= '`') goto yy945;
|
|
if (yych <= 'z') goto yy947;
|
|
if (yych <= '~') goto yy945;
|
|
goto yy947;
|
|
}
|
|
}
|
|
yy949:
|
|
YYDEBUG(949, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(950, *YYCURSOR);
|
|
if (yybm[0+yych] & 8) {
|
|
goto yy934;
|
|
}
|
|
if (yych <= '@') {
|
|
if (yych <= '/') {
|
|
if (yych == '\r') goto yy936;
|
|
goto yy945;
|
|
} else {
|
|
if (yych <= '9') goto yy949;
|
|
if (yych != ';') goto yy945;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= 'Z') goto yy949;
|
|
if (yych <= '^') goto yy945;
|
|
goto yy949;
|
|
} else {
|
|
if (yych <= '`') goto yy945;
|
|
if (yych <= 'z') goto yy949;
|
|
if (yych <= '~') goto yy945;
|
|
goto yy949;
|
|
}
|
|
}
|
|
yy951:
|
|
YYDEBUG(951, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(952, *YYCURSOR);
|
|
if (yybm[0+yych] & 8) {
|
|
goto yy934;
|
|
}
|
|
if (yych <= '^') {
|
|
if (yych <= '\r') {
|
|
if (yych <= '\f') goto yy951;
|
|
goto yy936;
|
|
} else {
|
|
if (yych <= '@') goto yy951;
|
|
if (yych >= '[') goto yy951;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych >= '`') goto yy951;
|
|
} else {
|
|
if (yych <= 'z') goto yy953;
|
|
if (yych <= '~') goto yy951;
|
|
}
|
|
}
|
|
yy953:
|
|
YYDEBUG(953, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(954, *YYCURSOR);
|
|
if (yybm[0+yych] & 8) {
|
|
goto yy934;
|
|
}
|
|
if (yych <= 'Z') {
|
|
if (yych <= '/') {
|
|
if (yych == '\r') goto yy936;
|
|
goto yy951;
|
|
} else {
|
|
if (yych <= '9') goto yy953;
|
|
if (yych <= '@') goto yy951;
|
|
goto yy953;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych == '_') goto yy953;
|
|
goto yy951;
|
|
} else {
|
|
if (yych <= 'z') goto yy953;
|
|
if (yych <= '~') goto yy951;
|
|
goto yy953;
|
|
}
|
|
}
|
|
yy955:
|
|
YYDEBUG(955, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 8) {
|
|
goto yy934;
|
|
}
|
|
if (yych <= '^') {
|
|
if (yych <= '\r') {
|
|
if (yych >= '\r') goto yy936;
|
|
} else {
|
|
if (yych <= '@') goto yy956;
|
|
if (yych <= 'Z') goto yy958;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych <= '_') goto yy958;
|
|
} else {
|
|
if (yych <= 'z') goto yy958;
|
|
if (yych >= 0x7F) goto yy958;
|
|
}
|
|
}
|
|
yy956:
|
|
YYDEBUG(956, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(957, *YYCURSOR);
|
|
if (yybm[0+yych] & 8) {
|
|
goto yy934;
|
|
}
|
|
if (yych <= '^') {
|
|
if (yych <= '\r') {
|
|
if (yych <= '\f') goto yy956;
|
|
goto yy936;
|
|
} else {
|
|
if (yych <= '@') goto yy956;
|
|
if (yych <= 'Z') goto yy960;
|
|
goto yy956;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych <= '_') goto yy960;
|
|
goto yy956;
|
|
} else {
|
|
if (yych <= 'z') goto yy960;
|
|
if (yych <= '~') goto yy956;
|
|
goto yy960;
|
|
}
|
|
}
|
|
yy958:
|
|
YYDEBUG(958, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(959, *YYCURSOR);
|
|
if (yybm[0+yych] & 8) {
|
|
goto yy934;
|
|
}
|
|
if (yych <= '@') {
|
|
if (yych <= '/') {
|
|
if (yych == '\r') goto yy936;
|
|
goto yy951;
|
|
} else {
|
|
if (yych <= '9') goto yy960;
|
|
if (yych == ';') goto yy956;
|
|
goto yy951;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= 'Z') goto yy958;
|
|
if (yych <= '^') goto yy951;
|
|
goto yy958;
|
|
} else {
|
|
if (yych <= '`') goto yy951;
|
|
if (yych <= 'z') goto yy958;
|
|
if (yych <= '~') goto yy951;
|
|
goto yy958;
|
|
}
|
|
}
|
|
yy960:
|
|
YYDEBUG(960, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(961, *YYCURSOR);
|
|
if (yybm[0+yych] & 8) {
|
|
goto yy934;
|
|
}
|
|
if (yych <= '@') {
|
|
if (yych <= '/') {
|
|
if (yych == '\r') goto yy936;
|
|
goto yy951;
|
|
} else {
|
|
if (yych <= '9') goto yy960;
|
|
if (yych == ';') goto yy956;
|
|
goto yy951;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= 'Z') goto yy960;
|
|
if (yych <= '^') goto yy951;
|
|
goto yy960;
|
|
} else {
|
|
if (yych <= '`') goto yy951;
|
|
if (yych <= 'z') goto yy960;
|
|
if (yych <= '~') goto yy951;
|
|
goto yy960;
|
|
}
|
|
}
|
|
yy962:
|
|
YYDEBUG(962, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(963, *YYCURSOR);
|
|
if (yybm[0+yych] & 8) {
|
|
goto yy934;
|
|
}
|
|
if (yych <= '@') {
|
|
if (yych <= '/') {
|
|
if (yych == '\r') goto yy936;
|
|
goto yy945;
|
|
} else {
|
|
if (yych <= '9') goto yy962;
|
|
if (yych == ';') goto yy956;
|
|
goto yy945;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= 'Z') goto yy962;
|
|
if (yych <= '^') goto yy945;
|
|
goto yy962;
|
|
} else {
|
|
if (yych <= '`') goto yy945;
|
|
if (yych <= 'z') goto yy962;
|
|
if (yych <= '~') goto yy945;
|
|
goto yy962;
|
|
}
|
|
}
|
|
yy964:
|
|
YYDEBUG(964, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(965, *YYCURSOR);
|
|
if (yych <= ';') {
|
|
if (yych <= '\r') {
|
|
if (yych == '\n') goto yy967;
|
|
if (yych <= '\f') goto yy944;
|
|
goto yy967;
|
|
} else {
|
|
if (yych <= '/') goto yy944;
|
|
if (yych <= '9') goto yy964;
|
|
if (yych <= ':') goto yy944;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy944;
|
|
if (yych <= 'Z') goto yy964;
|
|
if (yych <= '^') goto yy944;
|
|
goto yy964;
|
|
} else {
|
|
if (yych <= '`') goto yy944;
|
|
if (yych <= 'z') goto yy964;
|
|
if (yych <= '~') goto yy944;
|
|
goto yy964;
|
|
}
|
|
}
|
|
YYDEBUG(966, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
if (yych == '\n') goto yy967;
|
|
if (yych != '\r') goto yy955;
|
|
yy967:
|
|
YYDEBUG(967, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(968, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2701 "Zend/zend_language_scanner.l"
|
|
{
|
|
char *end = yytext + yyleng - 1;
|
|
|
|
if (end[-1] == ';') {
|
|
end--;
|
|
yyleng--;
|
|
}
|
|
|
|
if (yyleng > CG(heredoc_len) && !memcmp(end - CG(heredoc_len), CG(heredoc), CG(heredoc_len))) {
|
|
int len = yyleng - CG(heredoc_len) - 2; /* 2 for newline before and after label */
|
|
|
|
/* May have matched fooLABEL; make sure there's a newline before it */
|
|
if (yytext[len] != '\n') {
|
|
if (yytext[len] != '\r') {
|
|
yyless(yyleng - 1);
|
|
yymore();
|
|
}
|
|
} else if (len > 0 && yytext[len - 1] == '\r') {
|
|
len--; /* Windows newline */
|
|
}
|
|
|
|
/* Go back before last label char, to match in ST_END_NOWDOC state */
|
|
yyless(yyleng - 2);
|
|
|
|
/* Subtract the remaining label length. yyleng must include newline
|
|
* before label, for zend_highlight/strip, tokenizer, etc. */
|
|
yyleng -= CG(heredoc_len) - 1;
|
|
|
|
CG(increment_lineno) = 1; /* For newline before label */
|
|
BEGIN(ST_END_NOWDOC);
|
|
|
|
HANDLE_NEWLINES(yytext, len);
|
|
if (!zend_copy_scanner_string(zendlval, yytext, len, CG(literal_type), SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
} else {
|
|
/* Go back to end of label, so the next match works correctly in case of
|
|
* another label at the beginning of the next line */
|
|
yyless(yyleng - 1);
|
|
yymore();
|
|
}
|
|
}
|
|
#line 9419 "Zend/zend_language_scanner.c"
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_ONE_LINE_COMMENT:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 0, 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, 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, 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,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
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(969, *YYCURSOR);
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy975;
|
|
}
|
|
if (yych <= '\f') goto yy978;
|
|
if (yych <= '\r') goto yy979;
|
|
if (yych <= '=') goto yy971;
|
|
if (yych <= '>') goto yy973;
|
|
goto yy974;
|
|
yy971:
|
|
YYDEBUG(971, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '>') goto yy983;
|
|
yy972:
|
|
YYDEBUG(972, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2279 "Zend/zend_language_scanner.l"
|
|
{
|
|
yymore();
|
|
}
|
|
#line 9480 "Zend/zend_language_scanner.c"
|
|
yy973:
|
|
YYDEBUG(973, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy972;
|
|
yy974:
|
|
YYDEBUG(974, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '>') goto yy983;
|
|
goto yy972;
|
|
yy975:
|
|
YYDEBUG(975, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(976, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy975;
|
|
}
|
|
goto yy982;
|
|
yy977:
|
|
YYDEBUG(977, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2283 "Zend/zend_language_scanner.l"
|
|
{
|
|
switch (yytext[yyleng-1]) {
|
|
case '?': case '%': case '>':
|
|
yyless(yyleng-1);
|
|
yymore();
|
|
break;
|
|
case '\n':
|
|
CG(zend_lineno)++;
|
|
/* intentional fall through */
|
|
default:
|
|
Z_STRVAL_P(zendlval) = yytext; /* no copying - intentional */
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_COMMENT;
|
|
}
|
|
}
|
|
#line 9521 "Zend/zend_language_scanner.c"
|
|
yy978:
|
|
YYDEBUG(978, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy977;
|
|
yy979:
|
|
YYDEBUG(979, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '\n') goto yy977;
|
|
YYDEBUG(980, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(981, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2301 "Zend/zend_language_scanner.l"
|
|
{
|
|
Z_STRVAL_P(zendlval) = yytext; /* no copying - intentional */
|
|
Z_STRLEN_P(zendlval) = yyleng;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
CG(zend_lineno)++;
|
|
return T_COMMENT;
|
|
}
|
|
#line 9543 "Zend/zend_language_scanner.c"
|
|
yy982:
|
|
YYDEBUG(982, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy977;
|
|
yy983:
|
|
YYDEBUG(983, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(984, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2310 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (CG(asp_tags) || yytext[yyleng-2] != '%') { /* asp comment? */
|
|
Z_STRVAL_P(zendlval) = yytext; /* no copying - intentional */
|
|
Z_STRLEN_P(zendlval) = yyleng-2;
|
|
Z_TYPE_P(zendlval) = IS_STRING;
|
|
yyless(yyleng - 2);
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_COMMENT;
|
|
} else {
|
|
yymore();
|
|
}
|
|
}
|
|
#line 9566 "Zend/zend_language_scanner.c"
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_START_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, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
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(985, *YYCURSOR);
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy987;
|
|
if (yych <= 'Z') goto yy989;
|
|
if (yych >= '_') goto yy989;
|
|
} else {
|
|
if (yych <= '`') goto yy987;
|
|
if (yych <= 'z') goto yy989;
|
|
if (yych >= 0x7F) goto yy989;
|
|
}
|
|
yy987:
|
|
YYDEBUG(987, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy988:
|
|
YYDEBUG(988, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2477 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(0);
|
|
BEGIN(ST_HEREDOC);
|
|
goto restart;
|
|
}
|
|
#line 9629 "Zend/zend_language_scanner.c"
|
|
yy989:
|
|
YYDEBUG(989, *YYCURSOR);
|
|
yyaccept = 0;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy990;
|
|
}
|
|
if (yych <= '\f') {
|
|
if (yych == '\n') goto yy994;
|
|
goto yy988;
|
|
} else {
|
|
if (yych <= '\r') goto yy994;
|
|
if (yych == ';') goto yy993;
|
|
goto yy988;
|
|
}
|
|
yy990:
|
|
YYDEBUG(990, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(991, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy990;
|
|
}
|
|
if (yych <= '\f') {
|
|
if (yych == '\n') goto yy994;
|
|
} else {
|
|
if (yych <= '\r') goto yy994;
|
|
if (yych == ';') goto yy993;
|
|
}
|
|
yy992:
|
|
YYDEBUG(992, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
goto yy988;
|
|
yy993:
|
|
YYDEBUG(993, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\n') goto yy994;
|
|
if (yych != '\r') goto yy992;
|
|
yy994:
|
|
YYDEBUG(994, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(995, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2483 "Zend/zend_language_scanner.l"
|
|
{
|
|
int label_len = yyleng - 1;
|
|
|
|
if (yytext[label_len-1]==';') {
|
|
label_len--;
|
|
}
|
|
|
|
yyless(label_len);
|
|
|
|
if (label_len==CG(heredoc_len) && !memcmp(yytext, CG(heredoc), label_len)) {
|
|
Z_STRVAL_P(zendlval) = CG(heredoc);
|
|
Z_STRLEN_P(zendlval) = label_len;
|
|
CG(heredoc)=NULL;
|
|
CG(heredoc_len)=0;
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_END_HEREDOC;
|
|
} else {
|
|
BEGIN(ST_HEREDOC);
|
|
yymore();
|
|
}
|
|
}
|
|
#line 9696 "Zend/zend_language_scanner.c"
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_START_NOWDOC:
|
|
{
|
|
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, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
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(996, *YYCURSOR);
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy998;
|
|
if (yych <= 'Z') goto yy1000;
|
|
if (yych >= '_') goto yy1000;
|
|
} else {
|
|
if (yych <= '`') goto yy998;
|
|
if (yych <= 'z') goto yy1000;
|
|
if (yych >= 0x7F) goto yy1000;
|
|
}
|
|
yy998:
|
|
YYDEBUG(998, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy999:
|
|
YYDEBUG(999, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2671 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(0);
|
|
BEGIN(ST_NOWDOC);
|
|
goto restart;
|
|
}
|
|
#line 9759 "Zend/zend_language_scanner.c"
|
|
yy1000:
|
|
YYDEBUG(1000, *YYCURSOR);
|
|
yyaccept = 0;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy1001;
|
|
}
|
|
if (yych <= '\f') {
|
|
if (yych == '\n') goto yy1005;
|
|
goto yy999;
|
|
} else {
|
|
if (yych <= '\r') goto yy1005;
|
|
if (yych == ';') goto yy1004;
|
|
goto yy999;
|
|
}
|
|
yy1001:
|
|
YYDEBUG(1001, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(1002, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy1001;
|
|
}
|
|
if (yych <= '\f') {
|
|
if (yych == '\n') goto yy1005;
|
|
} else {
|
|
if (yych <= '\r') goto yy1005;
|
|
if (yych == ';') goto yy1004;
|
|
}
|
|
yy1003:
|
|
YYDEBUG(1003, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
goto yy999;
|
|
yy1004:
|
|
YYDEBUG(1004, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\n') goto yy1005;
|
|
if (yych != '\r') goto yy1003;
|
|
yy1005:
|
|
YYDEBUG(1005, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(1006, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2677 "Zend/zend_language_scanner.l"
|
|
{
|
|
int label_len = yyleng - 1;
|
|
|
|
if (yytext[label_len-1]==';') {
|
|
label_len--;
|
|
}
|
|
|
|
if (label_len==CG(heredoc_len) && !memcmp(yytext, CG(heredoc), label_len)) {
|
|
yyless(label_len-1);
|
|
yyleng = 0;
|
|
BEGIN(ST_END_NOWDOC);
|
|
if (CG(literal_type) == IS_UNICODE) {
|
|
ZVAL_EMPTY_UNICODE(zendlval);
|
|
} else {
|
|
ZVAL_EMPTY_STRING(zendlval);
|
|
}
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
} else {
|
|
BEGIN(ST_NOWDOC);
|
|
yyless(label_len);
|
|
yymore();
|
|
}
|
|
}
|
|
#line 9828 "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,
|
|
224, 224, 224, 224, 224, 224, 224, 224,
|
|
224, 224, 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, 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, 32,
|
|
};
|
|
YYDEBUG(1007, *YYCURSOR);
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
if (yych <= '/') {
|
|
if (yych <= ' ') {
|
|
if (yych <= '\f') {
|
|
if (yych <= 0x08) goto yy1021;
|
|
if (yych <= '\n') goto yy1017;
|
|
goto yy1021;
|
|
} else {
|
|
if (yych <= '\r') goto yy1017;
|
|
if (yych <= 0x1F) goto yy1021;
|
|
goto yy1017;
|
|
}
|
|
} else {
|
|
if (yych <= '$') {
|
|
if (yych <= '"') goto yy1016;
|
|
if (yych <= '#') goto yy1017;
|
|
goto yy1012;
|
|
} else {
|
|
if (yych == '\'') goto yy1017;
|
|
goto yy1016;
|
|
}
|
|
}
|
|
} else {
|
|
if (yych <= '\\') {
|
|
if (yych <= '@') {
|
|
if (yych <= '0') goto yy1009;
|
|
if (yych <= '9') goto yy1011;
|
|
goto yy1016;
|
|
} else {
|
|
if (yych <= 'Z') goto yy1019;
|
|
if (yych <= '[') goto yy1016;
|
|
goto yy1017;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= ']') goto yy1014;
|
|
if (yych <= '^') goto yy1016;
|
|
goto yy1019;
|
|
} else {
|
|
if (yych <= '`') goto yy1016;
|
|
if (yych <= 'z') goto yy1019;
|
|
if (yych <= '~') goto yy1016;
|
|
goto yy1019;
|
|
}
|
|
}
|
|
}
|
|
yy1009:
|
|
YYDEBUG(1009, *YYCURSOR);
|
|
yyaccept = 0;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= 'W') {
|
|
if (yych <= '/') goto yy1010;
|
|
if (yych <= '9') goto yy1032;
|
|
} else {
|
|
if (yych <= 'X') goto yy1030;
|
|
if (yych == 'x') goto yy1030;
|
|
}
|
|
yy1010:
|
|
YYDEBUG(1010, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1917 "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)) {
|
|
Z_LVAL_P(zendlval) = strtol(yytext, NULL, 10);
|
|
Z_TYPE_P(zendlval) = IS_LONG;
|
|
} else {
|
|
if (!zend_copy_scanner_string(zendlval, yytext, yyleng, CG(literal_type), SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
}
|
|
return T_NUM_STRING;
|
|
}
|
|
#line 9941 "Zend/zend_language_scanner.c"
|
|
yy1011:
|
|
YYDEBUG(1011, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy1029;
|
|
yy1012:
|
|
YYDEBUG(1012, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '_') {
|
|
if (yych <= '@') goto yy1013;
|
|
if (yych <= 'Z') goto yy1025;
|
|
if (yych >= '_') goto yy1025;
|
|
} else {
|
|
if (yych <= '`') goto yy1013;
|
|
if (yych <= 'z') goto yy1025;
|
|
if (yych >= 0x7F) goto yy1025;
|
|
}
|
|
yy1013:
|
|
YYDEBUG(1013, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2243 "Zend/zend_language_scanner.l"
|
|
{
|
|
/* Only '[' can be valid, but returning other tokens will allow a more explicit parse error */
|
|
return yytext[0];
|
|
}
|
|
#line 9966 "Zend/zend_language_scanner.c"
|
|
yy1014:
|
|
YYDEBUG(1014, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(1015, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2238 "Zend/zend_language_scanner.l"
|
|
{
|
|
yy_pop_state(TSRMLS_C);
|
|
return ']';
|
|
}
|
|
#line 9977 "Zend/zend_language_scanner.c"
|
|
yy1016:
|
|
YYDEBUG(1016, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy1013;
|
|
yy1017:
|
|
YYDEBUG(1017, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(1018, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2248 "Zend/zend_language_scanner.l"
|
|
{
|
|
/* Invalid rule to return a more explicit parse error with proper line number */
|
|
yyless(0);
|
|
yy_pop_state(TSRMLS_C);
|
|
ZVAL_EMPTY_TEXT(zendlval); /* Empty since it won't be used */
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
}
|
|
#line 9995 "Zend/zend_language_scanner.c"
|
|
yy1019:
|
|
YYDEBUG(1019, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yych = *YYCURSOR;
|
|
goto yy1024;
|
|
yy1020:
|
|
YYDEBUG(1020, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2266 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (!zend_copy_scanner_string(zendlval, yytext, yyleng, CG(literal_type), SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
return T_STRING;
|
|
}
|
|
#line 10011 "Zend/zend_language_scanner.c"
|
|
yy1021:
|
|
YYDEBUG(1021, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(1022, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2768 "Zend/zend_language_scanner.l"
|
|
{
|
|
zend_error(E_COMPILE_WARNING,"Unexpected character in input: '%c' (ASCII=%d) state=%d", yytext[0], yytext[0], YYSTATE);
|
|
goto restart;
|
|
}
|
|
#line 10022 "Zend/zend_language_scanner.c"
|
|
yy1023:
|
|
YYDEBUG(1023, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy1024:
|
|
YYDEBUG(1024, *YYCURSOR);
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy1023;
|
|
}
|
|
goto yy1020;
|
|
yy1025:
|
|
YYDEBUG(1025, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(1026, *YYCURSOR);
|
|
if (yych <= '^') {
|
|
if (yych <= '9') {
|
|
if (yych >= '0') goto yy1025;
|
|
} else {
|
|
if (yych <= '@') goto yy1027;
|
|
if (yych <= 'Z') goto yy1025;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych <= '_') goto yy1025;
|
|
} else {
|
|
if (yych <= 'z') goto yy1025;
|
|
if (yych >= 0x7F) goto yy1025;
|
|
}
|
|
}
|
|
yy1027:
|
|
YYDEBUG(1027, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2228 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (!zend_copy_scanner_string(zendlval, (yytext+1), (yyleng-1), UG(unicode)?IS_UNICODE:IS_STRING, SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
if (UG(unicode) && !zend_check_and_normalize_identifier(zendlval)) {
|
|
return 0;
|
|
}
|
|
return T_VARIABLE;
|
|
}
|
|
#line 10068 "Zend/zend_language_scanner.c"
|
|
yy1028:
|
|
YYDEBUG(1028, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy1029:
|
|
YYDEBUG(1029, *YYCURSOR);
|
|
if (yybm[0+yych] & 64) {
|
|
goto yy1028;
|
|
}
|
|
goto yy1010;
|
|
yy1030:
|
|
YYDEBUG(1030, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy1035;
|
|
}
|
|
YYDEBUG(1031, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
goto yy1010;
|
|
yy1032:
|
|
YYDEBUG(1032, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(1033, *YYCURSOR);
|
|
if (yych <= '/') goto yy1034;
|
|
if (yych <= '9') goto yy1032;
|
|
yy1034:
|
|
YYDEBUG(1034, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1929 "Zend/zend_language_scanner.l"
|
|
{ /* Offset must be treated as a string */
|
|
if (!zend_copy_scanner_string(zendlval, yytext, yyleng, CG(literal_type), SCNG(output_conv) TSRMLS_CC)) {
|
|
return 0;
|
|
}
|
|
return T_NUM_STRING;
|
|
}
|
|
#line 10107 "Zend/zend_language_scanner.c"
|
|
yy1035:
|
|
YYDEBUG(1035, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(1036, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy1035;
|
|
}
|
|
goto yy1034;
|
|
}
|
|
}
|
|
#line 2773 "Zend/zend_language_scanner.l"
|
|
|
|
}
|