php-src/Zend/zend_language_scanner.c

7636 lines
177 KiB
C
Raw Normal View History

2011-05-15 00:36:13 +00:00
/* Generated by re2c 0.13.5 on Sun May 8 16:20:00 2011 */
2008-03-19 23:24:56 +00:00
#line 1 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
2011-01-01 02:17:06 +00:00
| Copyright (c) 1998-2011 Zend Technologies Ltd. (http://www.zend.com) |
2008-03-16 21:23:02 +00:00
+----------------------------------------------------------------------+
| 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_exceptions.h"
#include "tsrm_virtual_cwd.h"
#include "tsrm_config_common.h"
#define YYCTYPE unsigned char
#define YYFILL(n) { if ((YYCURSOR + n) >= (YYLIMIT + ZEND_MMAP_AHEAD)) { return 0; } }
2008-03-16 21:23:02 +00:00
#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)
2008-03-16 21:23:02 +00:00
#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
2008-03-16 21:23:02 +00:00
#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 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)++; \
} \
}
2009-05-05 01:44:52 +00:00
/* To save initial string length after scanning to first variable, CG(doc_comment_len) can be reused */
#define SET_DOUBLE_QUOTES_SCANNED_LENGTH(len) CG(doc_comment_len) = (len)
#define GET_DOUBLE_QUOTES_SCANNED_LENGTH() CG(doc_comment_len)
#define IS_LABEL_START(c) (((c) >= 'a' && (c) <= 'z') || ((c) >= 'A' && (c) <= 'Z') || (c) == '_' || (c) >= 0x7F)
2008-03-16 21:23:02 +00:00
#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 size_t encoding_filter_script_to_internal(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length TSRMLS_DC)
{
const zend_encoding *internal_encoding = zend_multibyte_get_internal_encoding(TSRMLS_C);
assert(internal_encoding && zend_multibyte_check_lexer_compatibility(internal_encoding));
return zend_multibyte_encoding_converter(to, to_length, from, from_length, internal_encoding, LANG_SCNG(script_encoding) TSRMLS_CC);
}
static size_t encoding_filter_script_to_intermediate(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length TSRMLS_DC)
{
return zend_multibyte_encoding_converter(to, to_length, from, from_length, zend_multibyte_encoding_utf8, LANG_SCNG(script_encoding) TSRMLS_CC);
}
static size_t encoding_filter_intermediate_to_script(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length TSRMLS_DC)
{
return zend_multibyte_encoding_converter(to, to_length, from, from_length,
LANG_SCNG(script_encoding), zend_multibyte_encoding_utf8 TSRMLS_CC);
}
static size_t encoding_filter_intermediate_to_internal(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length TSRMLS_DC)
{
const zend_encoding *internal_encoding = zend_multibyte_get_internal_encoding(TSRMLS_C);
assert(internal_encoding && zend_multibyte_check_lexer_compatibility(internal_encoding));
return zend_multibyte_encoding_converter(to, to_length, from, from_length,
internal_encoding, zend_multibyte_encoding_utf8 TSRMLS_CC);
}
2008-03-16 21:23:02 +00:00
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;
YYLIMIT = YYCURSOR + len;
if (!SCNG(yy_start)) {
SCNG(yy_start) = YYCURSOR;
}
2008-03-16 21:23:02 +00:00
}
void startup_scanner(TSRMLS_D)
{
CG(heredoc) = NULL;
CG(heredoc_len) = 0;
CG(doc_comment) = NULL;
CG(doc_comment_len) = 0;
zend_stack_init(&SCNG(state_stack));
}
void shutdown_scanner(TSRMLS_D)
{
if (CG(heredoc)) {
efree(CG(heredoc));
CG(heredoc_len)=0;
}
zend_stack_destroy(&SCNG(state_stack));
2008-03-16 21:23:02 +00:00
RESET_DOC_COMMENT();
}
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));
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->script_org = SCNG(script_org);
lex_state->script_org_size = SCNG(script_org_size);
lex_state->script_filtered = SCNG(script_filtered);
lex_state->script_filtered_size = SCNG(script_filtered_size);
lex_state->input_filter = SCNG(input_filter);
lex_state->output_filter = SCNG(output_filter);
lex_state->script_encoding = SCNG(script_encoding);
2008-03-16 21:23:02 +00:00
}
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_stack_destroy(&SCNG(state_stack));
2008-03-16 21:23:02 +00:00
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);
if (SCNG(script_filtered)) {
efree(SCNG(script_filtered));
SCNG(script_filtered) = NULL;
}
SCNG(script_org) = lex_state->script_org;
SCNG(script_org_size) = lex_state->script_org_size;
SCNG(script_filtered) = lex_state->script_filtered;
SCNG(script_filtered_size) = lex_state->script_filtered_size;
SCNG(input_filter) = lex_state->input_filter;
SCNG(output_filter) = lex_state->output_filter;
SCNG(script_encoding) = lex_state->script_encoding;
if (CG(heredoc)) {
efree(CG(heredoc));
CG(heredoc) = NULL;
CG(heredoc_len) = 0;
}
2008-03-16 21:23:02 +00:00
}
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;
}
}
#define BOM_UTF32_BE "\x00\x00\xfe\xff"
#define BOM_UTF32_LE "\xff\xfe\x00\x00"
#define BOM_UTF16_BE "\xfe\xff"
#define BOM_UTF16_LE "\xff\xfe"
#define BOM_UTF8 "\xef\xbb\xbf"
static const zend_encoding *zend_multibyte_detect_utf_encoding(const unsigned char *script, size_t script_size TSRMLS_DC)
{
const unsigned char *p;
int wchar_size = 2;
int le = 0;
/* utf-16 or utf-32? */
p = script;
while ((p-script) < script_size) {
p = memchr(p, 0, script_size-(p-script)-2);
if (!p) {
break;
}
if (*(p+1) == '\0' && *(p+2) == '\0') {
wchar_size = 4;
break;
}
/* searching for UTF-32 specific byte orders, so this will do */
p += 4;
}
/* BE or LE? */
p = script;
while ((p-script) < script_size) {
if (*p == '\0' && *(p+wchar_size-1) != '\0') {
/* BE */
le = 0;
break;
} else if (*p != '\0' && *(p+wchar_size-1) == '\0') {
/* LE* */
le = 1;
break;
}
p += wchar_size;
}
if (wchar_size == 2) {
return le ? zend_multibyte_encoding_utf16le : zend_multibyte_encoding_utf16be;
} else {
return le ? zend_multibyte_encoding_utf32le : zend_multibyte_encoding_utf32be;
}
return NULL;
}
static const zend_encoding* zend_multibyte_detect_unicode(TSRMLS_D)
{
const zend_encoding *script_encoding = NULL;
int bom_size;
unsigned char *pos1, *pos2;
if (LANG_SCNG(script_org_size) < sizeof(BOM_UTF32_LE)-1) {
return NULL;
}
/* check out BOM */
if (!memcmp(LANG_SCNG(script_org), BOM_UTF32_BE, sizeof(BOM_UTF32_BE)-1)) {
script_encoding = zend_multibyte_encoding_utf32be;
bom_size = sizeof(BOM_UTF32_BE)-1;
} else if (!memcmp(LANG_SCNG(script_org), BOM_UTF32_LE, sizeof(BOM_UTF32_LE)-1)) {
script_encoding = zend_multibyte_encoding_utf32le;
bom_size = sizeof(BOM_UTF32_LE)-1;
} else if (!memcmp(LANG_SCNG(script_org), BOM_UTF16_BE, sizeof(BOM_UTF16_BE)-1)) {
script_encoding = zend_multibyte_encoding_utf16be;
bom_size = sizeof(BOM_UTF16_BE)-1;
} else if (!memcmp(LANG_SCNG(script_org), BOM_UTF16_LE, sizeof(BOM_UTF16_LE)-1)) {
script_encoding = zend_multibyte_encoding_utf16le;
bom_size = sizeof(BOM_UTF16_LE)-1;
} else if (!memcmp(LANG_SCNG(script_org), BOM_UTF8, sizeof(BOM_UTF8)-1)) {
script_encoding = zend_multibyte_encoding_utf8;
bom_size = sizeof(BOM_UTF8)-1;
}
if (script_encoding) {
/* remove BOM */
2011-03-14 16:02:04 +00:00
LANG_SCNG(script_org) += bom_size;
LANG_SCNG(script_org_size) -= bom_size;
return script_encoding;
}
/* script contains NULL bytes -> auto-detection */
if ((pos1 = memchr(LANG_SCNG(script_org), 0, LANG_SCNG(script_org_size)))) {
/* check if the NULL byte is after the __HALT_COMPILER(); */
pos2 = LANG_SCNG(script_org);
while (pos1 - pos2 >= sizeof("__HALT_COMPILER();")-1) {
pos2 = memchr(pos2, '_', pos1 - pos2);
if (!pos2) break;
pos2++;
if (strncasecmp((char*)pos2, "_HALT_COMPILER", sizeof("_HALT_COMPILER")-1) == 0) {
pos2 += sizeof("_HALT_COMPILER")-1;
while (*pos2 == ' ' ||
*pos2 == '\t' ||
*pos2 == '\r' ||
*pos2 == '\n') {
pos2++;
}
if (*pos2 == '(') {
pos2++;
while (*pos2 == ' ' ||
*pos2 == '\t' ||
*pos2 == '\r' ||
*pos2 == '\n') {
pos2++;
}
if (*pos2 == ')') {
pos2++;
while (*pos2 == ' ' ||
*pos2 == '\t' ||
*pos2 == '\r' ||
*pos2 == '\n') {
pos2++;
}
if (*pos2 == ';') {
return NULL;
}
}
}
}
}
/* make best effort if BOM is missing */
return zend_multibyte_detect_utf_encoding(LANG_SCNG(script_org), LANG_SCNG(script_org_size) TSRMLS_CC);
}
return NULL;
}
static const zend_encoding* zend_multibyte_find_script_encoding(TSRMLS_D)
{
const zend_encoding *script_encoding;
if (CG(detect_unicode)) {
/* check out bom(byte order mark) and see if containing wchars */
script_encoding = zend_multibyte_detect_unicode(TSRMLS_C);
if (script_encoding != NULL) {
/* bom or wchar detection is prior to 'script_encoding' option */
return script_encoding;
}
}
/* if no script_encoding specified, just leave alone */
if (!CG(script_encoding_list) || !CG(script_encoding_list_size)) {
return NULL;
}
/* if multiple encodings specified, detect automagically */
if (CG(script_encoding_list_size) > 1) {
return zend_multibyte_encoding_detector(LANG_SCNG(script_org), LANG_SCNG(script_org_size), CG(script_encoding_list), CG(script_encoding_list_size) TSRMLS_CC);
}
return CG(script_encoding_list)[0];
}
ZEND_API int zend_multibyte_set_filter(const zend_encoding *onetime_encoding TSRMLS_DC)
{
const zend_encoding *internal_encoding = zend_multibyte_get_internal_encoding(TSRMLS_C);
const zend_encoding *script_encoding = onetime_encoding ? onetime_encoding: zend_multibyte_find_script_encoding(TSRMLS_C);
if (!script_encoding) {
return FAILURE;
}
/* judge input/output filter */
LANG_SCNG(script_encoding) = script_encoding;
LANG_SCNG(input_filter) = NULL;
LANG_SCNG(output_filter) = NULL;
if (!internal_encoding || LANG_SCNG(script_encoding) == internal_encoding) {
if (!zend_multibyte_check_lexer_compatibility(LANG_SCNG(script_encoding))) {
/* and if not, work around w/ script_encoding -> utf-8 -> script_encoding conversion */
LANG_SCNG(input_filter) = encoding_filter_script_to_intermediate;
LANG_SCNG(output_filter) = encoding_filter_intermediate_to_script;
} else {
LANG_SCNG(input_filter) = NULL;
LANG_SCNG(output_filter) = NULL;
}
return SUCCESS;
}
if (zend_multibyte_check_lexer_compatibility(internal_encoding)) {
LANG_SCNG(input_filter) = encoding_filter_script_to_internal;
LANG_SCNG(output_filter) = NULL;
} else if (zend_multibyte_check_lexer_compatibility(LANG_SCNG(script_encoding))) {
LANG_SCNG(input_filter) = NULL;
LANG_SCNG(output_filter) = encoding_filter_script_to_internal;
} else {
/* both script and internal encodings are incompatible w/ flex */
LANG_SCNG(input_filter) = encoding_filter_script_to_intermediate;
LANG_SCNG(output_filter) = encoding_filter_intermediate_to_internal;
}
return 0;
}
2008-03-16 21:23:02 +00:00
ZEND_API int open_file_for_scanning(zend_file_handle *file_handle TSRMLS_DC)
{
char *file_path = NULL, *buf;
size_t size, offset = 0;
2011-05-15 00:36:13 +00:00
/* The shebang line was read, get the current position to obtain the buffer start */
if (CG(start_lineno) == 2 && file_handle->type == ZEND_HANDLE_FP && file_handle->handle.fp) {
if ((offset = ftell(file_handle->handle.fp)) == -1) {
offset = 0;
}
}
2008-03-16 21:23:02 +00:00
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;
SCNG(yy_start) = NULL;
2008-03-16 21:23:02 +00:00
if (size != -1) {
if (CG(multibyte)) {
2010-12-20 12:41:35 +00:00
SCNG(script_org) = buf;
2011-05-15 00:36:13 +00:00
SCNG(script_org_size) = size;
2010-12-20 12:41:35 +00:00
SCNG(script_filtered) = NULL;
zend_multibyte_set_filter(NULL TSRMLS_CC);
2010-12-20 12:41:35 +00:00
if (SCNG(input_filter)) {
if ((size_t)-1 == SCNG(input_filter)(&SCNG(script_filtered), &SCNG(script_filtered_size), SCNG(script_org), SCNG(script_org_size) TSRMLS_CC)) {
zend_error_noreturn(E_COMPILE_ERROR, "Could not convert the script from the detected "
"encoding \"%s\" to a compatible encoding", zend_multibyte_get_encoding_name(LANG_SCNG(script_encoding)));
}
2010-12-20 12:41:35 +00:00
buf = SCNG(script_filtered);
size = SCNG(script_filtered_size);
}
}
2010-12-20 12:41:35 +00:00
SCNG(yy_start) = (unsigned char *)buf - offset;
yy_scan_buffer(buf, size TSRMLS_CC);
2008-03-16 21:23:02 +00:00
} 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);
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;
retval_znode.u.constant.type = IS_LONG;
retval_znode.u.constant.value.lval = 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) {
2008-08-15 19:47:33 +00:00
zend_message_dispatcher(ZMSG_FAILED_REQUIRE_FOPEN, file_handle->filename TSRMLS_CC);
2008-03-16 21:23:02 +00:00
zend_bailout();
} else {
2008-08-15 19:47:33 +00:00
zend_message_dispatcher(ZMSG_FAILED_INCLUDE_FOPEN, file_handle->filename TSRMLS_CC);
2008-03-16 21:23:02 +00:00
}
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;
2010-09-15 07:39:57 +00:00
zend_init_compiler_context(TSRMLS_C);
2008-03-16 21:23:02 +00:00
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);
2008-03-16 21:23:02 +00:00
} else {
efree(op_array);
retval = NULL;
}
}
zend_restore_lexical_state(&original_lex_state TSRMLS_CC);
2008-03-16 21:23:02 +00:00
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 (filename->type != IS_STRING) {
tmp = *filename;
zval_copy_ctor(&tmp);
convert_to_string(&tmp);
filename = &tmp;
}
file_handle.filename = filename->value.str.val;
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(filename->value.str.val, filename->value.str.len);
}
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)
{
2010-12-20 12:41:35 +00:00
char *buf;
size_t size;
2008-03-16 21:23:02 +00:00
/* enforce two trailing NULLs for flex... */
2010-04-20 11:14:07 +00:00
if (IS_INTERNED(str->value.str.val)) {
char *tmp = safe_emalloc(1, str->value.str.len, ZEND_MMAP_AHEAD);
memcpy(tmp, str->value.str.val, str->value.str.len + ZEND_MMAP_AHEAD);
str->value.str.val = tmp;
} else {
str->value.str.val = safe_erealloc(str->value.str.val, 1, str->value.str.len, ZEND_MMAP_AHEAD);
}
2008-03-16 21:23:02 +00:00
memset(str->value.str.val + str->value.str.len, 0, ZEND_MMAP_AHEAD);
2008-03-16 21:23:02 +00:00
2010-12-20 12:41:35 +00:00
SCNG(yy_in) = NULL;
SCNG(yy_start) = NULL;
2008-03-16 21:23:02 +00:00
2010-12-20 12:41:35 +00:00
buf = str->value.str.val;
size = str->value.str.len;
if (CG(multibyte)) {
2010-12-20 12:41:35 +00:00
SCNG(script_org) = buf;
SCNG(script_org_size) = size;
SCNG(script_filtered) = NULL;
zend_multibyte_set_filter(zend_multibyte_get_internal_encoding(TSRMLS_C) TSRMLS_CC);
2010-12-20 12:41:35 +00:00
if (SCNG(input_filter)) {
if ((size_t)-1 == SCNG(input_filter)(&SCNG(script_filtered), &SCNG(script_filtered_size), SCNG(script_org), SCNG(script_org_size) TSRMLS_CC)) {
zend_error_noreturn(E_COMPILE_ERROR, "Could not convert the script from the detected "
"encoding \"%s\" to a compatible encoding", zend_multibyte_get_encoding_name(LANG_SCNG(script_encoding)));
}
buf = SCNG(script_filtered);
size = SCNG(script_filtered_size);
}
}
2010-12-20 12:41:35 +00:00
yy_scan_buffer(buf, size TSRMLS_CC);
2008-03-16 21:23:02 +00:00
zend_set_compiled_filename(filename TSRMLS_CC);
CG(zend_lineno) = 1;
CG(increment_lineno) = 0;
return SUCCESS;
}
2008-07-28 06:00:15 +00:00
ZEND_API size_t zend_get_scanned_file_offset(TSRMLS_D)
2008-03-16 21:23:02 +00:00
{
size_t offset = SCNG(yy_cursor) - SCNG(yy_start);
2008-07-28 07:02:05 +00:00
if (SCNG(input_filter)) {
2010-12-20 12:41:35 +00:00
size_t original_offset = offset, length = 0;
do {
2008-07-28 07:02:05 +00:00
unsigned char *p = NULL;
2010-12-20 12:41:35 +00:00
if ((size_t)-1 == SCNG(input_filter)(&p, &length, SCNG(script_org), offset TSRMLS_CC)) {
return (size_t)-1;
2008-07-28 07:02:05 +00:00
}
efree(p);
if (length > original_offset) {
offset--;
} else if (length < original_offset) {
offset++;
}
} while (original_offset != length);
}
2008-07-28 06:05:36 +00:00
return offset;
2008-03-16 21:23:02 +00:00
}
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);
if (source_string->value.str.len==0) {
efree(op_array);
return NULL;
}
CG(in_compilation) = 1;
tmp = *source_string;
zval_copy_ctor(&tmp);
convert_to_string(&tmp);
source_string = &tmp;
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;
2010-09-15 07:39:57 +00:00
zend_init_compiler_context(TSRMLS_C);
2008-03-16 21:23:02 +00:00
BEGIN(ST_IN_SCRIPTING);
compiler_result = zendparse(TSRMLS_C);
if (SCNG(script_filtered)) {
efree(SCNG(script_filtered));
SCNG(script_filtered) = NULL;
}
2008-03-16 21:23:02 +00:00
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);
2008-03-16 21:23:02 +00:00
retval = op_array;
}
}
zend_restore_lexical_state(&original_lex_state TSRMLS_CC);
2008-03-16 21:23:02 +00:00
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) {
2008-08-15 19:47:33 +00:00
zend_message_dispatcher(ZMSG_FAILED_HIGHLIGHT_FOPEN, filename TSRMLS_CC);
zend_restore_lexical_state(&original_lex_state TSRMLS_CC);
2008-03-16 21:23:02 +00:00
return FAILURE;
}
zend_highlight(syntax_highlighter_ini TSRMLS_CC);
if (SCNG(script_filtered)) {
efree(SCNG(script_filtered));
SCNG(script_filtered) = NULL;
}
2008-03-16 21:23:02 +00:00
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) {
zend_restore_lexical_state(&original_lex_state TSRMLS_CC);
2008-03-16 21:23:02 +00:00
return FAILURE;
}
BEGIN(INITIAL);
zend_highlight(syntax_highlighter_ini TSRMLS_CC);
if (SCNG(script_filtered)) {
efree(SCNG(script_filtered));
SCNG(script_filtered) = NULL;
}
2008-03-16 21:23:02 +00:00
zend_restore_lexical_state(&original_lex_state TSRMLS_CC);
zval_dtor(str);
return SUCCESS;
}
ZEND_API void zend_multibyte_yyinput_again(zend_encoding_filter old_input_filter, zend_encoding *old_encoding TSRMLS_DC)
{
size_t length;
2010-12-20 12:41:35 +00:00
unsigned char *new_yy_start;
/* convert and set */
if (!SCNG(input_filter)) {
2010-12-20 12:41:35 +00:00
if (SCNG(script_filtered)) {
efree(SCNG(script_filtered));
SCNG(script_filtered) = NULL;
}
SCNG(script_filtered_size) = 0;
length = SCNG(script_org_size);
new_yy_start = SCNG(script_org);
} else {
if ((size_t)-1 == SCNG(input_filter)(&new_yy_start, &length, SCNG(script_org), SCNG(script_org_size) TSRMLS_CC)) {
2010-12-20 12:41:35 +00:00
zend_error_noreturn(E_COMPILE_ERROR, "Could not convert the script from the detected "
"encoding \"%s\" to a compatible encoding", zend_multibyte_get_encoding_name(LANG_SCNG(script_encoding)));
}
2010-12-20 12:41:35 +00:00
SCNG(script_filtered) = new_yy_start;
SCNG(script_filtered_size) = length;
}
2010-12-20 12:41:35 +00:00
SCNG(yy_cursor) = new_yy_start + (SCNG(yy_cursor) - SCNG(yy_start));
SCNG(yy_marker) = new_yy_start + (SCNG(yy_marker) - SCNG(yy_start));
SCNG(yy_text) = new_yy_start + (SCNG(yy_text) - SCNG(yy_start));
SCNG(yy_limit) = new_yy_start + (SCNG(yy_limit) - SCNG(yy_start));
2010-12-20 12:41:35 +00:00
SCNG(yy_start) = new_yy_start;
}
# define zend_copy_value(zendlval, yytext, yyleng) \
if (SCNG(output_filter)) { \
2008-07-24 22:21:41 +00:00
size_t sz = 0; \
SCNG(output_filter)((unsigned char **)&(zendlval->value.str.val), &sz, (unsigned char *)yytext, (size_t)yyleng TSRMLS_CC); \
zendlval->value.str.len = sz; \
} else { \
zendlval->value.str.val = (char *) estrndup(yytext, yyleng); \
zendlval->value.str.len = yyleng; \
}
2008-03-16 21:23:02 +00:00
static void zend_scan_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 = zendlval->value.str.val;
end = s+zendlval->value.str.len;
while (s<end) {
if (*s=='\\') {
s++;
if (s >= end) {
*t++ = '\\';
break;
}
2008-03-16 21:23:02 +00:00
switch(*s) {
case 'n':
*t++ = '\n';
zendlval->value.str.len--;
break;
case 'r':
*t++ = '\r';
zendlval->value.str.len--;
break;
case 't':
*t++ = '\t';
zendlval->value.str.len--;
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;
zendlval->value.str.len--;
break;
case 'x':
case 'X':
if (ZEND_IS_HEX(*(s+1))) {
char hex_buf[3] = { 0, 0, 0 };
zendlval->value.str.len--; /* for the 'x' */
hex_buf[0] = *(++s);
zendlval->value.str.len--;
if (ZEND_IS_HEX(*(s+1))) {
hex_buf[1] = *(++s);
zendlval->value.str.len--;
}
*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;
zendlval->value.str.len--;
if (ZEND_IS_OCT(*(s+1))) {
octal_buf[1] = *(++s);
zendlval->value.str.len--;
if (ZEND_IS_OCT(*(s+1))) {
octal_buf[2] = *(++s);
zendlval->value.str.len--;
}
}
*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;
if (SCNG(output_filter)) {
2008-07-24 22:21:41 +00:00
size_t sz = 0;
s = zendlval->value.str.val;
2008-07-24 22:21:41 +00:00
SCNG(output_filter)((unsigned char **)&(zendlval->value.str.val), &sz, (unsigned char *)s, (size_t)zendlval->value.str.len TSRMLS_CC);
zendlval->value.str.len = sz;
efree(s);
}
2008-03-16 21:23:02 +00:00
}
int lex_scan(zval *zendlval TSRMLS_DC)
{
restart:
SCNG(yy_text) = YYCURSOR;
yymore_restart:
2008-07-08 15:17:52 +00:00
2011-04-03 17:20:34 +00:00
#line 986 "Zend/zend_language_scanner.c"
2008-03-16 21:23:02 +00:00
{
YYCTYPE yych;
unsigned int yyaccept = 0;
2009-05-05 01:44:52 +00:00
if (YYGETCONDITION() < 5) {
if (YYGETCONDITION() < 2) {
if (YYGETCONDITION() < 1) {
goto yyc_ST_IN_SCRIPTING;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
goto yyc_ST_LOOKING_FOR_PROPERTY;
2008-03-16 21:23:02 +00:00
}
} else {
2009-05-05 01:44:52 +00:00
if (YYGETCONDITION() < 3) {
goto yyc_ST_BACKQUOTE;
} else {
2009-05-05 01:44:52 +00:00
if (YYGETCONDITION() < 4) {
goto yyc_ST_DOUBLE_QUOTES;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
goto yyc_ST_HEREDOC;
2008-03-16 21:23:02 +00:00
}
}
}
} else {
2009-05-05 01:44:52 +00:00
if (YYGETCONDITION() < 7) {
if (YYGETCONDITION() < 6) {
goto yyc_ST_LOOKING_FOR_VARNAME;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
goto yyc_ST_VAR_OFFSET;
2008-03-16 21:23:02 +00:00
}
} else {
2009-05-05 01:44:52 +00:00
if (YYGETCONDITION() < 8) {
goto yyc_INITIAL;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (YYGETCONDITION() < 9) {
goto yyc_ST_END_HEREDOC;
2008-03-16 21:23:02 +00:00
} else {
goto yyc_ST_NOWDOC;
2008-03-16 21:23:02 +00:00
}
}
}
}
/* *********************************** */
yyc_INITIAL:
{
static const unsigned char yybm[] = {
2008-07-08 15:17:52 +00:00
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,
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,
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,
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,
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,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
2008-03-16 21:23:02 +00:00
};
YYDEBUG(0, *YYCURSOR);
YYFILL(8);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '<') goto yy4;
2008-03-16 21:23:02 +00:00
YYDEBUG(2, *YYCURSOR);
yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
if (yych <= '?') {
2009-05-05 01:44:52 +00:00
if (yych == '%') goto yy7;
if (yych >= '?') goto yy5;
2008-03-16 21:23:02 +00:00
} else {
if (yych <= 'S') {
2009-05-05 01:44:52 +00:00
if (yych >= 'S') goto yy9;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych == 's') goto yy9;
2008-03-16 21:23:02 +00:00
}
}
2009-05-05 01:44:52 +00:00
yy3:
YYDEBUG(3, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1718 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
if (YYCURSOR > YYLIMIT) {
return 0;
}
2008-03-16 21:23:02 +00:00
2008-07-06 15:53:37 +00:00
inline_char_handler:
2008-03-16 21:23:02 +00:00
while (1) {
YYCTYPE *ptr = memchr(YYCURSOR, '<', YYLIMIT - YYCURSOR);
2009-05-05 01:44:52 +00:00
YYCURSOR = ptr ? ptr + 1 : YYLIMIT;
2008-03-16 21:23:02 +00:00
2009-05-05 01:44:52 +00:00
if (YYCURSOR < YYLIMIT) {
switch (*YYCURSOR) {
case '?':
if (CG(short_tags) || !strncasecmp(YYCURSOR + 1, "php", 3)) { /* Assume [ \t\n\r] follows "php" */
break;
}
continue;
case '%':
if (CG(asp_tags)) {
break;
}
continue;
case 's':
case 'S':
/* Probably NOT an opening PHP <script> tag, so don't end the HTML chunk yet
* If it is, the PHP <script> tag rule checks for any HTML scanned before it */
YYCURSOR--;
yymore();
default:
continue;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
YYCURSOR--;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
break;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
inline_html:
yyleng = YYCURSOR - SCNG(yy_text);
if (SCNG(output_filter)) {
int readsize;
2008-07-24 22:21:41 +00:00
size_t sz = 0;
readsize = SCNG(output_filter)((unsigned char **)&(zendlval->value.str.val), &sz, (unsigned char *)yytext, (size_t)yyleng TSRMLS_CC);
zendlval->value.str.len = sz;
if (readsize < yyleng) {
yyless(readsize);
}
} else {
zendlval->value.str.val = (char *) estrndup(yytext, yyleng);
zendlval->value.str.len = yyleng;
}
2008-03-16 21:23:02 +00:00
zendlval->type = IS_STRING;
HANDLE_NEWLINES(yytext, yyleng);
return T_INLINE_HTML;
}
2011-04-03 17:20:34 +00:00
#line 1145 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy4:
YYDEBUG(4, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
goto yy3;
yy5:
YYDEBUG(5, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyaccept = 1;
yych = *(YYMARKER = ++YYCURSOR);
if (yych <= 'O') {
2009-05-05 01:44:52 +00:00
if (yych == '=') goto yy45;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'P') goto yy47;
if (yych == 'p') goto yy47;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
yy6:
YYDEBUG(6, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1706 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
if (CG(short_tags)) {
zendlval->value.str.val = yytext; /* no copying - intentional */
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
BEGIN(ST_IN_SCRIPTING);
return T_OPEN_TAG;
} else {
2008-07-08 15:17:52 +00:00
goto inline_char_handler;
2008-03-16 21:23:02 +00:00
}
}
2011-04-03 17:20:34 +00:00
#line 1175 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy7:
YYDEBUG(7, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
if ((yych = *YYCURSOR) == '=') goto yy43;
YYDEBUG(8, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1683 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
if (CG(asp_tags)) {
zendlval->value.str.val = yytext; /* no copying - intentional */
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
BEGIN(ST_IN_SCRIPTING);
return T_OPEN_TAG;
} else {
2008-07-08 15:17:52 +00:00
goto inline_char_handler;
2008-03-16 21:23:02 +00:00
}
}
2011-04-03 17:20:34 +00:00
#line 1194 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy9:
YYDEBUG(9, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == 'C') goto yy11;
if (yych == 'c') goto yy11;
yy10:
YYDEBUG(10, *YYCURSOR);
YYCURSOR = YYMARKER;
if (yyaccept <= 0) {
2009-05-05 01:44:52 +00:00
goto yy3;
} else {
2009-05-05 01:44:52 +00:00
goto yy6;
}
2009-05-05 01:44:52 +00:00
yy11:
YYDEBUG(11, *YYCURSOR);
yych = *++YYCURSOR;
if (yych == 'R') goto yy12;
if (yych != 'r') goto yy10;
yy12:
YYDEBUG(12, *YYCURSOR);
yych = *++YYCURSOR;
if (yych == 'I') goto yy13;
if (yych != 'i') goto yy10;
2008-07-08 15:17:52 +00:00
yy13:
YYDEBUG(13, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == 'P') goto yy14;
if (yych != 'p') goto yy10;
2008-07-08 15:17:52 +00:00
yy14:
YYDEBUG(14, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == 'T') goto yy15;
if (yych != 't') goto yy10;
2008-07-08 15:17:52 +00:00
yy15:
YYDEBUG(15, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == 'L') goto yy10;
if (yych == 'l') goto yy10;
goto yy17;
2008-03-16 21:23:02 +00:00
yy16:
YYDEBUG(16, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
YYFILL(8);
yych = *YYCURSOR;
2008-03-16 21:23:02 +00:00
yy17:
YYDEBUG(17, *YYCURSOR);
2009-05-05 01:44:52 +00:00
if (yybm[0+yych] & 128) {
goto yy16;
}
if (yych == 'L') goto yy18;
if (yych != 'l') goto yy10;
2008-03-16 21:23:02 +00:00
yy18:
YYDEBUG(18, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych == 'A') goto yy19;
if (yych != 'a') goto yy10;
2008-03-16 21:23:02 +00:00
yy19:
YYDEBUG(19, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych == 'N') goto yy20;
if (yych != 'n') goto yy10;
2008-03-16 21:23:02 +00:00
yy20:
YYDEBUG(20, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == 'G') goto yy21;
if (yych != 'g') goto yy10;
2008-03-16 21:23:02 +00:00
yy21:
YYDEBUG(21, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == 'U') goto yy22;
if (yych != 'u') goto yy10;
2008-03-16 21:23:02 +00:00
yy22:
YYDEBUG(22, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == 'A') goto yy23;
if (yych != 'a') goto yy10;
2008-03-16 21:23:02 +00:00
yy23:
YYDEBUG(23, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == 'G') goto yy24;
if (yych != 'g') goto yy10;
2008-03-16 21:23:02 +00:00
yy24:
YYDEBUG(24, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == 'E') goto yy25;
if (yych != 'e') goto yy10;
2008-03-16 21:23:02 +00:00
yy25:
YYDEBUG(25, *YYCURSOR);
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(26, *YYCURSOR);
if (yych <= '\r') {
2009-05-05 01:44:52 +00:00
if (yych <= 0x08) goto yy10;
if (yych <= '\n') goto yy25;
if (yych <= '\f') goto yy10;
goto yy25;
2008-03-16 21:23:02 +00:00
} else {
if (yych <= ' ') {
2009-05-05 01:44:52 +00:00
if (yych <= 0x1F) goto yy10;
goto yy25;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych != '=') goto yy10;
2008-03-16 21:23:02 +00:00
}
}
2009-05-05 01:44:52 +00:00
yy27:
YYDEBUG(27, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(5);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(28, *YYCURSOR);
2008-03-16 21:23:02 +00:00
if (yych <= '!') {
if (yych <= '\f') {
2009-05-05 01:44:52 +00:00
if (yych <= 0x08) goto yy10;
if (yych <= '\n') goto yy27;
goto yy10;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= '\r') goto yy27;
if (yych == ' ') goto yy27;
goto yy10;
2008-03-16 21:23:02 +00:00
}
} else {
if (yych <= 'O') {
2009-05-05 01:44:52 +00:00
if (yych <= '"') goto yy30;
if (yych == '\'') goto yy31;
goto yy10;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'P') goto yy29;
if (yych != 'p') goto yy10;
2008-03-16 21:23:02 +00:00
}
}
2009-05-05 01:44:52 +00:00
yy29:
YYDEBUG(29, *YYCURSOR);
yych = *++YYCURSOR;
if (yych == 'H') goto yy42;
if (yych == 'h') goto yy42;
goto yy10;
yy30:
YYDEBUG(30, *YYCURSOR);
yych = *++YYCURSOR;
if (yych == 'P') goto yy39;
if (yych == 'p') goto yy39;
goto yy10;
2008-07-08 15:17:52 +00:00
yy31:
YYDEBUG(31, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == 'P') goto yy32;
if (yych != 'p') goto yy10;
2008-07-08 15:17:52 +00:00
yy32:
YYDEBUG(32, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == 'H') goto yy33;
if (yych != 'h') goto yy10;
2008-07-08 15:17:52 +00:00
yy33:
YYDEBUG(33, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2008-07-08 15:17:52 +00:00
if (yych == 'P') goto yy34;
2009-05-05 01:44:52 +00:00
if (yych != 'p') goto yy10;
2008-07-08 15:17:52 +00:00
yy34:
YYDEBUG(34, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '\'') goto yy10;
2008-07-08 15:17:52 +00:00
yy35:
YYDEBUG(35, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(36, *YYCURSOR);
if (yych <= '\r') {
2009-05-05 01:44:52 +00:00
if (yych <= 0x08) goto yy10;
if (yych <= '\n') goto yy35;
if (yych <= '\f') goto yy10;
goto yy35;
2008-03-16 21:23:02 +00:00
} else {
if (yych <= ' ') {
2009-05-05 01:44:52 +00:00
if (yych <= 0x1F) goto yy10;
goto yy35;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych != '>') goto yy10;
2008-03-16 21:23:02 +00:00
}
}
2009-05-05 01:44:52 +00:00
YYDEBUG(37, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(38, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1639 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
YYCTYPE *bracket = zend_memrchr(yytext, '<', yyleng - (sizeof("script language=php>") - 1));
if (bracket != SCNG(yy_text)) {
/* Handle previously scanned HTML, as possible <script> tags found are assumed to not be PHP's */
YYCURSOR = bracket;
goto inline_html;
}
2008-03-16 21:23:02 +00:00
HANDLE_NEWLINES(yytext, yyleng);
zendlval->value.str.val = yytext; /* no copying - intentional */
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
BEGIN(ST_IN_SCRIPTING);
return T_OPEN_TAG;
}
2011-04-03 17:20:34 +00:00
#line 1397 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy39:
YYDEBUG(39, *YYCURSOR);
yych = *++YYCURSOR;
if (yych == 'H') goto yy40;
if (yych != 'h') goto yy10;
yy40:
YYDEBUG(40, *YYCURSOR);
yych = *++YYCURSOR;
if (yych == 'P') goto yy41;
if (yych != 'p') goto yy10;
2008-07-08 15:17:52 +00:00
yy41:
YYDEBUG(41, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == '"') goto yy35;
goto yy10;
2008-07-08 15:17:52 +00:00
yy42:
YYDEBUG(42, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == 'P') goto yy35;
if (yych == 'p') goto yy35;
goto yy10;
2008-07-08 15:17:52 +00:00
yy43:
YYDEBUG(43, *YYCURSOR);
++YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(44, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1657 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
if (CG(asp_tags)) {
zendlval->value.str.val = yytext; /* no copying - intentional */
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
BEGIN(ST_IN_SCRIPTING);
return T_OPEN_TAG_WITH_ECHO;
} else {
2008-07-08 15:17:52 +00:00
goto inline_char_handler;
2008-03-16 21:23:02 +00:00
}
}
2011-04-03 17:20:34 +00:00
#line 1436 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy45:
YYDEBUG(45, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(46, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1670 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
if (CG(short_tags)) {
zendlval->value.str.val = yytext; /* no copying - intentional */
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
BEGIN(ST_IN_SCRIPTING);
return T_OPEN_TAG_WITH_ECHO;
} else {
2008-07-08 15:17:52 +00:00
goto inline_char_handler;
2008-03-16 21:23:02 +00:00
}
}
2011-04-03 17:20:34 +00:00
#line 1454 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy47:
YYDEBUG(47, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == 'H') goto yy48;
if (yych != 'h') goto yy10;
yy48:
YYDEBUG(48, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == 'P') goto yy49;
if (yych != 'p') goto yy10;
yy49:
YYDEBUG(49, *YYCURSOR);
yych = *++YYCURSOR;
if (yych <= '\f') {
2009-05-05 01:44:52 +00:00
if (yych <= 0x08) goto yy10;
if (yych >= '\v') goto yy10;
} else {
2009-05-05 01:44:52 +00:00
if (yych <= '\r') goto yy52;
if (yych != ' ') goto yy10;
}
2009-05-05 01:44:52 +00:00
yy50:
YYDEBUG(50, *YYCURSOR);
++YYCURSOR;
2009-05-05 01:44:52 +00:00
yy51:
YYDEBUG(51, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1696 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
zendlval->value.str.val = yytext; /* no copying - intentional */
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
HANDLE_NEWLINE(yytext[yyleng-1]);
BEGIN(ST_IN_SCRIPTING);
return T_OPEN_TAG;
}
2011-04-03 17:20:34 +00:00
#line 1490 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy52:
YYDEBUG(52, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
if ((yych = *YYCURSOR) == '\n') goto yy50;
goto yy51;
2008-03-16 21:23:02 +00:00
}
/* *********************************** */
yyc_ST_BACKQUOTE:
{
static const unsigned char yybm[] = {
2009-05-05 01:44:52 +00:00
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,
2008-03-16 21:23:02 +00:00
};
2009-05-05 01:44:52 +00:00
YYDEBUG(53, *YYCURSOR);
YYFILL(2);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych <= '_') {
if (yych != '$') goto yy60;
} else {
2009-05-05 01:44:52 +00:00
if (yych <= '`') goto yy58;
if (yych == '{') goto yy57;
goto yy60;
}
YYDEBUG(55, *YYCURSOR);
++YYCURSOR;
if ((yych = *YYCURSOR) <= '_') {
if (yych <= '@') goto yy56;
if (yych <= 'Z') goto yy63;
if (yych >= '_') goto yy63;
} else {
if (yych <= 'z') {
if (yych >= 'a') goto yy63;
} else {
2009-05-05 01:44:52 +00:00
if (yych <= '{') goto yy66;
if (yych >= 0x7F) goto yy63;
}
}
2009-05-05 01:44:52 +00:00
yy56:
YYDEBUG(56, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 2169 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
if (YYCURSOR > YYLIMIT) {
return 0;
}
if (yytext[0] == '\\' && YYCURSOR < YYLIMIT) {
YYCURSOR++;
}
while (YYCURSOR < YYLIMIT) {
switch (*YYCURSOR++) {
case '`':
break;
case '$':
if (IS_LABEL_START(*YYCURSOR) || *YYCURSOR == '{') {
break;
}
continue;
case '{':
if (*YYCURSOR == '$') {
break;
}
continue;
case '\\':
if (YYCURSOR < YYLIMIT) {
YYCURSOR++;
}
/* fall through */
default:
continue;
}
YYCURSOR--;
break;
}
yyleng = YYCURSOR - SCNG(yy_text);
zend_scan_escape_string(zendlval, yytext, yyleng, '`' TSRMLS_CC);
return T_ENCAPSED_AND_WHITESPACE;
}
2011-04-03 17:20:34 +00:00
#line 1602 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy57:
YYDEBUG(57, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == '$') goto yy61;
goto yy56;
yy58:
YYDEBUG(58, *YYCURSOR);
++YYCURSOR;
YYDEBUG(59, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 2113 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
BEGIN(ST_IN_SCRIPTING);
return '`';
}
2011-04-03 17:20:34 +00:00
#line 1618 "Zend/zend_language_scanner.c"
yy60:
YYDEBUG(60, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
goto yy56;
yy61:
YYDEBUG(61, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
YYDEBUG(62, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 2100 "Zend/zend_language_scanner.l"
{
zendlval->value.lval = (long) '{';
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
2009-05-05 01:44:52 +00:00
yyless(1);
return T_CURLY_OPEN;
}
2011-04-03 17:20:34 +00:00
#line 1635 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy63:
YYDEBUG(63, *YYCURSOR);
yyaccept = 0;
2008-03-16 21:23:02 +00:00
YYMARKER = ++YYCURSOR;
2009-05-05 01:44:52 +00:00
YYFILL(3);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
YYDEBUG(64, *YYCURSOR);
2009-05-05 01:44:52 +00:00
if (yybm[0+yych] & 128) {
goto yy63;
}
if (yych == '-') goto yy68;
if (yych == '[') goto yy70;
yy65:
YYDEBUG(65, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1800 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
zendlval->type = IS_STRING;
return T_VARIABLE;
}
2011-04-03 17:20:34 +00:00
#line 1657 "Zend/zend_language_scanner.c"
yy66:
YYDEBUG(66, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYDEBUG(67, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1432 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
yy_push_state(ST_LOOKING_FOR_VARNAME TSRMLS_CC);
return T_DOLLAR_OPEN_CURLY_BRACES;
2008-03-16 21:23:02 +00:00
}
2011-04-03 17:20:34 +00:00
#line 1668 "Zend/zend_language_scanner.c"
yy68:
YYDEBUG(68, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych == '>') goto yy72;
yy69:
YYDEBUG(69, *YYCURSOR);
2009-05-05 01:44:52 +00:00
YYCURSOR = YYMARKER;
goto yy65;
yy70:
YYDEBUG(70, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYDEBUG(71, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1792 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
yyless(yyleng - 1);
yy_push_state(ST_VAR_OFFSET TSRMLS_CC);
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
zendlval->type = IS_STRING;
return T_VARIABLE;
}
2011-04-03 17:20:34 +00:00
#line 1690 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy72:
YYDEBUG(72, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych <= '_') {
if (yych <= '@') goto yy69;
if (yych <= 'Z') goto yy73;
if (yych <= '^') goto yy69;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= '`') goto yy69;
if (yych <= 'z') goto yy73;
if (yych <= '~') goto yy69;
2008-03-16 21:23:02 +00:00
}
yy73:
YYDEBUG(73, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
YYDEBUG(74, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1782 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
yyless(yyleng - 3);
yy_push_state(ST_LOOKING_FOR_PROPERTY TSRMLS_CC);
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
zendlval->type = IS_STRING;
return T_VARIABLE;
2008-03-16 21:23:02 +00:00
}
2011-04-03 17:20:34 +00:00
#line 1716 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
}
/* *********************************** */
yyc_ST_DOUBLE_QUOTES:
{
static const unsigned char yybm[] = {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 0, 0, 0, 0, 0, 0,
0, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 0, 0, 0, 0, 128,
0, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 0, 0, 0, 0, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
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(75, *YYCURSOR);
2009-05-05 01:44:52 +00:00
YYFILL(2);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych <= '#') {
if (yych == '"') goto yy80;
goto yy82;
} else {
if (yych <= '$') goto yy77;
if (yych == '{') goto yy79;
goto yy82;
2008-03-16 21:23:02 +00:00
}
yy77:
YYDEBUG(77, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
if ((yych = *YYCURSOR) <= '_') {
if (yych <= '@') goto yy78;
if (yych <= 'Z') goto yy85;
if (yych >= '_') goto yy85;
} else {
if (yych <= 'z') {
if (yych >= 'a') goto yy85;
} else {
if (yych <= '{') goto yy88;
if (yych >= 0x7F) goto yy85;
}
}
yy78:
YYDEBUG(78, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 2119 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
if (GET_DOUBLE_QUOTES_SCANNED_LENGTH()) {
YYCURSOR += GET_DOUBLE_QUOTES_SCANNED_LENGTH() - 1;
SET_DOUBLE_QUOTES_SCANNED_LENGTH(0);
goto double_quotes_scan_done;
}
if (YYCURSOR > YYLIMIT) {
return 0;
}
if (yytext[0] == '\\' && YYCURSOR < YYLIMIT) {
YYCURSOR++;
}
while (YYCURSOR < YYLIMIT) {
switch (*YYCURSOR++) {
case '"':
break;
case '$':
if (IS_LABEL_START(*YYCURSOR) || *YYCURSOR == '{') {
break;
}
continue;
case '{':
if (*YYCURSOR == '$') {
break;
}
continue;
case '\\':
if (YYCURSOR < YYLIMIT) {
YYCURSOR++;
}
/* fall through */
default:
continue;
}
YYCURSOR--;
break;
}
double_quotes_scan_done:
yyleng = YYCURSOR - SCNG(yy_text);
zend_scan_escape_string(zendlval, yytext, yyleng, '"' TSRMLS_CC);
return T_ENCAPSED_AND_WHITESPACE;
}
2011-04-03 17:20:34 +00:00
#line 1833 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy79:
YYDEBUG(79, *YYCURSOR);
yych = *++YYCURSOR;
if (yych == '$') goto yy83;
goto yy78;
yy80:
YYDEBUG(80, *YYCURSOR);
++YYCURSOR;
YYDEBUG(81, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 2108 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
BEGIN(ST_IN_SCRIPTING);
return '"';
}
2011-04-03 17:20:34 +00:00
#line 1849 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy82:
YYDEBUG(82, *YYCURSOR);
yych = *++YYCURSOR;
goto yy78;
yy83:
YYDEBUG(83, *YYCURSOR);
++YYCURSOR;
YYDEBUG(84, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 2100 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
zendlval->value.lval = (long) '{';
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
yyless(1);
return T_CURLY_OPEN;
}
2011-04-03 17:20:34 +00:00
#line 1866 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy85:
YYDEBUG(85, *YYCURSOR);
yyaccept = 0;
2008-03-16 21:23:02 +00:00
YYMARKER = ++YYCURSOR;
YYFILL(3);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(86, *YYCURSOR);
2008-03-16 21:23:02 +00:00
if (yybm[0+yych] & 128) {
2009-05-05 01:44:52 +00:00
goto yy85;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
if (yych == '-') goto yy90;
if (yych == '[') goto yy92;
yy87:
YYDEBUG(87, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1800 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
zendlval->type = IS_STRING;
return T_VARIABLE;
}
2011-04-03 17:20:34 +00:00
#line 1888 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy88:
YYDEBUG(88, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(89, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1432 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
yy_push_state(ST_LOOKING_FOR_VARNAME TSRMLS_CC);
return T_DOLLAR_OPEN_CURLY_BRACES;
}
2011-04-03 17:20:34 +00:00
#line 1899 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy90:
YYDEBUG(90, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == '>') goto yy94;
yy91:
YYDEBUG(91, *YYCURSOR);
YYCURSOR = YYMARKER;
goto yy87;
yy92:
YYDEBUG(92, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(93, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1792 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
yyless(yyleng - 1);
2008-03-16 21:23:02 +00:00
yy_push_state(ST_VAR_OFFSET TSRMLS_CC);
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
2008-03-16 21:23:02 +00:00
zendlval->type = IS_STRING;
return T_VARIABLE;
}
2011-04-03 17:20:34 +00:00
#line 1921 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy94:
YYDEBUG(94, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
if (yych <= '_') {
2009-05-05 01:44:52 +00:00
if (yych <= '@') goto yy91;
if (yych <= 'Z') goto yy95;
if (yych <= '^') goto yy91;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= '`') goto yy91;
if (yych <= 'z') goto yy95;
if (yych <= '~') goto yy91;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
yy95:
YYDEBUG(95, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(96, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1782 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
yyless(yyleng - 3);
2008-03-16 21:23:02 +00:00
yy_push_state(ST_LOOKING_FOR_PROPERTY TSRMLS_CC);
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
2008-03-16 21:23:02 +00:00
zendlval->type = IS_STRING;
return T_VARIABLE;
}
2011-04-03 17:20:34 +00:00
#line 1947 "Zend/zend_language_scanner.c"
2008-03-16 21:23:02 +00:00
}
/* *********************************** */
2009-05-05 01:44:52 +00:00
yyc_ST_END_HEREDOC:
YYDEBUG(97, *YYCURSOR);
YYFILL(1);
yych = *YYCURSOR;
YYDEBUG(99, *YYCURSOR);
++YYCURSOR;
YYDEBUG(100, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 2087 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
YYCURSOR += CG(heredoc_len) - 1;
yyleng = CG(heredoc_len);
Z_STRVAL_P(zendlval) = CG(heredoc);
Z_STRLEN_P(zendlval) = CG(heredoc_len);
CG(heredoc) = NULL;
CG(heredoc_len) = 0;
BEGIN(ST_IN_SCRIPTING);
return T_END_HEREDOC;
}
2011-04-03 17:20:34 +00:00
#line 1970 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
/* *********************************** */
yyc_ST_HEREDOC:
2008-03-16 21:23:02 +00:00
{
static const unsigned char yybm[] = {
2009-05-05 01:44:52 +00:00
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,
2009-05-05 01:44:52 +00:00
128, 128, 0, 0, 0, 0, 0, 0,
0, 128, 128, 128, 128, 128, 128, 128,
2008-03-16 21:23:02 +00:00
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
2009-05-05 01:44:52 +00:00
128, 128, 128, 0, 0, 0, 0, 128,
0, 128, 128, 128, 128, 128, 128, 128,
2008-03-16 21:23:02 +00:00
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
2009-05-05 01:44:52 +00:00
128, 128, 128, 0, 0, 0, 0, 128,
2008-03-16 21:23:02 +00:00
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
};
2009-05-05 01:44:52 +00:00
YYDEBUG(101, *YYCURSOR);
YYFILL(2);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == '$') goto yy103;
if (yych == '{') goto yy105;
goto yy106;
yy103:
YYDEBUG(103, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
if ((yych = *YYCURSOR) <= '_') {
if (yych <= '@') goto yy104;
if (yych <= 'Z') goto yy109;
if (yych >= '_') goto yy109;
} else {
if (yych <= 'z') {
if (yych >= 'a') goto yy109;
} else {
if (yych <= '{') goto yy112;
if (yych >= 0x7F) goto yy109;
}
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
yy104:
YYDEBUG(104, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 2211 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
int newline = 0;
if (YYCURSOR > YYLIMIT) {
return 0;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
YYCURSOR--;
while (YYCURSOR < YYLIMIT) {
switch (*YYCURSOR++) {
case '\r':
if (*YYCURSOR == '\n') {
YYCURSOR++;
}
/* fall through */
case '\n':
/* Check for ending label on the next line */
if (IS_LABEL_START(*YYCURSOR) && CG(heredoc_len) < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, CG(heredoc), CG(heredoc_len))) {
YYCTYPE *end = YYCURSOR + CG(heredoc_len);
if (*end == ';') {
end++;
}
if (*end == '\n' || *end == '\r') {
/* newline before label will be subtracted from returned text, but
* yyleng/yytext will include it, for zend_highlight/strip, tokenizer, etc. */
if (YYCURSOR[-2] == '\r' && YYCURSOR[-1] == '\n') {
newline = 2; /* Windows newline */
} else {
newline = 1;
}
CG(increment_lineno) = 1; /* For newline before label */
BEGIN(ST_END_HEREDOC);
goto heredoc_scan_done;
}
}
continue;
case '$':
if (IS_LABEL_START(*YYCURSOR) || *YYCURSOR == '{') {
break;
}
continue;
case '{':
if (*YYCURSOR == '$') {
break;
}
continue;
case '\\':
if (YYCURSOR < YYLIMIT && *YYCURSOR != '\n' && *YYCURSOR != '\r') {
YYCURSOR++;
}
/* fall through */
default:
continue;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
YYCURSOR--;
break;
}
heredoc_scan_done:
yyleng = YYCURSOR - SCNG(yy_text);
zend_scan_escape_string(zendlval, yytext, yyleng - newline, 0 TSRMLS_CC);
return T_ENCAPSED_AND_WHITESPACE;
}
2011-04-03 17:20:34 +00:00
#line 2103 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy105:
YYDEBUG(105, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych == '$') goto yy107;
goto yy104;
yy106:
YYDEBUG(106, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
goto yy104;
yy107:
YYDEBUG(107, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
YYDEBUG(108, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 2100 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
zendlval->value.lval = (long) '{';
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
yyless(1);
return T_CURLY_OPEN;
2008-03-16 21:23:02 +00:00
}
2011-04-03 17:20:34 +00:00
#line 2125 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy109:
YYDEBUG(109, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyaccept = 0;
YYMARKER = ++YYCURSOR;
YYFILL(3);
yych = *YYCURSOR;
YYDEBUG(110, *YYCURSOR);
if (yybm[0+yych] & 128) {
goto yy109;
}
if (yych == '-') goto yy114;
if (yych == '[') goto yy116;
yy111:
YYDEBUG(111, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1800 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
zendlval->type = IS_STRING;
return T_VARIABLE;
2008-03-16 21:23:02 +00:00
}
2011-04-03 17:20:34 +00:00
#line 2147 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy112:
YYDEBUG(112, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
YYDEBUG(113, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1432 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
yy_push_state(ST_LOOKING_FOR_VARNAME TSRMLS_CC);
return T_DOLLAR_OPEN_CURLY_BRACES;
}
2011-04-03 17:20:34 +00:00
#line 2158 "Zend/zend_language_scanner.c"
yy114:
YYDEBUG(114, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == '>') goto yy118;
yy115:
YYDEBUG(115, *YYCURSOR);
2009-05-05 01:44:52 +00:00
YYCURSOR = YYMARKER;
goto yy111;
yy116:
YYDEBUG(116, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
YYDEBUG(117, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1792 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
yyless(yyleng - 1);
yy_push_state(ST_VAR_OFFSET TSRMLS_CC);
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
zendlval->type = IS_STRING;
return T_VARIABLE;
}
2011-04-03 17:20:34 +00:00
#line 2180 "Zend/zend_language_scanner.c"
yy118:
YYDEBUG(118, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych <= '_') {
if (yych <= '@') goto yy115;
if (yych <= 'Z') goto yy119;
if (yych <= '^') goto yy115;
} else {
if (yych <= '`') goto yy115;
if (yych <= 'z') goto yy119;
if (yych <= '~') goto yy115;
2008-03-16 21:23:02 +00:00
}
yy119:
YYDEBUG(119, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYDEBUG(120, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1782 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
yyless(yyleng - 3);
yy_push_state(ST_LOOKING_FOR_PROPERTY TSRMLS_CC);
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
zendlval->type = IS_STRING;
return T_VARIABLE;
2008-03-16 21:23:02 +00:00
}
2011-04-03 17:20:34 +00:00
#line 2206 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
}
/* *********************************** */
yyc_ST_IN_SCRIPTING:
{
static const unsigned char yybm[] = {
0, 0, 0, 0, 0, 0, 0, 0,
2011-05-15 00:36:13 +00:00
0, 192, 64, 0, 0, 64, 0, 0,
2009-05-05 01:44:52 +00:00
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
2011-05-15 00:36:13 +00:00
192, 0, 0, 0, 0, 0, 0, 0,
2009-05-05 01:44:52 +00:00
0, 0, 0, 0, 0, 0, 0, 0,
2011-05-15 00:36:13 +00:00
56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 0, 0, 0, 0, 0, 0,
0, 40, 40, 40, 40, 40, 40, 8,
8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 8, 0, 0, 0, 0, 8,
0, 40, 40, 40, 40, 40, 40, 8,
8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 8, 0, 0, 0, 0, 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,
2009-05-05 01:44:52 +00:00
};
YYDEBUG(121, *YYCURSOR);
YYFILL(16);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2009-05-05 01:44:52 +00:00
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: goto yy183;
case '\t':
case '\n':
case '\r':
case ' ': goto yy139;
2011-05-15 00:36:13 +00:00
case '!': goto yy152;
2009-05-05 01:44:52 +00:00
case '"': goto yy179;
case '#': goto yy175;
case '$': goto yy164;
2011-05-15 00:36:13 +00:00
case '%': goto yy158;
case '&': goto yy159;
2009-05-05 01:44:52 +00:00
case '\'': goto yy177;
case '(': goto yy146;
case ')':
case ',':
case ';':
case '@':
case '[':
case ']':
case '~': goto yy165;
2011-05-15 00:36:13 +00:00
case '*': goto yy155;
case '+': goto yy151;
2009-05-05 01:44:52 +00:00
case '-': goto yy137;
2011-05-15 00:36:13 +00:00
case '.': goto yy157;
case '/': goto yy156;
2009-05-05 01:44:52 +00:00
case '0': goto yy171;
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9': goto yy173;
case ':': goto yy141;
2011-05-15 00:36:13 +00:00
case '<': goto yy153;
2009-05-05 01:44:52 +00:00
case '=': goto yy149;
2011-05-15 00:36:13 +00:00
case '>': goto yy154;
2009-05-05 01:44:52 +00:00
case '?': goto yy166;
case 'A':
case 'a': goto yy132;
case 'B':
case 'b': goto yy134;
case 'C':
case 'c': goto yy127;
case 'D':
case 'd': goto yy125;
case 'E':
case 'e': goto yy123;
case 'F':
case 'f': goto yy126;
case 'G':
case 'g': goto yy135;
case 'I':
case 'i': goto yy130;
case 'L':
case 'l': goto yy150;
case 'N':
case 'n': goto yy144;
case 'O':
2011-05-15 00:36:13 +00:00
case 'o': goto yy162;
2009-05-05 01:44:52 +00:00
case 'P':
case 'p': goto yy136;
case 'R':
case 'r': goto yy128;
case 'S':
case 's': goto yy133;
case 'T':
case 't': goto yy129;
case 'U':
case 'u': goto yy147;
case 'V':
case 'v': goto yy145;
case 'W':
case 'w': goto yy131;
case 'X':
case 'x': goto yy163;
case '\\': goto yy142;
2011-05-15 00:36:13 +00:00
case '^': goto yy161;
2009-05-05 01:44:52 +00:00
case '_': goto yy148;
case '`': goto yy181;
case '{': goto yy167;
2011-05-15 00:36:13 +00:00
case '|': goto yy160;
2009-05-05 01:44:52 +00:00
case '}': goto yy169;
default: goto yy174;
}
yy123:
YYDEBUG(123, *YYCURSOR);
++YYCURSOR;
YYDEBUG(-1, yych);
switch ((yych = *YYCURSOR)) {
case 'C':
2011-05-15 00:36:13 +00:00
case 'c': goto yy715;
2009-05-05 01:44:52 +00:00
case 'L':
2011-05-15 00:36:13 +00:00
case 'l': goto yy716;
2009-05-05 01:44:52 +00:00
case 'M':
2011-05-15 00:36:13 +00:00
case 'm': goto yy717;
2009-05-05 01:44:52 +00:00
case 'N':
2011-05-15 00:36:13 +00:00
case 'n': goto yy718;
2009-05-05 01:44:52 +00:00
case 'V':
2011-05-15 00:36:13 +00:00
case 'v': goto yy719;
2009-05-05 01:44:52 +00:00
case 'X':
2011-05-15 00:36:13 +00:00
case 'x': goto yy720;
2009-05-05 01:44:52 +00:00
default: goto yy186;
}
yy124:
YYDEBUG(124, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1823 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
zend_copy_value(zendlval, yytext, yyleng);
zendlval->type = IS_STRING;
return T_STRING;
}
2011-04-03 17:20:34 +00:00
#line 2393 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy125:
YYDEBUG(125, *YYCURSOR);
yych = *++YYCURSOR;
if (yych <= 'O') {
if (yych <= 'H') {
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy697;
2009-05-05 01:44:52 +00:00
goto yy186;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'I') goto yy698;
2009-05-05 01:44:52 +00:00
if (yych <= 'N') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy699;
2008-03-16 21:23:02 +00:00
}
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'h') {
2011-05-15 00:36:13 +00:00
if (yych == 'e') goto yy697;
2009-05-05 01:44:52 +00:00
goto yy186;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'i') goto yy698;
if (yych == 'o') goto yy699;
2009-05-05 01:44:52 +00:00
goto yy186;
2008-03-16 21:23:02 +00:00
}
}
yy126:
YYDEBUG(126, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych <= 'U') {
2011-05-15 00:36:13 +00:00
if (yych <= 'N') {
if (yych == 'I') goto yy676;
goto yy186;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'O') goto yy677;
2009-05-05 01:44:52 +00:00
if (yych <= 'T') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy678;
2009-05-05 01:44:52 +00:00
}
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'n') {
if (yych == 'i') goto yy676;
goto yy186;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'o') goto yy677;
if (yych == 'u') goto yy678;
goto yy186;
2009-05-05 01:44:52 +00:00
}
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
yy127:
YYDEBUG(127, *YYCURSOR);
yych = *++YYCURSOR;
if (yych <= 'O') {
if (yych <= 'K') {
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy648;
2009-05-05 01:44:52 +00:00
goto yy186;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'L') goto yy649;
2009-05-05 01:44:52 +00:00
if (yych <= 'N') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy650;
2008-03-16 21:23:02 +00:00
}
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'k') {
2011-05-15 00:36:13 +00:00
if (yych == 'a') goto yy648;
2009-05-05 01:44:52 +00:00
goto yy186;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'l') goto yy649;
if (yych == 'o') goto yy650;
2009-05-05 01:44:52 +00:00
goto yy186;
2008-03-16 21:23:02 +00:00
}
}
yy128:
YYDEBUG(128, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy630;
if (yych == 'e') goto yy630;
2009-05-05 01:44:52 +00:00
goto yy186;
yy129:
YYDEBUG(129, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych <= 'R') {
2011-05-15 00:36:13 +00:00
if (yych == 'H') goto yy618;
2009-05-05 01:44:52 +00:00
if (yych <= 'Q') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy619;
2009-05-05 01:44:52 +00:00
} else {
if (yych <= 'h') {
if (yych <= 'g') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy618;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'r') goto yy619;
2009-05-05 01:44:52 +00:00
goto yy186;
}
}
yy130:
YYDEBUG(130, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych <= 'S') {
if (yych <= 'L') {
2011-05-15 00:36:13 +00:00
if (yych == 'F') goto yy565;
2009-05-05 01:44:52 +00:00
goto yy186;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'M') goto yy567;
if (yych <= 'N') goto yy568;
2009-05-05 01:44:52 +00:00
if (yych <= 'R') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy569;
2009-05-05 01:44:52 +00:00
}
} else {
if (yych <= 'm') {
2011-05-15 00:36:13 +00:00
if (yych == 'f') goto yy565;
2009-05-05 01:44:52 +00:00
if (yych <= 'l') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy567;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'n') goto yy568;
if (yych == 's') goto yy569;
2009-05-05 01:44:52 +00:00
goto yy186;
}
}
2009-05-05 01:44:52 +00:00
yy131:
YYDEBUG(131, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'H') goto yy560;
if (yych == 'h') goto yy560;
2009-05-05 01:44:52 +00:00
goto yy186;
yy132:
YYDEBUG(132, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych <= 'S') {
if (yych <= 'M') {
2011-05-15 00:36:13 +00:00
if (yych == 'B') goto yy542;
2009-05-05 01:44:52 +00:00
goto yy186;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'N') goto yy543;
2009-05-05 01:44:52 +00:00
if (yych <= 'Q') goto yy186;
2011-05-15 00:36:13 +00:00
if (yych <= 'R') goto yy544;
goto yy545;
2009-05-05 01:44:52 +00:00
}
} else {
if (yych <= 'n') {
2011-05-15 00:36:13 +00:00
if (yych == 'b') goto yy542;
2009-05-05 01:44:52 +00:00
if (yych <= 'm') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy543;
2009-05-05 01:44:52 +00:00
} else {
if (yych <= 'q') goto yy186;
2011-05-15 00:36:13 +00:00
if (yych <= 'r') goto yy544;
if (yych <= 's') goto yy545;
2009-05-05 01:44:52 +00:00
goto yy186;
}
}
yy133:
YYDEBUG(133, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych <= 'W') {
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy530;
if (yych <= 'V') goto yy186;
goto yy531;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 't') {
if (yych <= 's') goto yy186;
goto yy530;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'w') goto yy531;
2009-05-05 01:44:52 +00:00
goto yy186;
}
2008-03-16 21:23:02 +00:00
}
yy134:
YYDEBUG(134, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
2011-05-15 00:36:13 +00:00
if (yych <= ';') {
if (yych <= '"') {
if (yych <= '!') goto yy186;
goto yy522;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == '\'') goto yy523;
goto yy186;
2009-05-05 01:44:52 +00:00
}
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'R') {
if (yych <= '<') goto yy521;
if (yych <= 'Q') goto yy186;
goto yy524;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'r') goto yy524;
goto yy186;
2009-05-05 01:44:52 +00:00
}
}
yy135:
YYDEBUG(135, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych <= 'O') {
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy511;
2009-05-05 01:44:52 +00:00
if (yych <= 'N') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy512;
2009-05-05 01:44:52 +00:00
} else {
if (yych <= 'l') {
if (yych <= 'k') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy511;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'o') goto yy512;
2009-05-05 01:44:52 +00:00
goto yy186;
}
}
yy136:
YYDEBUG(136, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych <= 'U') {
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy487;
2009-05-05 01:44:52 +00:00
if (yych <= 'T') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy488;
2009-05-05 01:44:52 +00:00
} else {
if (yych <= 'r') {
if (yych <= 'q') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy487;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'u') goto yy488;
2009-05-05 01:44:52 +00:00
goto yy186;
}
}
yy137:
YYDEBUG(137, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
if ((yych = *YYCURSOR) <= '<') {
2011-05-15 00:36:13 +00:00
if (yych == '-') goto yy483;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '=') goto yy481;
if (yych <= '>') goto yy485;
2009-05-05 01:44:52 +00:00
}
yy138:
YYDEBUG(138, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1421 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return yytext[0];
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 2623 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy139:
YYDEBUG(139, *YYCURSOR);
++YYCURSOR;
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
goto yy480;
yy140:
YYDEBUG(140, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1152 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
zendlval->value.str.val = yytext; /* no copying - intentional */
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
HANDLE_NEWLINES(yytext, yyleng);
return T_WHITESPACE;
}
2011-05-15 00:36:13 +00:00
#line 2640 "Zend/zend_language_scanner.c"
yy141:
YYDEBUG(141, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == ':') goto yy477;
2009-05-05 01:44:52 +00:00
goto yy138;
yy142:
YYDEBUG(142, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
YYDEBUG(143, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1181 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_NS_SEPARATOR;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 2655 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy144:
YYDEBUG(144, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych <= 'E') {
if (yych == 'A') goto yy465;
if (yych <= 'D') goto yy186;
goto yy466;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'a') {
if (yych <= '`') goto yy186;
goto yy465;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'e') goto yy466;
2009-05-05 01:44:52 +00:00
goto yy186;
}
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
yy145:
YYDEBUG(145, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy462;
if (yych == 'a') goto yy462;
2009-05-05 01:44:52 +00:00
goto yy186;
yy146:
YYDEBUG(146, *YYCURSOR);
yyaccept = 1;
yych = *(YYMARKER = ++YYCURSOR);
if (yych <= 'S') {
if (yych <= 'D') {
if (yych <= ' ') {
2011-05-15 00:36:13 +00:00
if (yych == '\t') goto yy379;
2009-05-05 01:44:52 +00:00
if (yych <= 0x1F) goto yy138;
2011-05-15 00:36:13 +00:00
goto yy379;
2009-05-05 01:44:52 +00:00
} else {
if (yych <= '@') goto yy138;
if (yych == 'C') goto yy138;
2011-05-15 00:36:13 +00:00
goto yy379;
2009-05-05 01:44:52 +00:00
}
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'I') {
2011-05-15 00:36:13 +00:00
if (yych == 'F') goto yy379;
2009-05-05 01:44:52 +00:00
if (yych <= 'H') goto yy138;
2011-05-15 00:36:13 +00:00
goto yy379;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy379;
2009-05-05 01:44:52 +00:00
if (yych <= 'Q') goto yy138;
2011-05-15 00:36:13 +00:00
goto yy379;
2009-05-05 01:44:52 +00:00
}
}
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'f') {
if (yych <= 'b') {
2011-05-15 00:36:13 +00:00
if (yych == 'U') goto yy379;
2009-05-05 01:44:52 +00:00
if (yych <= '`') goto yy138;
2011-05-15 00:36:13 +00:00
goto yy379;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'd') goto yy379;
2009-05-05 01:44:52 +00:00
if (yych <= 'e') goto yy138;
2011-05-15 00:36:13 +00:00
goto yy379;
2009-05-05 01:44:52 +00:00
}
} else {
if (yych <= 'o') {
2011-05-15 00:36:13 +00:00
if (yych == 'i') goto yy379;
2009-05-05 01:44:52 +00:00
if (yych <= 'n') goto yy138;
2011-05-15 00:36:13 +00:00
goto yy379;
2009-05-05 01:44:52 +00:00
} else {
if (yych <= 's') {
if (yych <= 'q') goto yy138;
2011-05-15 00:36:13 +00:00
goto yy379;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'u') goto yy379;
2009-05-05 01:44:52 +00:00
goto yy138;
}
}
}
}
yy147:
YYDEBUG(147, *YYCURSOR);
yych = *++YYCURSOR;
if (yych <= 'S') {
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy370;
2009-05-05 01:44:52 +00:00
if (yych <= 'R') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy371;
2009-05-05 01:44:52 +00:00
} else {
if (yych <= 'n') {
if (yych <= 'm') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy370;
} else {
2011-05-15 00:36:13 +00:00
if (yych == 's') goto yy371;
2009-05-05 01:44:52 +00:00
goto yy186;
}
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
yy148:
YYDEBUG(148, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == '_') goto yy296;
2009-05-05 01:44:52 +00:00
goto yy186;
yy149:
YYDEBUG(149, *YYCURSOR);
yych = *++YYCURSOR;
if (yych <= '<') goto yy138;
2011-05-15 00:36:13 +00:00
if (yych <= '=') goto yy290;
if (yych <= '>') goto yy292;
2009-05-05 01:44:52 +00:00
goto yy138;
yy150:
YYDEBUG(150, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy286;
if (yych == 'i') goto yy286;
goto yy186;
yy151:
YYDEBUG(151, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == '+') goto yy284;
if (yych == '=') goto yy282;
goto yy138;
yy152:
YYDEBUG(152, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == '=') goto yy279;
2009-05-05 01:44:52 +00:00
goto yy138;
yy153:
YYDEBUG(153, *YYCURSOR);
yyaccept = 1;
yych = *(YYMARKER = ++YYCURSOR);
2009-05-05 01:44:52 +00:00
if (yych <= ';') {
2011-05-15 00:36:13 +00:00
if (yych == '/') goto yy251;
2009-05-05 01:44:52 +00:00
goto yy138;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '<') goto yy249;
if (yych <= '=') goto yy252;
if (yych <= '>') goto yy254;
2009-05-05 01:44:52 +00:00
goto yy138;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
yy154:
YYDEBUG(154, *YYCURSOR);
yych = *++YYCURSOR;
if (yych <= '<') goto yy138;
if (yych <= '=') goto yy245;
if (yych <= '>') goto yy243;
goto yy138;
yy155:
YYDEBUG(155, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == '=') goto yy241;
2009-05-05 01:44:52 +00:00
goto yy138;
yy156:
YYDEBUG(156, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych <= '.') {
2011-05-15 00:36:13 +00:00
if (yych == '*') goto yy233;
2009-05-05 01:44:52 +00:00
goto yy138;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '/') goto yy235;
if (yych == '=') goto yy236;
2009-05-05 01:44:52 +00:00
goto yy138;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
yy157:
YYDEBUG(157, *YYCURSOR);
yych = *++YYCURSOR;
if (yych <= '/') goto yy138;
if (yych <= '9') goto yy229;
if (yych == '=') goto yy231;
goto yy138;
yy158:
YYDEBUG(158, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych <= '<') goto yy138;
if (yych <= '=') goto yy225;
if (yych <= '>') goto yy223;
2009-05-05 01:44:52 +00:00
goto yy138;
yy159:
YYDEBUG(159, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == '&') goto yy219;
if (yych == '=') goto yy221;
2009-05-05 01:44:52 +00:00
goto yy138;
yy160:
YYDEBUG(160, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == '=') goto yy217;
if (yych == '|') goto yy215;
2009-05-05 01:44:52 +00:00
goto yy138;
yy161:
YYDEBUG(161, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == '=') goto yy213;
2009-05-05 01:44:52 +00:00
goto yy138;
yy162:
YYDEBUG(162, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy211;
if (yych == 'r') goto yy211;
goto yy186;
yy163:
YYDEBUG(163, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych == 'O') goto yy208;
if (yych == 'o') goto yy208;
goto yy186;
yy164:
YYDEBUG(164, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych <= '_') {
if (yych <= '@') goto yy138;
if (yych <= 'Z') goto yy205;
if (yych <= '^') goto yy138;
goto yy205;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= '`') goto yy138;
if (yych <= 'z') goto yy205;
if (yych <= '~') goto yy138;
goto yy205;
2008-03-16 21:23:02 +00:00
}
yy165:
YYDEBUG(165, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
goto yy138;
yy166:
YYDEBUG(166, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych == '>') goto yy201;
goto yy138;
yy167:
YYDEBUG(167, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYDEBUG(168, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1426 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
return '{';
}
2011-05-15 00:36:13 +00:00
#line 2888 "Zend/zend_language_scanner.c"
yy169:
YYDEBUG(169, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYDEBUG(170, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1438 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
RESET_DOC_COMMENT();
if (!zend_stack_is_empty(&SCNG(state_stack))) {
yy_pop_state(TSRMLS_C);
}
return '}';
}
2011-05-15 00:36:13 +00:00
#line 2902 "Zend/zend_language_scanner.c"
yy171:
YYDEBUG(171, *YYCURSOR);
yyaccept = 2;
2009-05-05 01:44:52 +00:00
yych = *(YYMARKER = ++YYCURSOR);
if (yych <= 'E') {
if (yych <= '/') {
if (yych == '.') goto yy187;
} else {
if (yych <= '9') goto yy190;
if (yych >= 'E') goto yy192;
}
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'd') {
if (yych == 'X') goto yy197;
} else {
if (yych <= 'e') goto yy192;
if (yych == 'x') goto yy197;
}
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
yy172:
YYDEBUG(172, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1464 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
if (yyleng < MAX_LENGTH_OF_LONG - 1) { /* Won't overflow */
zendlval->value.lval = strtol(yytext, NULL, 0);
} else {
errno = 0;
zendlval->value.lval = strtol(yytext, NULL, 0);
if (errno == ERANGE) { /* Overflow */
if (yytext[0] == '0') { /* octal overflow */
zendlval->value.dval = zend_oct_strtod(yytext, NULL);
} else {
zendlval->value.dval = zend_strtod(yytext, NULL);
}
zendlval->type = IS_DOUBLE;
return T_DNUMBER;
}
}
zendlval->type = IS_LONG;
return T_LNUMBER;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 2946 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy173:
YYDEBUG(173, *YYCURSOR);
yyaccept = 2;
2009-05-05 01:44:52 +00:00
yych = *(YYMARKER = ++YYCURSOR);
if (yych <= '9') {
if (yych == '.') goto yy187;
if (yych <= '/') goto yy172;
goto yy190;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'E') {
if (yych <= 'D') goto yy172;
goto yy192;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych == 'e') goto yy192;
goto yy172;
2008-03-16 21:23:02 +00:00
}
}
2009-05-05 01:44:52 +00:00
yy174:
YYDEBUG(174, *YYCURSOR);
yych = *++YYCURSOR;
goto yy186;
yy175:
YYDEBUG(175, *YYCURSOR);
++YYCURSOR;
yy176:
YYDEBUG(176, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1830 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
while (YYCURSOR < YYLIMIT) {
switch (*YYCURSOR++) {
case '\r':
if (*YYCURSOR == '\n') {
YYCURSOR++;
}
/* fall through */
case '\n':
CG(zend_lineno)++;
break;
case '%':
if (!CG(asp_tags)) {
continue;
}
/* fall through */
case '?':
if (*YYCURSOR == '>') {
YYCURSOR--;
break;
}
/* fall through */
default:
continue;
}
break;
}
yyleng = YYCURSOR - SCNG(yy_text);
return T_COMMENT;
}
2011-05-15 00:36:13 +00:00
#line 3008 "Zend/zend_language_scanner.c"
yy177:
YYDEBUG(177, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
yy178:
YYDEBUG(178, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1921 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
register char *s, *t;
char *end;
int bprefix = (yytext[0] != '\'') ? 1 : 0;
while (1) {
if (YYCURSOR < YYLIMIT) {
if (*YYCURSOR == '\'') {
YYCURSOR++;
yyleng = YYCURSOR - SCNG(yy_text);
break;
} else if (*YYCURSOR++ == '\\' && YYCURSOR < YYLIMIT) {
YYCURSOR++;
2008-03-16 21:23:02 +00:00
}
} else {
2009-05-05 01:44:52 +00:00
yyleng = YYLIMIT - SCNG(yy_text);
/* Unclosed single quotes; treat similar to double quotes, but without a separate token
* for ' (unrecognized by parser), instead of old flex fallback to "Unexpected character..."
* rule, which continued in ST_IN_SCRIPTING state after the quote */
return T_ENCAPSED_AND_WHITESPACE;
}
}
zendlval->value.str.val = estrndup(yytext+bprefix+1, yyleng-bprefix-2);
zendlval->value.str.len = yyleng-bprefix-2;
zendlval->type = IS_STRING;
/* convert escape sequences */
s = t = zendlval->value.str.val;
end = s+zendlval->value.str.len;
while (s<end) {
if (*s=='\\') {
s++;
switch(*s) {
case '\\':
case '\'':
*t++ = *s;
zendlval->value.str.len--;
break;
default:
*t++ = '\\';
*t++ = *s;
break;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
} else {
*t++ = *s;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
if (*s == '\n' || (*s == '\r' && (*(s+1) != '\n'))) {
CG(zend_lineno)++;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
s++;
}
*t = 0;
if (SCNG(output_filter)) {
size_t sz = 0;
s = zendlval->value.str.val;
SCNG(output_filter)((unsigned char **)&(zendlval->value.str.val), &sz, (unsigned char *)s, (size_t)zendlval->value.str.len TSRMLS_CC);
zendlval->value.str.len = sz;
efree(s);
}
return T_CONSTANT_ENCAPSED_STRING;
}
2011-05-15 00:36:13 +00:00
#line 3083 "Zend/zend_language_scanner.c"
yy179:
YYDEBUG(179, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
yy180:
YYDEBUG(180, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1990 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
int bprefix = (yytext[0] != '"') ? 1 : 0;
2008-03-16 21:23:02 +00:00
2009-05-05 01:44:52 +00:00
while (YYCURSOR < YYLIMIT) {
switch (*YYCURSOR++) {
case '"':
yyleng = YYCURSOR - SCNG(yy_text);
zend_scan_escape_string(zendlval, yytext+bprefix+1, yyleng-bprefix-2, '"' TSRMLS_CC);
return T_CONSTANT_ENCAPSED_STRING;
case '$':
if (IS_LABEL_START(*YYCURSOR) || *YYCURSOR == '{') {
break;
}
continue;
case '{':
if (*YYCURSOR == '$') {
break;
}
continue;
case '\\':
if (YYCURSOR < YYLIMIT) {
YYCURSOR++;
}
/* fall through */
default:
continue;
}
2008-03-16 21:23:02 +00:00
2009-05-05 01:44:52 +00:00
YYCURSOR--;
break;
}
2008-03-16 21:23:02 +00:00
2009-05-05 01:44:52 +00:00
/* Remember how much was scanned to save rescanning */
SET_DOUBLE_QUOTES_SCANNED_LENGTH(YYCURSOR - SCNG(yy_text) - yyleng);
2008-03-16 21:23:02 +00:00
2009-05-05 01:44:52 +00:00
YYCURSOR = SCNG(yy_text) + yyleng;
2008-03-16 21:23:02 +00:00
2009-05-05 01:44:52 +00:00
BEGIN(ST_DOUBLE_QUOTES);
return '"';
}
2011-05-15 00:36:13 +00:00
#line 3131 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy181:
YYDEBUG(181, *YYCURSOR);
++YYCURSOR;
YYDEBUG(182, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 2081 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
BEGIN(ST_BACKQUOTE);
return '`';
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3142 "Zend/zend_language_scanner.c"
yy183:
YYDEBUG(183, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
YYDEBUG(184, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 2339 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
if (YYCURSOR > YYLIMIT) {
return 0;
}
zend_error(E_COMPILE_WARNING,"Unexpected character in input: '%c' (ASCII=%d) state=%d", yytext[0], yytext[0], YYSTATE);
goto restart;
}
2011-05-15 00:36:13 +00:00
#line 3157 "Zend/zend_language_scanner.c"
yy185:
YYDEBUG(185, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
yy186:
YYDEBUG(186, *YYCURSOR);
2011-05-15 00:36:13 +00:00
if (yybm[0+yych] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
goto yy124;
yy187:
YYDEBUG(187, *YYCURSOR);
yyaccept = 3;
2008-03-16 21:23:02 +00:00
YYMARKER = ++YYCURSOR;
2009-05-05 01:44:52 +00:00
YYFILL(3);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(188, *YYCURSOR);
2011-05-15 00:36:13 +00:00
if (yybm[0+yych] & 16) {
2009-05-05 01:44:52 +00:00
goto yy187;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
if (yych == 'E') goto yy192;
if (yych == 'e') goto yy192;
yy189:
YYDEBUG(189, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1525 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
zendlval->value.dval = zend_strtod(yytext, NULL);
zendlval->type = IS_DOUBLE;
return T_DNUMBER;
}
2011-05-15 00:36:13 +00:00
#line 3190 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy190:
YYDEBUG(190, *YYCURSOR);
yyaccept = 2;
YYMARKER = ++YYCURSOR;
YYFILL(3);
yych = *YYCURSOR;
YYDEBUG(191, *YYCURSOR);
if (yych <= '9') {
if (yych == '.') goto yy187;
if (yych <= '/') goto yy172;
goto yy190;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'E') {
if (yych <= 'D') goto yy172;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy172;
2008-03-16 21:23:02 +00:00
}
}
2009-05-05 01:44:52 +00:00
yy192:
YYDEBUG(192, *YYCURSOR);
yych = *++YYCURSOR;
if (yych <= ',') {
if (yych == '+') goto yy194;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= '-') goto yy194;
if (yych <= '/') goto yy193;
if (yych <= '9') goto yy195;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
yy193:
YYDEBUG(193, *YYCURSOR);
YYCURSOR = YYMARKER;
if (yyaccept <= 2) {
if (yyaccept <= 1) {
if (yyaccept <= 0) {
goto yy124;
} else {
goto yy138;
}
} else {
goto yy172;
}
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yyaccept <= 4) {
if (yyaccept <= 3) {
goto yy189;
} else {
2011-05-15 00:36:13 +00:00
goto yy234;
2009-05-05 01:44:52 +00:00
}
} else {
2011-05-15 00:36:13 +00:00
goto yy250;
2008-03-16 21:23:02 +00:00
}
}
2009-05-05 01:44:52 +00:00
yy194:
YYDEBUG(194, *YYCURSOR);
yych = *++YYCURSOR;
if (yych <= '/') goto yy193;
if (yych >= ':') goto yy193;
yy195:
YYDEBUG(195, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
YYDEBUG(196, *YYCURSOR);
2009-05-05 01:44:52 +00:00
if (yych <= '/') goto yy189;
if (yych <= '9') goto yy195;
goto yy189;
yy197:
YYDEBUG(197, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+yych] & 32) {
2009-05-05 01:44:52 +00:00
goto yy198;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
goto yy193;
yy198:
YYDEBUG(198, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
YYDEBUG(199, *YYCURSOR);
2011-05-15 00:36:13 +00:00
if (yybm[0+yych] & 32) {
goto yy198;
2008-03-16 21:23:02 +00:00
}
YYDEBUG(200, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1485 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
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')) {
zendlval->value.lval = strtol(hex, NULL, 16);
zendlval->type = IS_LONG;
return T_LNUMBER;
} else {
zendlval->value.dval = zend_hex_strtod(hex, NULL);
zendlval->type = IS_DOUBLE;
return T_DNUMBER;
}
}
2011-05-15 00:36:13 +00:00
#line 3296 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy201:
YYDEBUG(201, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
if ((yych = *YYCURSOR) == '\n') goto yy203;
if (yych == '\r') goto yy204;
yy202:
YYDEBUG(202, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1898 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
zendlval->value.str.val = yytext; /* no copying - intentional */
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
BEGIN(INITIAL);
return T_CLOSE_TAG; /* implicit ';' at php-end tag */
}
2011-05-15 00:36:13 +00:00
#line 3313 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy203:
YYDEBUG(203, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
goto yy202;
yy204:
YYDEBUG(204, *YYCURSOR);
yych = *++YYCURSOR;
if (yych == '\n') goto yy203;
goto yy202;
yy205:
YYDEBUG(205, *YYCURSOR);
++YYCURSOR;
YYFILL(1);
yych = *YYCURSOR;
YYDEBUG(206, *YYCURSOR);
if (yych <= '^') {
if (yych <= '9') {
if (yych >= '0') goto yy205;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= '@') goto yy207;
if (yych <= 'Z') goto yy205;
2008-03-16 21:23:02 +00:00
}
} else {
2009-05-05 01:44:52 +00:00
if (yych <= '`') {
if (yych <= '_') goto yy205;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'z') goto yy205;
if (yych >= 0x7F) goto yy205;
2008-03-16 21:23:02 +00:00
}
}
2009-05-05 01:44:52 +00:00
yy207:
YYDEBUG(207, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1800 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
zendlval->type = IS_STRING;
return T_VARIABLE;
}
2011-05-15 00:36:13 +00:00
#line 3353 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy208:
YYDEBUG(208, *YYCURSOR);
yych = *++YYCURSOR;
if (yych == 'R') goto yy209;
if (yych != 'r') goto yy186;
yy209:
YYDEBUG(209, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
YYDEBUG(210, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1409 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_LOGICAL_XOR;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3371 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy211:
YYDEBUG(211, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
goto yy185;
}
2009-05-05 01:44:52 +00:00
YYDEBUG(212, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1401 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2011-05-15 00:36:13 +00:00
return T_LOGICAL_OR;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3384 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy213:
YYDEBUG(213, *YYCURSOR);
++YYCURSOR;
YYDEBUG(214, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1389 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
2011-05-15 00:36:13 +00:00
return T_XOR_EQUAL;
2009-05-05 01:44:52 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3394 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy215:
YYDEBUG(215, *YYCURSOR);
++YYCURSOR;
YYDEBUG(216, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1393 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
2011-05-15 00:36:13 +00:00
return T_BOOLEAN_OR;
2009-05-05 01:44:52 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3404 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy217:
YYDEBUG(217, *YYCURSOR);
++YYCURSOR;
YYDEBUG(218, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1385 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
2011-05-15 00:36:13 +00:00
return T_OR_EQUAL;
2009-05-05 01:44:52 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3414 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy219:
YYDEBUG(219, *YYCURSOR);
++YYCURSOR;
YYDEBUG(220, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1397 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
2011-05-15 00:36:13 +00:00
return T_BOOLEAN_AND;
2009-05-05 01:44:52 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3424 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy221:
YYDEBUG(221, *YYCURSOR);
++YYCURSOR;
YYDEBUG(222, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1381 "Zend/zend_language_scanner.l"
{
return T_AND_EQUAL;
}
#line 3434 "Zend/zend_language_scanner.c"
yy223:
YYDEBUG(223, *YYCURSOR);
++YYCURSOR;
if ((yych = *YYCURSOR) == '\n') goto yy227;
if (yych == '\r') goto yy228;
yy224:
YYDEBUG(224, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
#line 1907 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
if (CG(asp_tags)) {
BEGIN(INITIAL);
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
zendlval->value.str.val = yytext; /* no copying - intentional */
return T_CLOSE_TAG; /* implicit ';' at php-end tag */
} else {
yyless(1);
return yytext[0];
}
}
2011-05-15 00:36:13 +00:00
#line 3456 "Zend/zend_language_scanner.c"
yy225:
YYDEBUG(225, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(226, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1369 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
return T_MOD_EQUAL;
}
2011-05-15 00:36:13 +00:00
#line 3466 "Zend/zend_language_scanner.c"
2010-05-20 19:18:35 +00:00
yy227:
YYDEBUG(227, *YYCURSOR);
2011-05-15 00:36:13 +00:00
yych = *++YYCURSOR;
goto yy224;
yy228:
YYDEBUG(228, *YYCURSOR);
yych = *++YYCURSOR;
if (yych == '\n') goto yy227;
goto yy224;
yy229:
YYDEBUG(229, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyaccept = 3;
YYMARKER = ++YYCURSOR;
YYFILL(3);
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(230, *YYCURSOR);
2009-05-05 01:44:52 +00:00
if (yych <= 'D') {
if (yych <= '/') goto yy189;
2011-05-15 00:36:13 +00:00
if (yych <= '9') goto yy229;
2009-05-05 01:44:52 +00:00
goto yy189;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'E') goto yy192;
if (yych == 'e') goto yy192;
goto yy189;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
yy231:
YYDEBUG(231, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(232, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1365 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_CONCAT_EQUAL;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3501 "Zend/zend_language_scanner.c"
yy233:
YYDEBUG(233, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyaccept = 4;
yych = *(YYMARKER = ++YYCURSOR);
2011-05-15 00:36:13 +00:00
if (yych == '*') goto yy238;
yy234:
YYDEBUG(234, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1864 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
int doc_com;
if (yyleng > 2) {
doc_com = 1;
RESET_DOC_COMMENT();
} else {
doc_com = 0;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
while (YYCURSOR < YYLIMIT) {
if (*YYCURSOR++ == '*' && *YYCURSOR == '/') {
break;
}
2009-05-05 01:44:52 +00:00
}
if (YYCURSOR < YYLIMIT) {
YYCURSOR++;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
zend_error(E_COMPILE_WARNING, "Unterminated comment starting line %d", CG(zend_lineno));
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
HANDLE_NEWLINES(yytext, yyleng);
if (doc_com) {
CG(doc_comment) = estrndup(yytext, yyleng);
CG(doc_comment_len) = yyleng;
return T_DOC_COMMENT;
}
return T_COMMENT;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3544 "Zend/zend_language_scanner.c"
yy235:
YYDEBUG(235, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
goto yy176;
2011-05-15 00:36:13 +00:00
yy236:
YYDEBUG(236, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(237, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1361 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
return T_DIV_EQUAL;
}
2011-05-15 00:36:13 +00:00
#line 3558 "Zend/zend_language_scanner.c"
yy238:
YYDEBUG(238, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+yych] & 64) {
goto yy239;
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
goto yy193;
2010-05-20 19:18:35 +00:00
yy239:
YYDEBUG(239, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYFILL(1);
yych = *YYCURSOR;
2010-05-20 19:18:35 +00:00
YYDEBUG(240, *YYCURSOR);
2011-05-15 00:36:13 +00:00
if (yybm[0+yych] & 64) {
goto yy239;
}
goto yy234;
2009-05-05 01:44:52 +00:00
yy241:
YYDEBUG(241, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(242, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1357 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2011-05-15 00:36:13 +00:00
return T_MUL_EQUAL;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3585 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy243:
YYDEBUG(243, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if ((yych = *YYCURSOR) == '=') goto yy247;
2009-05-05 01:44:52 +00:00
YYDEBUG(244, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1417 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2011-05-15 00:36:13 +00:00
return T_SR;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3596 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy245:
YYDEBUG(245, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(246, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1345 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2011-05-15 00:36:13 +00:00
return T_IS_GREATER_OR_EQUAL;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3606 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy247:
YYDEBUG(247, *YYCURSOR);
2011-05-15 00:36:13 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(248, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1377 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2011-05-15 00:36:13 +00:00
return T_SR_EQUAL;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3616 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy249:
YYDEBUG(249, *YYCURSOR);
2011-05-15 00:36:13 +00:00
yyaccept = 5;
yych = *(YYMARKER = ++YYCURSOR);
if (yych <= ';') goto yy250;
if (yych <= '<') goto yy265;
if (yych <= '=') goto yy263;
2009-05-05 01:44:52 +00:00
yy250:
YYDEBUG(250, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1413 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2011-05-15 00:36:13 +00:00
return T_SL;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3631 "Zend/zend_language_scanner.c"
yy251:
YYDEBUG(251, *YYCURSOR);
yych = *++YYCURSOR;
if (yych == 'S') goto yy256;
if (yych == 's') goto yy256;
goto yy193;
2009-05-05 01:44:52 +00:00
yy252:
YYDEBUG(252, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(253, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1341 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2011-05-15 00:36:13 +00:00
return T_IS_SMALLER_OR_EQUAL;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3647 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy254:
YYDEBUG(254, *YYCURSOR);
2011-05-15 00:36:13 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
yy255:
YYDEBUG(255, *YYCURSOR);
2011-05-15 00:36:13 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
#line 1337 "Zend/zend_language_scanner.l"
{
return T_IS_NOT_EQUAL;
}
#line 3658 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy256:
YYDEBUG(256, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy257;
if (yych != 'c') goto yy193;
2009-05-05 01:44:52 +00:00
yy257:
YYDEBUG(257, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy258;
if (yych != 'r') goto yy193;
2009-05-05 01:44:52 +00:00
yy258:
YYDEBUG(258, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy259;
if (yych != 'i') goto yy193;
2009-05-05 01:44:52 +00:00
yy259:
YYDEBUG(259, *YYCURSOR);
2011-05-15 00:36:13 +00:00
yych = *++YYCURSOR;
if (yych == 'P') goto yy260;
if (yych != 'p') goto yy193;
yy260:
YYDEBUG(260, *YYCURSOR);
yych = *++YYCURSOR;
if (yych == 'T') goto yy261;
if (yych != 't') goto yy193;
yy261:
YYDEBUG(261, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(3);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(262, *YYCURSOR);
if (yych <= '\r') {
2009-05-05 01:44:52 +00:00
if (yych <= 0x08) goto yy193;
2011-05-15 00:36:13 +00:00
if (yych <= '\n') goto yy261;
2009-05-05 01:44:52 +00:00
if (yych <= '\f') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy261;
2008-03-16 21:23:02 +00:00
} else {
if (yych <= ' ') {
2009-05-05 01:44:52 +00:00
if (yych <= 0x1F) goto yy193;
2011-05-15 00:36:13 +00:00
goto yy261;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych == '>') goto yy201;
goto yy193;
2008-03-16 21:23:02 +00:00
}
}
2011-05-15 00:36:13 +00:00
yy263:
YYDEBUG(263, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(264, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1373 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
return T_SL_EQUAL;
}
2011-05-15 00:36:13 +00:00
#line 3713 "Zend/zend_language_scanner.c"
yy265:
YYDEBUG(265, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(2);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(266, *YYCURSOR);
if (yybm[0+yych] & 128) {
goto yy265;
2008-03-16 21:23:02 +00:00
}
if (yych <= 'Z') {
if (yych <= '&') {
2011-05-15 00:36:13 +00:00
if (yych == '"') goto yy270;
2009-05-05 01:44:52 +00:00
goto yy193;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '\'') goto yy269;
2009-05-05 01:44:52 +00:00
if (yych <= '@') goto yy193;
2008-03-16 21:23:02 +00:00
}
} else {
if (yych <= '`') {
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy193;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'z') goto yy267;
2009-05-05 01:44:52 +00:00
if (yych <= '~') goto yy193;
2008-03-16 21:23:02 +00:00
}
}
2011-05-15 00:36:13 +00:00
yy267:
YYDEBUG(267, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(2);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(268, *YYCURSOR);
2008-03-16 21:23:02 +00:00
if (yych <= '@') {
if (yych <= '\f') {
2011-05-15 00:36:13 +00:00
if (yych == '\n') goto yy274;
2009-05-05 01:44:52 +00:00
goto yy193;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '\r') goto yy276;
2009-05-05 01:44:52 +00:00
if (yych <= '/') goto yy193;
2011-05-15 00:36:13 +00:00
if (yych <= '9') goto yy267;
2009-05-05 01:44:52 +00:00
goto yy193;
2008-03-16 21:23:02 +00:00
}
} else {
if (yych <= '_') {
2011-05-15 00:36:13 +00:00
if (yych <= 'Z') goto yy267;
2009-05-05 01:44:52 +00:00
if (yych <= '^') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy267;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= '`') goto yy193;
2011-05-15 00:36:13 +00:00
if (yych <= 'z') goto yy267;
2009-05-05 01:44:52 +00:00
if (yych <= '~') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy267;
2008-03-16 21:23:02 +00:00
}
}
2011-05-15 00:36:13 +00:00
yy269:
YYDEBUG(269, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == '\'') goto yy193;
2011-05-15 00:36:13 +00:00
if (yych <= '/') goto yy278;
2009-05-05 01:44:52 +00:00
if (yych <= '9') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy278;
yy270:
YYDEBUG(270, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych == '"') goto yy193;
2011-05-15 00:36:13 +00:00
if (yych <= '/') goto yy272;
2009-05-05 01:44:52 +00:00
if (yych <= '9') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy272;
yy271:
YYDEBUG(271, *YYCURSOR);
++YYCURSOR;
YYFILL(3);
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
yy272:
YYDEBUG(272, *YYCURSOR);
if (yych <= 'Z') {
if (yych <= '/') {
2009-05-05 01:44:52 +00:00
if (yych != '"') goto yy193;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '9') goto yy271;
2009-05-05 01:44:52 +00:00
if (yych <= '@') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy271;
}
} else {
if (yych <= '`') {
2011-05-15 00:36:13 +00:00
if (yych == '_') goto yy271;
2009-05-05 01:44:52 +00:00
goto yy193;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'z') goto yy271;
2009-05-05 01:44:52 +00:00
if (yych <= '~') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy271;
}
}
2011-05-15 00:36:13 +00:00
yy273:
YYDEBUG(273, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == '\n') goto yy274;
if (yych == '\r') goto yy276;
2009-05-05 01:44:52 +00:00
goto yy193;
2011-05-15 00:36:13 +00:00
yy274:
YYDEBUG(274, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
yy275:
YYDEBUG(275, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 2032 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
char *s;
int bprefix = (yytext[0] != '<') ? 1 : 0;
/* save old heredoc label */
Z_STRVAL_P(zendlval) = CG(heredoc);
Z_STRLEN_P(zendlval) = CG(heredoc_len);
2008-03-16 21:23:02 +00:00
CG(zend_lineno)++;
CG(heredoc_len) = yyleng-bprefix-3-1-(yytext[yyleng-2]=='\r'?1:0);
s = yytext+bprefix+3;
2008-03-16 21:23:02 +00:00
while ((*s == ' ') || (*s == '\t')) {
s++;
CG(heredoc_len)--;
}
if (*s == '\'') {
s++;
CG(heredoc_len) -= 2;
BEGIN(ST_NOWDOC);
} else {
if (*s == '"') {
s++;
CG(heredoc_len) -= 2;
}
BEGIN(ST_HEREDOC);
}
2008-03-16 21:23:02 +00:00
CG(heredoc) = estrndup(s, CG(heredoc_len));
/* Check for ending label on the next line */
if (CG(heredoc_len) < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, s, CG(heredoc_len))) {
2009-05-05 01:44:52 +00:00
YYCTYPE *end = YYCURSOR + CG(heredoc_len);
if (*end == ';') {
end++;
}
if (*end == '\n' || *end == '\r') {
BEGIN(ST_END_HEREDOC);
}
}
2008-03-16 21:23:02 +00:00
return T_START_HEREDOC;
}
2011-05-15 00:36:13 +00:00
#line 3866 "Zend/zend_language_scanner.c"
yy276:
YYDEBUG(276, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == '\n') goto yy274;
goto yy275;
yy277:
YYDEBUG(277, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(3);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
yy278:
YYDEBUG(278, *YYCURSOR);
2008-03-16 21:23:02 +00:00
if (yych <= 'Z') {
if (yych <= '/') {
2011-05-15 00:36:13 +00:00
if (yych == '\'') goto yy273;
2009-05-05 01:44:52 +00:00
goto yy193;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '9') goto yy277;
2009-05-05 01:44:52 +00:00
if (yych <= '@') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy277;
2008-03-16 21:23:02 +00:00
}
} else {
if (yych <= '`') {
2011-05-15 00:36:13 +00:00
if (yych == '_') goto yy277;
2009-05-05 01:44:52 +00:00
goto yy193;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'z') goto yy277;
2009-05-05 01:44:52 +00:00
if (yych <= '~') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy277;
2008-03-16 21:23:02 +00:00
}
}
2011-05-15 00:36:13 +00:00
yy279:
2010-05-20 19:18:35 +00:00
YYDEBUG(279, *YYCURSOR);
2011-05-15 00:36:13 +00:00
yych = *++YYCURSOR;
if (yych != '=') goto yy255;
2009-05-05 01:44:52 +00:00
YYDEBUG(280, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(281, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1329 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2011-05-15 00:36:13 +00:00
return T_IS_NOT_IDENTICAL;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3910 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy282:
YYDEBUG(282, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
YYDEBUG(283, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1349 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2011-05-15 00:36:13 +00:00
return T_PLUS_EQUAL;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3920 "Zend/zend_language_scanner.c"
2009-05-05 01:44:52 +00:00
yy284:
YYDEBUG(284, *YYCURSOR);
2010-05-20 19:18:35 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(285, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1317 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2011-05-15 00:36:13 +00:00
return T_INC;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3930 "Zend/zend_language_scanner.c"
yy286:
YYDEBUG(286, *YYCURSOR);
yych = *++YYCURSOR;
if (yych == 'S') goto yy287;
if (yych != 's') goto yy186;
2009-05-05 01:44:52 +00:00
yy287:
YYDEBUG(287, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy288;
if (yych != 't') goto yy186;
2009-05-05 01:44:52 +00:00
yy288:
YYDEBUG(288, *YYCURSOR);
2010-05-20 19:18:35 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2010-05-20 19:18:35 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(289, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1309 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
return T_LIST;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3953 "Zend/zend_language_scanner.c"
yy290:
YYDEBUG(290, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if ((yych = *YYCURSOR) == '=') goto yy294;
YYDEBUG(291, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1333 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
return T_IS_EQUAL;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3964 "Zend/zend_language_scanner.c"
yy292:
YYDEBUG(292, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(293, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1305 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
return T_DOUBLE_ARROW;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 3974 "Zend/zend_language_scanner.c"
yy294:
YYDEBUG(294, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(295, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1325 "Zend/zend_language_scanner.l"
{
return T_IS_IDENTICAL;
}
2011-05-15 00:36:13 +00:00
#line 3984 "Zend/zend_language_scanner.c"
yy296:
YYDEBUG(296, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
YYDEBUG(-1, yych);
switch (yych) {
case 'C':
2011-05-15 00:36:13 +00:00
case 'c': goto yy298;
case 'D':
2011-05-15 00:36:13 +00:00
case 'd': goto yy302;
case 'F':
2011-05-15 00:36:13 +00:00
case 'f': goto yy299;
case 'H':
2011-05-15 00:36:13 +00:00
case 'h': goto yy297;
case 'L':
2011-05-15 00:36:13 +00:00
case 'l': goto yy301;
case 'M':
2011-05-15 00:36:13 +00:00
case 'm': goto yy300;
case 'N':
2011-05-15 00:36:13 +00:00
case 'n': goto yy303;
2009-05-05 01:44:52 +00:00
default: goto yy186;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
yy297:
YYDEBUG(297, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy357;
if (yych == 'a') goto yy357;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy298:
YYDEBUG(298, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy350;
if (yych == 'l') goto yy350;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy299:
YYDEBUG(299, *YYCURSOR);
yych = *++YYCURSOR;
if (yych <= 'U') {
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy334;
2009-05-05 01:44:52 +00:00
if (yych <= 'T') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy335;
} else {
if (yych <= 'i') {
2009-05-05 01:44:52 +00:00
if (yych <= 'h') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy334;
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'u') goto yy335;
2009-05-05 01:44:52 +00:00
goto yy186;
}
}
2011-05-15 00:36:13 +00:00
yy300:
YYDEBUG(300, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy326;
if (yych == 'e') goto yy326;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy301:
YYDEBUG(301, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy320;
if (yych == 'i') goto yy320;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy302:
YYDEBUG(302, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy315;
if (yych == 'i') goto yy315;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy303:
YYDEBUG(303, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy304;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy304:
YYDEBUG(304, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'M') goto yy305;
2009-05-05 01:44:52 +00:00
if (yych != 'm') goto yy186;
2011-05-15 00:36:13 +00:00
yy305:
YYDEBUG(305, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy306;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy306:
YYDEBUG(306, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'S') goto yy307;
2009-05-05 01:44:52 +00:00
if (yych != 's') goto yy186;
2011-05-15 00:36:13 +00:00
yy307:
YYDEBUG(307, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'P') goto yy308;
2009-05-05 01:44:52 +00:00
if (yych != 'p') goto yy186;
2011-05-15 00:36:13 +00:00
yy308:
YYDEBUG(308, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy309;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy309:
YYDEBUG(309, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy310;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy310:
YYDEBUG(310, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy311;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy311:
YYDEBUG(311, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(312, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(313, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(314, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1629 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
if (CG(current_namespace)) {
*zendlval = *CG(current_namespace);
zval_copy_ctor(zendlval);
} else {
ZVAL_EMPTY_STRING(zendlval);
}
return T_NS_C;
}
2011-05-15 00:36:13 +00:00
#line 4116 "Zend/zend_language_scanner.c"
yy315:
YYDEBUG(315, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy316;
2009-05-05 01:44:52 +00:00
if (yych != 'r') goto yy186;
2011-05-15 00:36:13 +00:00
yy316:
YYDEBUG(316, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(317, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(318, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(319, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1602 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
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;
}
2011-05-15 00:36:13 +00:00
#line 4163 "Zend/zend_language_scanner.c"
yy320:
YYDEBUG(320, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy321;
2009-05-05 01:44:52 +00:00
if (yych != 'n') goto yy186;
2011-05-15 00:36:13 +00:00
yy321:
YYDEBUG(321, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy322;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy322:
YYDEBUG(322, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(323, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(324, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(325, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1584 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
zendlval->value.lval = CG(zend_lineno);
zendlval->type = IS_LONG;
return T_LINE;
}
2011-05-15 00:36:13 +00:00
#line 4194 "Zend/zend_language_scanner.c"
yy326:
YYDEBUG(326, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy327;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy327:
YYDEBUG(327, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'H') goto yy328;
2009-05-05 01:44:52 +00:00
if (yych != 'h') goto yy186;
2011-05-15 00:36:13 +00:00
yy328:
YYDEBUG(328, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy329;
2009-05-05 01:44:52 +00:00
if (yych != 'o') goto yy186;
2011-05-15 00:36:13 +00:00
yy329:
YYDEBUG(329, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'D') goto yy330;
2009-05-05 01:44:52 +00:00
if (yych != 'd') goto yy186;
2011-05-15 00:36:13 +00:00
yy330:
YYDEBUG(330, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(331, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(332, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(333, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1563 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
char *class_name = CG(active_class_entry) ? CG(active_class_entry)->name : NULL;
char *func_name = CG(active_op_array)? CG(active_op_array)->function_name : NULL;
size_t len = 0;
if (class_name) {
len += strlen(class_name) + 2;
}
if (func_name) {
len += strlen(func_name);
}
2011-05-15 00:36:13 +00:00
zendlval->value.str.len = zend_spprintf(&zendlval->value.str.val, 0, "%s%s%s",
2008-03-16 21:23:02 +00:00
class_name ? class_name : "",
class_name && func_name ? "::" : "",
func_name ? func_name : ""
);
zendlval->type = IS_STRING;
return T_METHOD_C;
}
2011-05-15 00:36:13 +00:00
#line 4250 "Zend/zend_language_scanner.c"
yy334:
YYDEBUG(334, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy345;
if (yych == 'l') goto yy345;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy335:
YYDEBUG(335, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy336;
2009-05-05 01:44:52 +00:00
if (yych != 'n') goto yy186;
2011-05-15 00:36:13 +00:00
yy336:
YYDEBUG(336, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy337;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy337:
YYDEBUG(337, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy338;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy338:
YYDEBUG(338, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy339;
2009-05-05 01:44:52 +00:00
if (yych != 'i') goto yy186;
2011-05-15 00:36:13 +00:00
yy339:
YYDEBUG(339, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy340;
2009-05-05 01:44:52 +00:00
if (yych != 'o') goto yy186;
2011-05-15 00:36:13 +00:00
yy340:
YYDEBUG(340, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy341;
2009-05-05 01:44:52 +00:00
if (yych != 'n') goto yy186;
2011-05-15 00:36:13 +00:00
yy341:
YYDEBUG(341, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(342, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(343, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(344, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1547 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
char *func_name = NULL;
if (CG(active_op_array)) {
func_name = CG(active_op_array)->function_name;
}
if (!func_name) {
func_name = "";
}
zendlval->value.str.len = strlen(func_name);
zendlval->value.str.val = estrndup(func_name, zendlval->value.str.len);
zendlval->type = IS_STRING;
return T_FUNC_C;
}
2011-05-15 00:36:13 +00:00
#line 4317 "Zend/zend_language_scanner.c"
yy345:
YYDEBUG(345, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy346;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy346:
YYDEBUG(346, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(347, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(348, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(349, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1590 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
char *filename = zend_get_compiled_filename(TSRMLS_C);
if (!filename) {
filename = "";
}
zendlval->value.str.len = strlen(filename);
zendlval->value.str.val = estrndup(filename, zendlval->value.str.len);
zendlval->type = IS_STRING;
return T_FILE;
}
2011-05-15 00:36:13 +00:00
#line 4349 "Zend/zend_language_scanner.c"
yy350:
YYDEBUG(350, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy351;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy351:
YYDEBUG(351, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'S') goto yy352;
2009-05-05 01:44:52 +00:00
if (yych != 's') goto yy186;
2011-05-15 00:36:13 +00:00
yy352:
YYDEBUG(352, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'S') goto yy353;
2009-05-05 01:44:52 +00:00
if (yych != 's') goto yy186;
2011-05-15 00:36:13 +00:00
yy353:
YYDEBUG(353, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(354, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(355, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(356, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1531 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
char *class_name = NULL;
if (CG(active_class_entry)) {
class_name = CG(active_class_entry)->name;
}
if (!class_name) {
class_name = "";
}
zendlval->value.str.len = strlen(class_name);
zendlval->value.str.val = estrndup(class_name, zendlval->value.str.len);
zendlval->type = IS_STRING;
return T_CLASS_C;
}
2011-05-15 00:36:13 +00:00
#line 4395 "Zend/zend_language_scanner.c"
yy357:
YYDEBUG(357, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy358;
2009-05-05 01:44:52 +00:00
if (yych != 'l') goto yy186;
2011-05-15 00:36:13 +00:00
yy358:
YYDEBUG(358, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy359;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy359:
YYDEBUG(359, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych != '_') goto yy186;
2011-05-15 00:36:13 +00:00
YYDEBUG(360, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy361;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy361:
YYDEBUG(361, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy362;
2009-05-05 01:44:52 +00:00
if (yych != 'o') goto yy186;
2011-05-15 00:36:13 +00:00
yy362:
YYDEBUG(362, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'M') goto yy363;
2009-05-05 01:44:52 +00:00
if (yych != 'm') goto yy186;
2011-05-15 00:36:13 +00:00
yy363:
YYDEBUG(363, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'P') goto yy364;
2009-05-05 01:44:52 +00:00
if (yych != 'p') goto yy186;
2011-05-15 00:36:13 +00:00
yy364:
YYDEBUG(364, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy365;
2009-05-05 01:44:52 +00:00
if (yych != 'i') goto yy186;
2011-05-15 00:36:13 +00:00
yy365:
YYDEBUG(365, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy366;
2009-05-05 01:44:52 +00:00
if (yych != 'l') goto yy186;
2011-05-15 00:36:13 +00:00
yy366:
YYDEBUG(366, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy367;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy367:
YYDEBUG(367, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy368;
2009-05-05 01:44:52 +00:00
if (yych != 'r') goto yy186;
2011-05-15 00:36:13 +00:00
yy368:
YYDEBUG(368, *YYCURSOR);
2008-07-08 15:17:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(369, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1273 "Zend/zend_language_scanner.l"
2008-07-08 15:17:52 +00:00
{
return T_HALT_COMPILER;
}
2011-05-15 00:36:13 +00:00
#line 4461 "Zend/zend_language_scanner.c"
yy370:
YYDEBUG(370, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'S') goto yy374;
if (yych == 's') goto yy374;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy371:
YYDEBUG(371, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy372;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy372:
YYDEBUG(372, *YYCURSOR);
2008-07-08 15:17:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(373, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1253 "Zend/zend_language_scanner.l"
2008-07-08 15:17:52 +00:00
{
return T_USE;
}
2011-05-15 00:36:13 +00:00
#line 4485 "Zend/zend_language_scanner.c"
yy374:
YYDEBUG(374, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy375;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy375:
YYDEBUG(375, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy376;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy376:
YYDEBUG(376, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(377, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1301 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
return T_UNSET;
}
2011-05-15 00:36:13 +00:00
#line 4508 "Zend/zend_language_scanner.c"
yy378:
YYDEBUG(378, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(7);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
yy379:
YYDEBUG(379, *YYCURSOR);
2008-03-16 21:23:02 +00:00
if (yych <= 'S') {
if (yych <= 'D') {
if (yych <= ' ') {
2011-05-15 00:36:13 +00:00
if (yych == '\t') goto yy378;
2009-05-05 01:44:52 +00:00
if (yych <= 0x1F) goto yy193;
2011-05-15 00:36:13 +00:00
goto yy378;
2008-03-16 21:23:02 +00:00
} else {
if (yych <= 'A') {
2009-05-05 01:44:52 +00:00
if (yych <= '@') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy383;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'B') goto yy381;
2009-05-05 01:44:52 +00:00
if (yych <= 'C') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy386;
2008-03-16 21:23:02 +00:00
}
}
} else {
if (yych <= 'I') {
2011-05-15 00:36:13 +00:00
if (yych == 'F') goto yy387;
2009-05-05 01:44:52 +00:00
if (yych <= 'H') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy388;
2008-03-16 21:23:02 +00:00
} else {
if (yych <= 'O') {
2009-05-05 01:44:52 +00:00
if (yych <= 'N') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy382;
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'Q') goto yy193;
2011-05-15 00:36:13 +00:00
if (yych <= 'R') goto yy385;
goto yy384;
2008-03-16 21:23:02 +00:00
}
}
}
} else {
if (yych <= 'f') {
if (yych <= 'a') {
2011-05-15 00:36:13 +00:00
if (yych == 'U') goto yy380;
2009-05-05 01:44:52 +00:00
if (yych <= '`') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy383;
2008-03-16 21:23:02 +00:00
} else {
if (yych <= 'c') {
2011-05-15 00:36:13 +00:00
if (yych <= 'b') goto yy381;
2009-05-05 01:44:52 +00:00
goto yy193;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'd') goto yy386;
2009-05-05 01:44:52 +00:00
if (yych <= 'e') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy387;
2008-03-16 21:23:02 +00:00
}
}
} else {
if (yych <= 'q') {
if (yych <= 'i') {
2009-05-05 01:44:52 +00:00
if (yych <= 'h') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy388;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'o') goto yy382;
2009-05-05 01:44:52 +00:00
goto yy193;
2008-03-16 21:23:02 +00:00
}
} else {
if (yych <= 's') {
2011-05-15 00:36:13 +00:00
if (yych <= 'r') goto yy385;
goto yy384;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych != 'u') goto yy193;
2008-03-16 21:23:02 +00:00
}
}
}
}
2011-05-15 00:36:13 +00:00
yy380:
YYDEBUG(380, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy455;
if (yych == 'n') goto yy455;
2009-05-05 01:44:52 +00:00
goto yy193;
2011-05-15 00:36:13 +00:00
yy381:
YYDEBUG(381, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
if (yych <= 'O') {
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy442;
2009-05-05 01:44:52 +00:00
if (yych <= 'N') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy443;
2008-03-16 21:23:02 +00:00
} else {
if (yych <= 'i') {
2009-05-05 01:44:52 +00:00
if (yych <= 'h') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy442;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'o') goto yy443;
2009-05-05 01:44:52 +00:00
goto yy193;
2008-03-16 21:23:02 +00:00
}
}
2011-05-15 00:36:13 +00:00
yy382:
YYDEBUG(382, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'B') goto yy434;
if (yych == 'b') goto yy434;
2009-05-05 01:44:52 +00:00
goto yy193;
2011-05-15 00:36:13 +00:00
yy383:
YYDEBUG(383, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy427;
if (yych == 'r') goto yy427;
2009-05-05 01:44:52 +00:00
goto yy193;
2011-05-15 00:36:13 +00:00
yy384:
YYDEBUG(384, *YYCURSOR);
yych = *++YYCURSOR;
if (yych <= 'T') {
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy412;
if (yych <= 'S') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy411;
} else {
if (yych <= 'c') {
if (yych <= 'b') goto yy193;
2011-05-15 00:36:13 +00:00
goto yy412;
} else {
2011-05-15 00:36:13 +00:00
if (yych == 't') goto yy411;
goto yy193;
}
}
2011-05-15 00:36:13 +00:00
yy385:
YYDEBUG(385, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy409;
if (yych == 'e') goto yy409;
2009-05-05 01:44:52 +00:00
goto yy193;
2011-05-15 00:36:13 +00:00
yy386:
YYDEBUG(386, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy405;
if (yych == 'o') goto yy405;
2009-05-05 01:44:52 +00:00
goto yy193;
2011-05-15 00:36:13 +00:00
yy387:
YYDEBUG(387, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy398;
if (yych == 'l') goto yy398;
2009-05-05 01:44:52 +00:00
goto yy193;
2011-05-15 00:36:13 +00:00
yy388:
YYDEBUG(388, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy389;
2009-05-05 01:44:52 +00:00
if (yych != 'n') goto yy193;
2011-05-15 00:36:13 +00:00
yy389:
YYDEBUG(389, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy390;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy193;
2011-05-15 00:36:13 +00:00
yy390:
YYDEBUG(390, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy391;
if (yych != 'e') goto yy393;
yy391:
YYDEBUG(391, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'G') goto yy396;
if (yych == 'g') goto yy396;
2009-05-05 01:44:52 +00:00
goto yy193;
2011-05-15 00:36:13 +00:00
yy392:
YYDEBUG(392, *YYCURSOR);
++YYCURSOR;
YYFILL(1);
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
yy393:
YYDEBUG(393, *YYCURSOR);
if (yych <= 0x1F) {
2011-05-15 00:36:13 +00:00
if (yych == '\t') goto yy392;
2009-05-05 01:44:52 +00:00
goto yy193;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= ' ') goto yy392;
2009-05-05 01:44:52 +00:00
if (yych != ')') goto yy193;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(394, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(395, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1197 "Zend/zend_language_scanner.l"
{
return T_INT_CAST;
}
2011-05-15 00:36:13 +00:00
#line 4694 "Zend/zend_language_scanner.c"
yy396:
YYDEBUG(396, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy397;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy193;
2011-05-15 00:36:13 +00:00
yy397:
YYDEBUG(397, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy392;
if (yych == 'r') goto yy392;
2009-05-05 01:44:52 +00:00
goto yy193;
2011-05-15 00:36:13 +00:00
yy398:
YYDEBUG(398, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy399;
2009-05-05 01:44:52 +00:00
if (yych != 'o') goto yy193;
2011-05-15 00:36:13 +00:00
yy399:
YYDEBUG(399, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy400;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy193;
2011-05-15 00:36:13 +00:00
yy400:
YYDEBUG(400, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy401;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy193;
2011-05-15 00:36:13 +00:00
yy401:
YYDEBUG(401, *YYCURSOR);
2008-07-08 15:17:52 +00:00
++YYCURSOR;
YYFILL(1);
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(402, *YYCURSOR);
2008-07-08 15:17:52 +00:00
if (yych <= 0x1F) {
2011-05-15 00:36:13 +00:00
if (yych == '\t') goto yy401;
2009-05-05 01:44:52 +00:00
goto yy193;
2008-07-08 15:17:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= ' ') goto yy401;
2009-05-05 01:44:52 +00:00
if (yych != ')') goto yy193;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(403, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(404, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1201 "Zend/zend_language_scanner.l"
2008-07-08 15:17:52 +00:00
{
return T_DOUBLE_CAST;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
#line 4742 "Zend/zend_language_scanner.c"
yy405:
YYDEBUG(405, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'U') goto yy406;
2009-05-05 01:44:52 +00:00
if (yych != 'u') goto yy193;
2011-05-15 00:36:13 +00:00
yy406:
YYDEBUG(406, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'B') goto yy407;
2009-05-05 01:44:52 +00:00
if (yych != 'b') goto yy193;
2011-05-15 00:36:13 +00:00
yy407:
YYDEBUG(407, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy408;
2009-05-05 01:44:52 +00:00
if (yych != 'l') goto yy193;
2011-05-15 00:36:13 +00:00
yy408:
YYDEBUG(408, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy401;
if (yych == 'e') goto yy401;
2009-05-05 01:44:52 +00:00
goto yy193;
2011-05-15 00:36:13 +00:00
yy409:
YYDEBUG(409, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy410;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy193;
2011-05-15 00:36:13 +00:00
yy410:
YYDEBUG(410, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy401;
if (yych == 'l') goto yy401;
2009-05-05 01:44:52 +00:00
goto yy193;
2011-05-15 00:36:13 +00:00
yy411:
YYDEBUG(411, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy420;
if (yych == 'r') goto yy420;
goto yy193;
2011-05-15 00:36:13 +00:00
yy412:
YYDEBUG(412, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy413;
if (yych != 'a') goto yy193;
2011-05-15 00:36:13 +00:00
yy413:
YYDEBUG(413, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy414;
if (yych != 'l') goto yy193;
2011-05-15 00:36:13 +00:00
yy414:
YYDEBUG(414, *YYCURSOR);
2010-05-20 19:18:35 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy415;
if (yych != 'a') goto yy193;
2011-05-15 00:36:13 +00:00
yy415:
YYDEBUG(415, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy416;
if (yych != 'r') goto yy193;
2011-05-15 00:36:13 +00:00
yy416:
YYDEBUG(416, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(417, *YYCURSOR);
2008-03-16 21:23:02 +00:00
if (yych <= 0x1F) {
2011-05-15 00:36:13 +00:00
if (yych == '\t') goto yy416;
2009-05-05 01:44:52 +00:00
goto yy193;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= ' ') goto yy416;
2009-05-05 01:44:52 +00:00
if (yych != ')') goto yy193;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(418, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(419, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1209 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
return T_SCALAR_CAST;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 4822 "Zend/zend_language_scanner.c"
yy420:
YYDEBUG(420, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy421;
if (yych != 'i') goto yy193;
2011-05-15 00:36:13 +00:00
yy421:
YYDEBUG(421, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy422;
if (yych != 'n') goto yy193;
2011-05-15 00:36:13 +00:00
yy422:
YYDEBUG(422, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'G') goto yy423;
if (yych != 'g') goto yy193;
2011-05-15 00:36:13 +00:00
yy423:
YYDEBUG(423, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(424, *YYCURSOR);
2008-03-16 21:23:02 +00:00
if (yych <= 0x1F) {
2011-05-15 00:36:13 +00:00
if (yych == '\t') goto yy423;
2009-05-05 01:44:52 +00:00
goto yy193;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= ' ') goto yy423;
2009-05-05 01:44:52 +00:00
if (yych != ')') goto yy193;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(425, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(426, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1205 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
return T_STRING_CAST;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 4859 "Zend/zend_language_scanner.c"
yy427:
YYDEBUG(427, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy428;
if (yych != 'r') goto yy193;
2011-05-15 00:36:13 +00:00
yy428:
YYDEBUG(428, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy429;
if (yych != 'a') goto yy193;
2011-05-15 00:36:13 +00:00
yy429:
YYDEBUG(429, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'Y') goto yy430;
if (yych != 'y') goto yy193;
2011-05-15 00:36:13 +00:00
yy430:
YYDEBUG(430, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(431, *YYCURSOR);
2008-03-16 21:23:02 +00:00
if (yych <= 0x1F) {
2011-05-15 00:36:13 +00:00
if (yych == '\t') goto yy430;
2009-05-05 01:44:52 +00:00
goto yy193;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= ' ') goto yy430;
2009-05-05 01:44:52 +00:00
if (yych != ')') goto yy193;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(432, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(433, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1213 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
return T_ARRAY_CAST;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 4896 "Zend/zend_language_scanner.c"
yy434:
YYDEBUG(434, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'J') goto yy435;
if (yych != 'j') goto yy193;
2011-05-15 00:36:13 +00:00
yy435:
YYDEBUG(435, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy436;
if (yych != 'e') goto yy193;
2011-05-15 00:36:13 +00:00
yy436:
YYDEBUG(436, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy437;
if (yych != 'c') goto yy193;
2011-05-15 00:36:13 +00:00
yy437:
YYDEBUG(437, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy438;
if (yych != 't') goto yy193;
2011-05-15 00:36:13 +00:00
yy438:
YYDEBUG(438, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(439, *YYCURSOR);
2008-03-16 21:23:02 +00:00
if (yych <= 0x1F) {
2011-05-15 00:36:13 +00:00
if (yych == '\t') goto yy438;
2009-05-05 01:44:52 +00:00
goto yy193;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= ' ') goto yy438;
2009-05-05 01:44:52 +00:00
if (yych != ')') goto yy193;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(440, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(441, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1217 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
return T_OBJECT_CAST;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 4938 "Zend/zend_language_scanner.c"
yy442:
YYDEBUG(442, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy452;
if (yych == 'n') goto yy452;
goto yy193;
2011-05-15 00:36:13 +00:00
yy443:
YYDEBUG(443, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy444;
if (yych != 'o') goto yy193;
2011-05-15 00:36:13 +00:00
yy444:
YYDEBUG(444, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy445;
if (yych != 'l') goto yy193;
2011-05-15 00:36:13 +00:00
yy445:
YYDEBUG(445, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy450;
if (yych == 'e') goto yy450;
goto yy447;
yy446:
YYDEBUG(446, *YYCURSOR);
++YYCURSOR;
YYFILL(1);
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
yy447:
YYDEBUG(447, *YYCURSOR);
if (yych <= 0x1F) {
2011-05-15 00:36:13 +00:00
if (yych == '\t') goto yy446;
2009-05-05 01:44:52 +00:00
goto yy193;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= ' ') goto yy446;
2009-05-05 01:44:52 +00:00
if (yych != ')') goto yy193;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(448, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(449, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1221 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
return T_BOOL_CAST;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 4983 "Zend/zend_language_scanner.c"
yy450:
YYDEBUG(450, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy451;
if (yych != 'a') goto yy193;
2011-05-15 00:36:13 +00:00
yy451:
YYDEBUG(451, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy446;
if (yych == 'n') goto yy446;
goto yy193;
2011-05-15 00:36:13 +00:00
yy452:
YYDEBUG(452, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy453;
if (yych != 'a') goto yy193;
2011-05-15 00:36:13 +00:00
yy453:
YYDEBUG(453, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy454;
if (yych != 'r') goto yy193;
2011-05-15 00:36:13 +00:00
yy454:
YYDEBUG(454, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'Y') goto yy423;
if (yych == 'y') goto yy423;
goto yy193;
2011-05-15 00:36:13 +00:00
yy455:
YYDEBUG(455, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'S') goto yy456;
if (yych != 's') goto yy193;
2011-05-15 00:36:13 +00:00
yy456:
YYDEBUG(456, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy457;
if (yych != 'e') goto yy193;
2011-05-15 00:36:13 +00:00
yy457:
YYDEBUG(457, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy458;
if (yych != 't') goto yy193;
2011-05-15 00:36:13 +00:00
yy458:
YYDEBUG(458, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(1);
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(459, *YYCURSOR);
if (yych <= 0x1F) {
2011-05-15 00:36:13 +00:00
if (yych == '\t') goto yy458;
2009-05-05 01:44:52 +00:00
goto yy193;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= ' ') goto yy458;
2009-05-05 01:44:52 +00:00
if (yych != ')') goto yy193;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(460, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(461, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1225 "Zend/zend_language_scanner.l"
{
return T_UNSET_CAST;
}
2011-05-15 00:36:13 +00:00
#line 5047 "Zend/zend_language_scanner.c"
yy462:
YYDEBUG(462, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy463;
if (yych != 'r') goto yy186;
2011-05-15 00:36:13 +00:00
yy463:
YYDEBUG(463, *YYCURSOR);
2008-07-08 15:17:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(464, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1193 "Zend/zend_language_scanner.l"
{
return T_VAR;
}
2011-05-15 00:36:13 +00:00
#line 5065 "Zend/zend_language_scanner.c"
yy465:
YYDEBUG(465, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'M') goto yy469;
if (yych == 'm') goto yy469;
goto yy186;
2011-05-15 00:36:13 +00:00
yy466:
YYDEBUG(466, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'W') goto yy467;
if (yych != 'w') goto yy186;
yy467:
YYDEBUG(467, *YYCURSOR);
++YYCURSOR;
if (yybm[0+(yych = *YYCURSOR)] & 8) {
goto yy185;
}
YYDEBUG(468, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
#line 1185 "Zend/zend_language_scanner.l"
{
return T_NEW;
}
#line 5089 "Zend/zend_language_scanner.c"
yy469:
YYDEBUG(469, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy470;
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy470:
YYDEBUG(470, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'S') goto yy471;
if (yych != 's') goto yy186;
2011-05-15 00:36:13 +00:00
yy471:
YYDEBUG(471, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'P') goto yy472;
if (yych != 'p') goto yy186;
2011-05-15 00:36:13 +00:00
yy472:
YYDEBUG(472, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy473;
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy473:
YYDEBUG(473, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy474;
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy474:
YYDEBUG(474, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy475;
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy475:
YYDEBUG(475, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(476, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1249 "Zend/zend_language_scanner.l"
{
return T_NAMESPACE;
}
2011-05-15 00:36:13 +00:00
#line 5132 "Zend/zend_language_scanner.c"
yy477:
YYDEBUG(477, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(478, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1177 "Zend/zend_language_scanner.l"
{
return T_PAAMAYIM_NEKUDOTAYIM;
}
2011-05-15 00:36:13 +00:00
#line 5142 "Zend/zend_language_scanner.c"
yy479:
YYDEBUG(479, *YYCURSOR);
++YYCURSOR;
YYFILL(1);
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
yy480:
YYDEBUG(480, *YYCURSOR);
if (yych <= '\f') {
if (yych <= 0x08) goto yy140;
2011-05-15 00:36:13 +00:00
if (yych <= '\n') goto yy479;
goto yy140;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '\r') goto yy479;
if (yych == ' ') goto yy479;
goto yy140;
}
2011-05-15 00:36:13 +00:00
yy481:
YYDEBUG(481, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(482, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1353 "Zend/zend_language_scanner.l"
{
return T_MINUS_EQUAL;
}
2011-05-15 00:36:13 +00:00
#line 5168 "Zend/zend_language_scanner.c"
yy483:
YYDEBUG(483, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(484, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1321 "Zend/zend_language_scanner.l"
{
return T_DEC;
}
2011-05-15 00:36:13 +00:00
#line 5178 "Zend/zend_language_scanner.c"
yy485:
YYDEBUG(485, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(486, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1147 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
yy_push_state(ST_LOOKING_FOR_PROPERTY TSRMLS_CC);
return T_OBJECT_OPERATOR;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 5189 "Zend/zend_language_scanner.c"
yy487:
YYDEBUG(487, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych <= 'O') {
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy494;
2009-05-05 01:44:52 +00:00
if (yych <= 'N') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy495;
2009-05-05 01:44:52 +00:00
} else {
if (yych <= 'i') {
if (yych <= 'h') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy494;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'o') goto yy495;
2009-05-05 01:44:52 +00:00
goto yy186;
}
}
2011-05-15 00:36:13 +00:00
yy488:
YYDEBUG(488, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'B') goto yy489;
2009-05-05 01:44:52 +00:00
if (yych != 'b') goto yy186;
2011-05-15 00:36:13 +00:00
yy489:
YYDEBUG(489, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy490;
2009-05-05 01:44:52 +00:00
if (yych != 'l') goto yy186;
2011-05-15 00:36:13 +00:00
yy490:
YYDEBUG(490, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy491;
2009-05-05 01:44:52 +00:00
if (yych != 'i') goto yy186;
2011-05-15 00:36:13 +00:00
yy491:
YYDEBUG(491, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy492;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy492:
YYDEBUG(492, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(493, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1297 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_PUBLIC;
}
2011-05-15 00:36:13 +00:00
#line 5238 "Zend/zend_language_scanner.c"
yy494:
YYDEBUG(494, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych <= 'V') {
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy503;
2009-05-05 01:44:52 +00:00
if (yych <= 'U') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy504;
2009-05-05 01:44:52 +00:00
} else {
if (yych <= 'n') {
if (yych <= 'm') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy503;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'v') goto yy504;
2009-05-05 01:44:52 +00:00
goto yy186;
}
}
2011-05-15 00:36:13 +00:00
yy495:
YYDEBUG(495, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy496;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy496:
YYDEBUG(496, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy497;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy497:
YYDEBUG(497, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy498;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy498:
YYDEBUG(498, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy499;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy499:
YYDEBUG(499, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy500;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy500:
YYDEBUG(500, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'D') goto yy501;
2009-05-05 01:44:52 +00:00
if (yych != 'd') goto yy186;
2011-05-15 00:36:13 +00:00
yy501:
YYDEBUG(501, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(502, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1293 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_PROTECTED;
}
2011-05-15 00:36:13 +00:00
#line 5297 "Zend/zend_language_scanner.c"
yy503:
YYDEBUG(503, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy509;
if (yych == 't') goto yy509;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy504:
YYDEBUG(504, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy505;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy505:
YYDEBUG(505, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy506;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy506:
YYDEBUG(506, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy507;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy507:
YYDEBUG(507, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(508, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1289 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_PRIVATE;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 5331 "Zend/zend_language_scanner.c"
yy509:
YYDEBUG(509, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(510, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1123 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_PRINT;
}
2011-05-15 00:36:13 +00:00
#line 5344 "Zend/zend_language_scanner.c"
yy511:
YYDEBUG(511, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy516;
if (yych == 'o') goto yy516;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy512:
YYDEBUG(512, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy513;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy513:
YYDEBUG(513, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy514;
2009-05-05 01:44:52 +00:00
if (yych != 'o') goto yy186;
2011-05-15 00:36:13 +00:00
yy514:
YYDEBUG(514, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(515, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1115 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_GOTO;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 5373 "Zend/zend_language_scanner.c"
yy516:
YYDEBUG(516, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'B') goto yy517;
2009-05-05 01:44:52 +00:00
if (yych != 'b') goto yy186;
2011-05-15 00:36:13 +00:00
yy517:
YYDEBUG(517, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy518;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy518:
YYDEBUG(518, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy519;
2009-05-05 01:44:52 +00:00
if (yych != 'l') goto yy186;
2011-05-15 00:36:13 +00:00
yy519:
YYDEBUG(519, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(520, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1261 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_GLOBAL;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 5401 "Zend/zend_language_scanner.c"
yy521:
YYDEBUG(521, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == '<') goto yy529;
2009-05-05 01:44:52 +00:00
goto yy193;
2011-05-15 00:36:13 +00:00
yy522:
YYDEBUG(522, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
goto yy180;
2011-05-15 00:36:13 +00:00
yy523:
YYDEBUG(523, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
goto yy178;
2011-05-15 00:36:13 +00:00
yy524:
YYDEBUG(524, *YYCURSOR);
2010-05-20 19:18:35 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy525;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy525:
YYDEBUG(525, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy526;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy526:
YYDEBUG(526, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'K') goto yy527;
2009-05-05 01:44:52 +00:00
if (yych != 'k') goto yy186;
2011-05-15 00:36:13 +00:00
yy527:
YYDEBUG(527, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(528, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1107 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_BREAK;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 5442 "Zend/zend_language_scanner.c"
yy529:
YYDEBUG(529, *YYCURSOR);
2010-05-20 19:18:35 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == '<') goto yy265;
2009-05-05 01:44:52 +00:00
goto yy193;
2011-05-15 00:36:13 +00:00
yy530:
YYDEBUG(530, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy537;
if (yych == 'a') goto yy537;
goto yy186;
2011-05-15 00:36:13 +00:00
yy531:
YYDEBUG(531, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy532;
2009-05-05 01:44:52 +00:00
if (yych != 'i') goto yy186;
2011-05-15 00:36:13 +00:00
yy532:
YYDEBUG(532, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy533;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy533:
YYDEBUG(533, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy534;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy534:
YYDEBUG(534, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'H') goto yy535;
2009-05-05 01:44:52 +00:00
if (yych != 'h') goto yy186;
2011-05-15 00:36:13 +00:00
yy535:
YYDEBUG(535, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(536, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1091 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_SWITCH;
}
2011-05-15 00:36:13 +00:00
#line 5486 "Zend/zend_language_scanner.c"
yy537:
YYDEBUG(537, *YYCURSOR);
2010-05-20 19:18:35 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy538;
if (yych != 't') goto yy186;
yy538:
YYDEBUG(538, *YYCURSOR);
2010-05-20 19:18:35 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy539;
2010-05-20 19:18:35 +00:00
if (yych != 'i') goto yy186;
2011-05-15 00:36:13 +00:00
yy539:
YYDEBUG(539, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy540;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy540:
YYDEBUG(540, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(541, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1277 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_STATIC;
}
2011-05-15 00:36:13 +00:00
#line 5514 "Zend/zend_language_scanner.c"
yy542:
YYDEBUG(542, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'S') goto yy553;
if (yych == 's') goto yy553;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy543:
YYDEBUG(543, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'D') goto yy551;
if (yych == 'd') goto yy551;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy544:
YYDEBUG(544, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy547;
if (yych == 'r') goto yy547;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy545:
YYDEBUG(545, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(546, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1087 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_AS;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 5545 "Zend/zend_language_scanner.c"
yy547:
YYDEBUG(547, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy548;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy548:
YYDEBUG(548, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'Y') goto yy549;
2009-05-05 01:44:52 +00:00
if (yych != 'y') goto yy186;
2011-05-15 00:36:13 +00:00
yy549:
YYDEBUG(549, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(550, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1313 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_ARRAY;
}
2011-05-15 00:36:13 +00:00
#line 5568 "Zend/zend_language_scanner.c"
yy551:
YYDEBUG(551, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(552, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1405 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
return T_LOGICAL_AND;
}
2011-05-15 00:36:13 +00:00
#line 5581 "Zend/zend_language_scanner.c"
yy553:
YYDEBUG(553, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy554;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy554:
YYDEBUG(554, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy555;
2009-05-05 01:44:52 +00:00
if (yych != 'r') goto yy186;
2011-05-15 00:36:13 +00:00
yy555:
YYDEBUG(555, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy556;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy556:
YYDEBUG(556, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy557;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy557:
YYDEBUG(557, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy558;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy558:
YYDEBUG(558, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(559, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1281 "Zend/zend_language_scanner.l"
2008-07-08 15:17:52 +00:00
{
2009-05-05 01:44:52 +00:00
return T_ABSTRACT;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
#line 5619 "Zend/zend_language_scanner.c"
yy560:
YYDEBUG(560, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy561;
2009-05-05 01:44:52 +00:00
if (yych != 'i') goto yy186;
2011-05-15 00:36:13 +00:00
yy561:
YYDEBUG(561, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy562;
2009-05-05 01:44:52 +00:00
if (yych != 'l') goto yy186;
2011-05-15 00:36:13 +00:00
yy562:
YYDEBUG(562, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy563;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy563:
YYDEBUG(563, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(564, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1047 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_WHILE;
}
2011-05-15 00:36:13 +00:00
#line 5647 "Zend/zend_language_scanner.c"
yy565:
YYDEBUG(565, *YYCURSOR);
2008-07-08 15:17:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(566, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1031 "Zend/zend_language_scanner.l"
2008-07-08 15:17:52 +00:00
{
2009-05-05 01:44:52 +00:00
return T_IF;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
#line 5660 "Zend/zend_language_scanner.c"
yy567:
YYDEBUG(567, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'P') goto yy609;
if (yych == 'p') goto yy609;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy568:
YYDEBUG(568, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2008-07-08 15:17:52 +00:00
if (yych <= 'T') {
2009-05-05 01:44:52 +00:00
if (yych <= 'C') {
if (yych <= 'B') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy576;
2009-05-05 01:44:52 +00:00
} else {
if (yych <= 'R') goto yy186;
2011-05-15 00:36:13 +00:00
if (yych <= 'S') goto yy574;
goto yy575;
2009-05-05 01:44:52 +00:00
}
2008-07-08 15:17:52 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'r') {
2011-05-15 00:36:13 +00:00
if (yych == 'c') goto yy576;
2009-05-05 01:44:52 +00:00
goto yy186;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 's') goto yy574;
if (yych <= 't') goto yy575;
2009-05-05 01:44:52 +00:00
goto yy186;
}
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
yy569:
YYDEBUG(569, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'S') goto yy570;
2009-05-05 01:44:52 +00:00
if (yych != 's') goto yy186;
2011-05-15 00:36:13 +00:00
yy570:
YYDEBUG(570, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy571;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy571:
YYDEBUG(571, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy572;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy572:
YYDEBUG(572, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(573, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1265 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
return T_ISSET;
}
2011-05-15 00:36:13 +00:00
#line 5716 "Zend/zend_language_scanner.c"
yy574:
YYDEBUG(574, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy595;
if (yych == 't') goto yy595;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy575:
YYDEBUG(575, *YYCURSOR);
yych = *++YYCURSOR;
if (yych == 'E') goto yy588;
if (yych == 'e') goto yy588;
goto yy186;
yy576:
YYDEBUG(576, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy577;
2009-05-05 01:44:52 +00:00
if (yych != 'l') goto yy186;
2011-05-15 00:36:13 +00:00
yy577:
YYDEBUG(577, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'U') goto yy578;
2009-05-05 01:44:52 +00:00
if (yych != 'u') goto yy186;
2011-05-15 00:36:13 +00:00
yy578:
YYDEBUG(578, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'D') goto yy579;
2009-05-05 01:44:52 +00:00
if (yych != 'd') goto yy186;
2011-05-15 00:36:13 +00:00
yy579:
YYDEBUG(579, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy580;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy580:
YYDEBUG(580, *YYCURSOR);
++YYCURSOR;
if ((yych = *YYCURSOR) <= '^') {
if (yych <= '9') {
2009-05-05 01:44:52 +00:00
if (yych >= '0') goto yy185;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '@') goto yy581;
2009-05-05 01:44:52 +00:00
if (yych <= 'Z') goto yy185;
}
} else {
if (yych <= '`') {
2011-05-15 00:36:13 +00:00
if (yych <= '_') goto yy582;
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'z') goto yy185;
if (yych >= 0x7F) goto yy185;
}
}
2011-05-15 00:36:13 +00:00
yy581:
YYDEBUG(581, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1233 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_INCLUDE;
}
2011-05-15 00:36:13 +00:00
#line 5774 "Zend/zend_language_scanner.c"
yy582:
YYDEBUG(582, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy583;
2009-05-05 01:44:52 +00:00
if (yych != 'o') goto yy186;
2011-05-15 00:36:13 +00:00
yy583:
YYDEBUG(583, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy584;
2009-05-05 01:44:52 +00:00
if (yych != 'n') goto yy186;
2011-05-15 00:36:13 +00:00
yy584:
YYDEBUG(584, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy585;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy585:
YYDEBUG(585, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy586;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy586:
YYDEBUG(586, *YYCURSOR);
2008-07-08 15:17:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(587, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1237 "Zend/zend_language_scanner.l"
2008-07-08 15:17:52 +00:00
{
2009-05-05 01:44:52 +00:00
return T_INCLUDE_ONCE;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
#line 5807 "Zend/zend_language_scanner.c"
yy588:
YYDEBUG(588, *YYCURSOR);
2010-05-20 19:18:35 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy589;
if (yych != 'r') goto yy186;
yy589:
YYDEBUG(589, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'F') goto yy590;
if (yych != 'f') goto yy186;
yy590:
YYDEBUG(590, *YYCURSOR);
2010-05-20 19:18:35 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy591;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy591:
YYDEBUG(591, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy592;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy592:
YYDEBUG(592, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy593;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy593:
YYDEBUG(593, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(594, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1131 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_INTERFACE;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 5845 "Zend/zend_language_scanner.c"
yy595:
YYDEBUG(595, *YYCURSOR);
yych = *++YYCURSOR;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych <= 'E') {
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy596;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych <= 'D') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy597;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
} else {
if (yych <= 'a') {
if (yych <= '`') goto yy186;
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'e') goto yy597;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
goto yy186;
}
}
2011-05-15 00:36:13 +00:00
yy596:
YYDEBUG(596, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy603;
if (yych == 'n') goto yy603;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy597:
YYDEBUG(597, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy598;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy598:
YYDEBUG(598, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'D') goto yy599;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych != 'd') goto yy186;
2011-05-15 00:36:13 +00:00
yy599:
YYDEBUG(599, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy600;
2009-05-05 01:44:52 +00:00
if (yych != 'o') goto yy186;
2011-05-15 00:36:13 +00:00
yy600:
YYDEBUG(600, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'F') goto yy601;
2009-05-05 01:44:52 +00:00
if (yych != 'f') goto yy186;
2011-05-15 00:36:13 +00:00
yy601:
YYDEBUG(601, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(602, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1257 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
return T_INSTEADOF;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 5899 "Zend/zend_language_scanner.c"
yy603:
YYDEBUG(603, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy604;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy604:
YYDEBUG(604, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy605;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy605:
YYDEBUG(605, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy606;
if (yych != 'o') goto yy186;
yy606:
YYDEBUG(606, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'F') goto yy607;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych != 'f') goto yy186;
2011-05-15 00:36:13 +00:00
yy607:
YYDEBUG(607, *YYCURSOR);
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(608, *YYCURSOR);
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1083 "Zend/zend_language_scanner.l"
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
{
return T_INSTANCEOF;
}
2011-05-15 00:36:13 +00:00
#line 5932 "Zend/zend_language_scanner.c"
yy609:
YYDEBUG(609, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy610;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych != 'l') goto yy186;
2011-05-15 00:36:13 +00:00
yy610:
YYDEBUG(610, *YYCURSOR);
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy611;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy611:
YYDEBUG(611, *YYCURSOR);
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'M') goto yy612;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych != 'm') goto yy186;
2011-05-15 00:36:13 +00:00
yy612:
YYDEBUG(612, *YYCURSOR);
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy613;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy613:
YYDEBUG(613, *YYCURSOR);
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy614;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych != 'n') goto yy186;
2011-05-15 00:36:13 +00:00
yy614:
YYDEBUG(614, *YYCURSOR);
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy615;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy615:
YYDEBUG(615, *YYCURSOR);
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'S') goto yy616;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych != 's') goto yy186;
2011-05-15 00:36:13 +00:00
yy616:
YYDEBUG(616, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(617, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1143 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_IMPLEMENTS;
}
2011-05-15 00:36:13 +00:00
#line 5980 "Zend/zend_language_scanner.c"
yy618:
YYDEBUG(618, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy626;
if (yych == 'r') goto yy626;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy619:
YYDEBUG(619, *YYCURSOR);
yych = *++YYCURSOR;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych <= 'Y') {
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy622;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych <= 'X') goto yy186;
} else {
if (yych <= 'a') {
if (yych <= '`') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy622;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
} else {
if (yych != 'y') goto yy186;
}
}
2011-05-15 00:36:13 +00:00
YYDEBUG(620, *YYCURSOR);
2008-07-08 15:17:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(621, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1019 "Zend/zend_language_scanner.l"
2008-07-08 15:17:52 +00:00
{
2009-05-05 01:44:52 +00:00
return T_TRY;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6012 "Zend/zend_language_scanner.c"
yy622:
YYDEBUG(622, *YYCURSOR);
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy623;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych != 'i') goto yy186;
2011-05-15 00:36:13 +00:00
yy623:
YYDEBUG(623, *YYCURSOR);
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy624;
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy624:
YYDEBUG(624, *YYCURSOR);
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(625, *YYCURSOR);
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1135 "Zend/zend_language_scanner.l"
Implemented Traits for PHP as proposed in the RFC [TRAITS] # RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior # Ok, here we go, I guess that will result in more discussion, which is fine # by me. But now, the patch is here, and properly archived. # # See below a list of notes to the patch, it also includes a list of # points which should be fixed # # Internals of the Traits Patch # ----------------------------- # # Open TODOs # """""""""" # # - Reflection API # - support for traits for internal classes # - currently destroy_zend_class does not handle that case # # Introduced Structures # """"""""""""""""""""" # # Data structures to encode the composition information specified in the # source: # - zend_trait_method_reference # - zend_trait_precedence # - zend_trait_alias # # Changes # """"""" # # zend_class_entry # - uses NULL terminated lists of pointers for # - trait_aliases # - trait_precedences # - do you prefer an explicit counter? # - the information is only necessary during class composition # but might be interesting for reflection # - did not want to blow up class further with not really necessary length counters # # added keywords # - trait # - insteadof # # Added opcodes # ZEND_ADD_TRAIT # - similar to ZEND_ADD_INTERFACE # - adds the trait to the list of traits of a class, no actual composition done # ZEND_BIND_TRAITS # - emitted in zend_do_end_class_declaration # - concludes the class definition and will initiate the trait composition # when the class definition is encountered during runtime # # Added Flags # ZEND_ACC_TRAIT = 0x120 # ZEND_ACC_IMPLEMENT_TRAITS = 0x400000 # ZEND_FETCH_CLASS_TRAIT = 14 # # zend_vm_execute.h # - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER, # ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective # # zend_compile.c # - refactored do_inherit_method_check # split into do_inherit_method_check and do_inheritance_check_on_method # - added helper functions use a '_' as prefix and are not mentioned in the # headers # - _copy_functions # prepare hash-maps of functions which should be merged into a class # here the aliases are handled # - _merge_functions # builds a hash-table of the methods which need to be added to a class # does the conflict detection # - reused php_runkit_function_copy_ctor # - it is not identical with the original code anymore, needed to update it # think I fixed some bugs, not sure whether all have been reported back to runkit # - has to be renamed, left the name for the moment, to make its origin obvious # - here might be optimization potential # - not sure whether everything needs to be copied # - copying the literals might be broken # - added it since the literals array is freed by efree and gave problems # with doubled frees # - all immutable parts of the zend_op array should not be copied # - am not sure which parts are immutable # - and not sure how to avoid doubled frees on the same arrays on shutdown # - _merge_functions_to_class # does the final merging with the target class to handle inherited # and overridden methods # - small helper for NULL terminated lists # zend_init_list, zend_add_to_list # # zend_language_parser.y # - reused class definition for traits # - there should be something with regard to properties # - if they get explicitly defined, it might be worthwhile to # check that there are no collisions with other traits in a composition # (however, I would not introduce elaborate language features to control that # but a notice for such conflicts might be nice to the developers)
2010-04-22 22:05:56 +00:00
{
return T_TRAIT;
}
2011-05-15 00:36:13 +00:00
#line 6035 "Zend/zend_language_scanner.c"
yy626:
YYDEBUG(626, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy627;
2009-05-05 01:44:52 +00:00
if (yych != 'o') goto yy186;
2011-05-15 00:36:13 +00:00
yy627:
YYDEBUG(627, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'W') goto yy628;
2009-05-05 01:44:52 +00:00
if (yych != 'w') goto yy186;
2011-05-15 00:36:13 +00:00
yy628:
YYDEBUG(628, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(629, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1027 "Zend/zend_language_scanner.l"
2008-07-08 15:17:52 +00:00
{
2009-05-05 01:44:52 +00:00
return T_THROW;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6058 "Zend/zend_language_scanner.c"
yy630:
YYDEBUG(630, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych <= 'T') {
2011-05-15 00:36:13 +00:00
if (yych == 'Q') goto yy632;
if (yych <= 'S') goto yy186;
2009-05-05 01:44:52 +00:00
} else {
if (yych <= 'q') {
if (yych <= 'p') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy632;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych != 't') goto yy186;
2009-05-05 01:44:52 +00:00
}
}
2011-05-15 00:36:13 +00:00
YYDEBUG(631, *YYCURSOR);
2010-05-20 19:18:35 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'U') goto yy644;
if (yych == 'u') goto yy644;
2010-05-20 19:18:35 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy632:
YYDEBUG(632, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'U') goto yy633;
2009-05-05 01:44:52 +00:00
if (yych != 'u') goto yy186;
2011-05-15 00:36:13 +00:00
yy633:
YYDEBUG(633, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy634;
2009-05-05 01:44:52 +00:00
if (yych != 'i') goto yy186;
2011-05-15 00:36:13 +00:00
yy634:
YYDEBUG(634, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy635;
2009-05-05 01:44:52 +00:00
if (yych != 'r') goto yy186;
2011-05-15 00:36:13 +00:00
yy635:
YYDEBUG(635, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy636;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy636:
YYDEBUG(636, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
if ((yych = *YYCURSOR) <= '^') {
2009-05-05 01:44:52 +00:00
if (yych <= '9') {
if (yych >= '0') goto yy185;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '@') goto yy637;
2009-05-05 01:44:52 +00:00
if (yych <= 'Z') goto yy185;
}
} else {
2009-05-05 01:44:52 +00:00
if (yych <= '`') {
2011-05-15 00:36:13 +00:00
if (yych <= '_') goto yy638;
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'z') goto yy185;
if (yych >= 0x7F) goto yy185;
}
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
yy637:
YYDEBUG(637, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1241 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_REQUIRE;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6123 "Zend/zend_language_scanner.c"
yy638:
YYDEBUG(638, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy639;
2009-05-05 01:44:52 +00:00
if (yych != 'o') goto yy186;
2011-05-15 00:36:13 +00:00
yy639:
YYDEBUG(639, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy640;
2009-05-05 01:44:52 +00:00
if (yych != 'n') goto yy186;
2011-05-15 00:36:13 +00:00
yy640:
YYDEBUG(640, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy641;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy641:
YYDEBUG(641, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy642;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy642:
YYDEBUG(642, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(643, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1245 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_REQUIRE_ONCE;
2011-05-15 00:36:13 +00:00
}
#line 6156 "Zend/zend_language_scanner.c"
yy644:
YYDEBUG(644, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy645;
2009-05-05 01:44:52 +00:00
if (yych != 'r') goto yy186;
2011-05-15 00:36:13 +00:00
yy645:
YYDEBUG(645, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy646;
2009-05-05 01:44:52 +00:00
if (yych != 'n') goto yy186;
2011-05-15 00:36:13 +00:00
yy646:
YYDEBUG(646, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(647, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1015 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_RETURN;
}
2011-05-15 00:36:13 +00:00
#line 6179 "Zend/zend_language_scanner.c"
yy648:
YYDEBUG(648, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych <= 'T') {
if (yych <= 'R') goto yy186;
2011-05-15 00:36:13 +00:00
if (yych <= 'S') goto yy670;
goto yy669;
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'r') goto yy186;
2011-05-15 00:36:13 +00:00
if (yych <= 's') goto yy670;
if (yych <= 't') goto yy669;
2009-05-05 01:44:52 +00:00
goto yy186;
}
2011-05-15 00:36:13 +00:00
yy649:
YYDEBUG(649, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych <= 'O') {
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy661;
2009-05-05 01:44:52 +00:00
if (yych <= 'N') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy662;
2009-05-05 01:44:52 +00:00
} else {
if (yych <= 'a') {
if (yych <= '`') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy661;
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'o') goto yy662;
2009-05-05 01:44:52 +00:00
goto yy186;
}
}
2011-05-15 00:36:13 +00:00
yy650:
YYDEBUG(650, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy651;
2009-05-05 01:44:52 +00:00
if (yych != 'n') goto yy186;
2011-05-15 00:36:13 +00:00
yy651:
YYDEBUG(651, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych <= 'T') {
if (yych <= 'R') goto yy186;
2011-05-15 00:36:13 +00:00
if (yych >= 'T') goto yy653;
2009-05-05 01:44:52 +00:00
} else {
if (yych <= 'r') goto yy186;
2011-05-15 00:36:13 +00:00
if (yych <= 's') goto yy652;
if (yych <= 't') goto yy653;
2009-05-05 01:44:52 +00:00
goto yy186;
}
2011-05-15 00:36:13 +00:00
yy652:
YYDEBUG(652, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy659;
if (yych == 't') goto yy659;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy653:
YYDEBUG(653, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy654;
2009-05-05 01:44:52 +00:00
if (yych != 'i') goto yy186;
2011-05-15 00:36:13 +00:00
yy654:
YYDEBUG(654, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy655;
2009-05-05 01:44:52 +00:00
if (yych != 'n') goto yy186;
2011-05-15 00:36:13 +00:00
yy655:
YYDEBUG(655, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'U') goto yy656;
2009-05-05 01:44:52 +00:00
if (yych != 'u') goto yy186;
2011-05-15 00:36:13 +00:00
yy656:
YYDEBUG(656, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy657;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy657:
YYDEBUG(657, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(658, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1111 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_CONTINUE;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6264 "Zend/zend_language_scanner.c"
yy659:
YYDEBUG(659, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(660, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1011 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_CONST;
}
2011-05-15 00:36:13 +00:00
#line 6277 "Zend/zend_language_scanner.c"
yy661:
YYDEBUG(661, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'S') goto yy666;
if (yych == 's') goto yy666;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy662:
YYDEBUG(662, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy663;
2009-05-05 01:44:52 +00:00
if (yych != 'n') goto yy186;
2011-05-15 00:36:13 +00:00
yy663:
YYDEBUG(663, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy664;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy664:
YYDEBUG(664, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(665, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1189 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_CLONE;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6306 "Zend/zend_language_scanner.c"
yy666:
YYDEBUG(666, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'S') goto yy667;
2009-05-05 01:44:52 +00:00
if (yych != 's') goto yy186;
2011-05-15 00:36:13 +00:00
yy667:
YYDEBUG(667, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(668, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1127 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_CLASS;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6324 "Zend/zend_language_scanner.c"
yy669:
YYDEBUG(669, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy673;
if (yych == 'c') goto yy673;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy670:
YYDEBUG(670, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy671;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy671:
YYDEBUG(671, *YYCURSOR);
2008-07-08 15:17:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(672, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1099 "Zend/zend_language_scanner.l"
2008-07-08 15:17:52 +00:00
{
2009-05-05 01:44:52 +00:00
return T_CASE;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6348 "Zend/zend_language_scanner.c"
yy673:
YYDEBUG(673, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'H') goto yy674;
2009-05-05 01:44:52 +00:00
if (yych != 'h') goto yy186;
2011-05-15 00:36:13 +00:00
yy674:
YYDEBUG(674, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(675, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1023 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_CATCH;
}
2011-05-15 00:36:13 +00:00
#line 6366 "Zend/zend_language_scanner.c"
yy676:
YYDEBUG(676, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy693;
if (yych == 'n') goto yy693;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy677:
YYDEBUG(677, *YYCURSOR);
2010-05-20 19:18:35 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy686;
if (yych == 'r') goto yy686;
2010-05-20 19:18:35 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy678:
YYDEBUG(678, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy679;
2009-05-05 01:44:52 +00:00
if (yych != 'n') goto yy186;
2011-05-15 00:36:13 +00:00
yy679:
YYDEBUG(679, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy680;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy680:
YYDEBUG(680, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy681;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy681:
YYDEBUG(681, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy682;
2009-05-05 01:44:52 +00:00
if (yych != 'i') goto yy186;
2011-05-15 00:36:13 +00:00
yy682:
YYDEBUG(682, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy683;
2009-05-05 01:44:52 +00:00
if (yych != 'o') goto yy186;
2011-05-15 00:36:13 +00:00
yy683:
YYDEBUG(683, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy684;
2009-05-05 01:44:52 +00:00
if (yych != 'n') goto yy186;
2011-05-15 00:36:13 +00:00
yy684:
YYDEBUG(684, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(685, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1007 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_FUNCTION;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6421 "Zend/zend_language_scanner.c"
yy686:
YYDEBUG(686, *YYCURSOR);
2008-07-08 15:17:52 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
if ((yych = *YYCURSOR) <= '^') {
if (yych <= '@') {
2011-05-15 00:36:13 +00:00
if (yych <= '/') goto yy687;
2009-05-05 01:44:52 +00:00
if (yych <= '9') goto yy185;
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy688;
2009-05-05 01:44:52 +00:00
if (yych <= 'Z') goto yy185;
}
} else {
if (yych <= 'd') {
if (yych != '`') goto yy185;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'e') goto yy688;
2009-05-05 01:44:52 +00:00
if (yych <= 'z') goto yy185;
if (yych >= 0x7F) goto yy185;
}
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
yy687:
YYDEBUG(687, *YYCURSOR);
2008-07-08 15:17:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1059 "Zend/zend_language_scanner.l"
2008-07-08 15:17:52 +00:00
{
2009-05-05 01:44:52 +00:00
return T_FOR;
2008-07-08 15:17:52 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6449 "Zend/zend_language_scanner.c"
yy688:
YYDEBUG(688, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy689;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy689:
YYDEBUG(689, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy690;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy690:
YYDEBUG(690, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'H') goto yy691;
2009-05-05 01:44:52 +00:00
if (yych != 'h') goto yy186;
2011-05-15 00:36:13 +00:00
yy691:
YYDEBUG(691, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(692, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1067 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_FOREACH;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6477 "Zend/zend_language_scanner.c"
yy693:
YYDEBUG(693, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy694;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy694:
YYDEBUG(694, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy695;
2009-05-05 01:44:52 +00:00
if (yych != 'l') goto yy186;
2011-05-15 00:36:13 +00:00
yy695:
YYDEBUG(695, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(696, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1285 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_FINAL;
}
2011-05-15 00:36:13 +00:00
#line 6500 "Zend/zend_language_scanner.c"
yy697:
YYDEBUG(697, *YYCURSOR);
yych = *++YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych <= 'F') {
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy703;
2009-05-05 01:44:52 +00:00
if (yych <= 'E') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy704;
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'c') {
if (yych <= 'b') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy703;
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'f') goto yy704;
2009-05-05 01:44:52 +00:00
goto yy186;
}
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
yy698:
YYDEBUG(698, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy701;
if (yych == 'e') goto yy701;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy699:
YYDEBUG(699, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
goto yy185;
2009-05-05 01:44:52 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(700, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1055 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_DO;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6535 "Zend/zend_language_scanner.c"
yy701:
YYDEBUG(701, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(702, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1003 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_EXIT;
}
2011-05-15 00:36:13 +00:00
#line 6548 "Zend/zend_language_scanner.c"
yy703:
YYDEBUG(703, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy710;
if (yych == 'l') goto yy710;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy704:
YYDEBUG(704, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy705;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy705:
YYDEBUG(705, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'U') goto yy706;
2009-05-05 01:44:52 +00:00
if (yych != 'u') goto yy186;
2011-05-15 00:36:13 +00:00
yy706:
YYDEBUG(706, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy707;
2009-05-05 01:44:52 +00:00
if (yych != 'l') goto yy186;
2011-05-15 00:36:13 +00:00
yy707:
YYDEBUG(707, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy708;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy708:
YYDEBUG(708, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(709, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1103 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_DEFAULT;
}
2011-05-15 00:36:13 +00:00
#line 6587 "Zend/zend_language_scanner.c"
yy710:
YYDEBUG(710, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy711;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy711:
YYDEBUG(711, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy712;
2009-05-05 01:44:52 +00:00
if (yych != 'r') goto yy186;
2011-05-15 00:36:13 +00:00
yy712:
YYDEBUG(712, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy713;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy713:
YYDEBUG(713, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(714, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1075 "Zend/zend_language_scanner.l"
{
2009-05-05 01:44:52 +00:00
return T_DECLARE;
}
2011-05-15 00:36:13 +00:00
#line 6615 "Zend/zend_language_scanner.c"
yy715:
YYDEBUG(715, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'H') goto yy777;
if (yych == 'h') goto yy777;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy716:
YYDEBUG(716, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'S') goto yy771;
if (yych == 's') goto yy771;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy717:
YYDEBUG(717, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'P') goto yy767;
if (yych == 'p') goto yy767;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy718:
YYDEBUG(718, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'D') goto yy733;
if (yych == 'd') goto yy733;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy719:
YYDEBUG(719, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy730;
if (yych == 'a') goto yy730;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy720:
YYDEBUG(720, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
if (yych <= 'T') {
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy721;
2009-05-05 01:44:52 +00:00
if (yych <= 'S') goto yy186;
2011-05-15 00:36:13 +00:00
goto yy722;
2008-03-16 21:23:02 +00:00
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'i') {
if (yych <= 'h') goto yy186;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 't') goto yy722;
2009-05-05 01:44:52 +00:00
goto yy186;
2008-03-16 21:23:02 +00:00
}
}
2011-05-15 00:36:13 +00:00
yy721:
YYDEBUG(721, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy728;
if (yych == 't') goto yy728;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy722:
YYDEBUG(722, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy723;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy723:
YYDEBUG(723, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'N') goto yy724;
2009-05-05 01:44:52 +00:00
if (yych != 'n') goto yy186;
2011-05-15 00:36:13 +00:00
yy724:
YYDEBUG(724, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'D') goto yy725;
2009-05-05 01:44:52 +00:00
if (yych != 'd') goto yy186;
2011-05-15 00:36:13 +00:00
yy725:
YYDEBUG(725, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'S') goto yy726;
2009-05-05 01:44:52 +00:00
if (yych != 's') goto yy186;
2011-05-15 00:36:13 +00:00
yy726:
YYDEBUG(726, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(727, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1139 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_EXTENDS;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6699 "Zend/zend_language_scanner.c"
yy728:
YYDEBUG(728, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(729, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 999 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_EXIT;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6712 "Zend/zend_language_scanner.c"
yy730:
YYDEBUG(730, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy731;
2009-05-05 01:44:52 +00:00
if (yych != 'l') goto yy186;
2011-05-15 00:36:13 +00:00
yy731:
YYDEBUG(731, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(732, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1229 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_EVAL;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6730 "Zend/zend_language_scanner.c"
yy733:
YYDEBUG(733, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
YYDEBUG(-1, yych);
switch (yych) {
case 'D':
2011-05-15 00:36:13 +00:00
case 'd': goto yy734;
2009-05-05 01:44:52 +00:00
case 'F':
2011-05-15 00:36:13 +00:00
case 'f': goto yy735;
2009-05-05 01:44:52 +00:00
case 'I':
2011-05-15 00:36:13 +00:00
case 'i': goto yy736;
2009-05-05 01:44:52 +00:00
case 'S':
2011-05-15 00:36:13 +00:00
case 's': goto yy737;
2009-05-05 01:44:52 +00:00
case 'W':
2011-05-15 00:36:13 +00:00
case 'w': goto yy738;
2009-05-05 01:44:52 +00:00
default: goto yy186;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
yy734:
YYDEBUG(734, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy760;
if (yych == 'e') goto yy760;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy735:
YYDEBUG(735, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy752;
if (yych == 'o') goto yy752;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy736:
YYDEBUG(736, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'F') goto yy750;
if (yych == 'f') goto yy750;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy737:
YYDEBUG(737, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'W') goto yy744;
if (yych == 'w') goto yy744;
2009-05-05 01:44:52 +00:00
goto yy186;
2011-05-15 00:36:13 +00:00
yy738:
YYDEBUG(738, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'H') goto yy739;
2009-05-05 01:44:52 +00:00
if (yych != 'h') goto yy186;
2011-05-15 00:36:13 +00:00
yy739:
YYDEBUG(739, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy740;
2009-05-05 01:44:52 +00:00
if (yych != 'i') goto yy186;
2011-05-15 00:36:13 +00:00
yy740:
YYDEBUG(740, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy741;
2009-05-05 01:44:52 +00:00
if (yych != 'l') goto yy186;
2011-05-15 00:36:13 +00:00
yy741:
YYDEBUG(741, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy742;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy742:
YYDEBUG(742, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(743, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1051 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_ENDWHILE;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6804 "Zend/zend_language_scanner.c"
yy744:
YYDEBUG(744, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy745;
2009-05-05 01:44:52 +00:00
if (yych != 'i') goto yy186;
2011-05-15 00:36:13 +00:00
yy745:
YYDEBUG(745, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy746;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy746:
YYDEBUG(746, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy747;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy747:
YYDEBUG(747, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'H') goto yy748;
2009-05-05 01:44:52 +00:00
if (yych != 'h') goto yy186;
2011-05-15 00:36:13 +00:00
yy748:
YYDEBUG(748, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(749, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1095 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_ENDSWITCH;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6837 "Zend/zend_language_scanner.c"
yy750:
YYDEBUG(750, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(751, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1039 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
return T_ENDIF;
}
2011-05-15 00:36:13 +00:00
#line 6850 "Zend/zend_language_scanner.c"
yy752:
YYDEBUG(752, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy753;
2009-05-05 01:44:52 +00:00
if (yych != 'r') goto yy186;
2011-05-15 00:36:13 +00:00
yy753:
YYDEBUG(753, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2009-05-05 01:44:52 +00:00
if ((yych = *YYCURSOR) <= '^') {
if (yych <= '@') {
2011-05-15 00:36:13 +00:00
if (yych <= '/') goto yy754;
2009-05-05 01:44:52 +00:00
if (yych <= '9') goto yy185;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy755;
2009-05-05 01:44:52 +00:00
if (yych <= 'Z') goto yy185;
2008-03-16 21:23:02 +00:00
}
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'd') {
if (yych != '`') goto yy185;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'e') goto yy755;
2009-05-05 01:44:52 +00:00
if (yych <= 'z') goto yy185;
if (yych >= 0x7F) goto yy185;
2008-03-16 21:23:02 +00:00
}
}
2011-05-15 00:36:13 +00:00
yy754:
YYDEBUG(754, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1063 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
return T_ENDFOR;
}
2011-05-15 00:36:13 +00:00
#line 6883 "Zend/zend_language_scanner.c"
yy755:
YYDEBUG(755, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy756;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy756:
YYDEBUG(756, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy757;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy757:
YYDEBUG(757, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'H') goto yy758;
2009-05-05 01:44:52 +00:00
if (yych != 'h') goto yy186;
2011-05-15 00:36:13 +00:00
yy758:
YYDEBUG(758, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(759, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1071 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
return T_ENDFOREACH;
}
2011-05-15 00:36:13 +00:00
#line 6911 "Zend/zend_language_scanner.c"
yy760:
YYDEBUG(760, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'C') goto yy761;
2009-05-05 01:44:52 +00:00
if (yych != 'c') goto yy186;
2011-05-15 00:36:13 +00:00
yy761:
YYDEBUG(761, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'L') goto yy762;
2009-05-05 01:44:52 +00:00
if (yych != 'l') goto yy186;
2011-05-15 00:36:13 +00:00
yy762:
YYDEBUG(762, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'A') goto yy763;
2009-05-05 01:44:52 +00:00
if (yych != 'a') goto yy186;
2011-05-15 00:36:13 +00:00
yy763:
YYDEBUG(763, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'R') goto yy764;
2009-05-05 01:44:52 +00:00
if (yych != 'r') goto yy186;
2011-05-15 00:36:13 +00:00
yy764:
YYDEBUG(764, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy765;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy765:
YYDEBUG(765, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(766, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1079 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
return T_ENDDECLARE;
}
2011-05-15 00:36:13 +00:00
#line 6949 "Zend/zend_language_scanner.c"
yy767:
YYDEBUG(767, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'T') goto yy768;
2009-05-05 01:44:52 +00:00
if (yych != 't') goto yy186;
2011-05-15 00:36:13 +00:00
yy768:
YYDEBUG(768, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'Y') goto yy769;
2009-05-05 01:44:52 +00:00
if (yych != 'y') goto yy186;
2011-05-15 00:36:13 +00:00
yy769:
YYDEBUG(769, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(770, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1269 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
return T_EMPTY;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 6972 "Zend/zend_language_scanner.c"
yy771:
YYDEBUG(771, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'E') goto yy772;
2009-05-05 01:44:52 +00:00
if (yych != 'e') goto yy186;
2011-05-15 00:36:13 +00:00
yy772:
YYDEBUG(772, *YYCURSOR);
++YYCURSOR;
2009-05-05 01:44:52 +00:00
if ((yych = *YYCURSOR) <= '^') {
if (yych <= '@') {
2011-05-15 00:36:13 +00:00
if (yych <= '/') goto yy773;
2009-05-05 01:44:52 +00:00
if (yych <= '9') goto yy185;
} else {
2011-05-15 00:36:13 +00:00
if (yych == 'I') goto yy774;
2009-05-05 01:44:52 +00:00
if (yych <= 'Z') goto yy185;
}
} else {
2009-05-05 01:44:52 +00:00
if (yych <= 'h') {
if (yych != '`') goto yy185;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'i') goto yy774;
2009-05-05 01:44:52 +00:00
if (yych <= 'z') goto yy185;
if (yych >= 0x7F) goto yy185;
}
}
2011-05-15 00:36:13 +00:00
yy773:
YYDEBUG(773, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1043 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
return T_ELSE;
}
2011-05-15 00:36:13 +00:00
#line 7005 "Zend/zend_language_scanner.c"
yy774:
YYDEBUG(774, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'F') goto yy775;
2009-05-05 01:44:52 +00:00
if (yych != 'f') goto yy186;
2011-05-15 00:36:13 +00:00
yy775:
YYDEBUG(775, *YYCURSOR);
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(776, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1035 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
return T_ELSEIF;
}
2011-05-15 00:36:13 +00:00
#line 7023 "Zend/zend_language_scanner.c"
yy777:
YYDEBUG(777, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yych == 'O') goto yy778;
2009-05-05 01:44:52 +00:00
if (yych != 'o') goto yy186;
2011-05-15 00:36:13 +00:00
yy778:
YYDEBUG(778, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if (yybm[0+(yych = *YYCURSOR)] & 8) {
2009-05-05 01:44:52 +00:00
goto yy185;
}
2011-05-15 00:36:13 +00:00
YYDEBUG(779, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1119 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
return T_ECHO;
}
2011-05-15 00:36:13 +00:00
#line 7041 "Zend/zend_language_scanner.c"
2008-03-16 21:23:02 +00:00
}
/* *********************************** */
2009-05-05 01:44:52 +00:00
yyc_ST_LOOKING_FOR_PROPERTY:
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
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,
2009-05-05 01:44:52 +00:00
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,
2009-05-05 01:44:52 +00:00
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,
2009-05-05 01:44:52 +00:00
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,
2008-03-16 21:23:02 +00:00
};
2011-05-15 00:36:13 +00:00
YYDEBUG(780, *YYCURSOR);
YYFILL(2);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2009-05-05 01:44:52 +00:00
if (yych <= '-') {
if (yych <= '\r') {
2011-05-15 00:36:13 +00:00
if (yych <= 0x08) goto yy788;
if (yych <= '\n') goto yy782;
if (yych <= '\f') goto yy788;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych == ' ') goto yy782;
if (yych <= ',') goto yy788;
goto yy784;
2009-05-05 01:44:52 +00:00
}
} else {
2009-05-05 01:44:52 +00:00
if (yych <= '_') {
2011-05-15 00:36:13 +00:00
if (yych <= '@') goto yy788;
if (yych <= 'Z') goto yy786;
if (yych <= '^') goto yy788;
goto yy786;
2009-05-05 01:44:52 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '`') goto yy788;
if (yych <= 'z') goto yy786;
if (yych <= '~') goto yy788;
goto yy786;
2009-05-05 01:44:52 +00:00
}
}
2011-05-15 00:36:13 +00:00
yy782:
YYDEBUG(782, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
goto yy794;
yy783:
YYDEBUG(783, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1152 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
zendlval->value.str.val = yytext; /* no copying - intentional */
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
HANDLE_NEWLINES(yytext, yyleng);
return T_WHITESPACE;
}
2011-05-15 00:36:13 +00:00
#line 7122 "Zend/zend_language_scanner.c"
yy784:
YYDEBUG(784, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
if ((yych = *YYCURSOR) == '>') goto yy791;
yy785:
YYDEBUG(785, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1171 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
yyless(0);
yy_pop_state(TSRMLS_C);
goto restart;
}
2011-05-15 00:36:13 +00:00
#line 7136 "Zend/zend_language_scanner.c"
yy786:
YYDEBUG(786, *YYCURSOR);
++YYCURSOR;
2009-05-05 01:44:52 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
goto yy790;
yy787:
YYDEBUG(787, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1164 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
yy_pop_state(TSRMLS_C);
zend_copy_value(zendlval, yytext, yyleng);
zendlval->type = IS_STRING;
return T_STRING;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 7152 "Zend/zend_language_scanner.c"
yy788:
YYDEBUG(788, *YYCURSOR);
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
goto yy785;
yy789:
YYDEBUG(789, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
YYFILL(1);
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
yy790:
YYDEBUG(790, *YYCURSOR);
2009-05-05 01:44:52 +00:00
if (yybm[0+yych] & 64) {
2011-05-15 00:36:13 +00:00
goto yy789;
2009-05-05 01:44:52 +00:00
}
2011-05-15 00:36:13 +00:00
goto yy787;
yy791:
YYDEBUG(791, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(792, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-04-03 17:20:34 +00:00
#line 1160 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
return T_OBJECT_OPERATOR;
}
2011-05-15 00:36:13 +00:00
#line 7177 "Zend/zend_language_scanner.c"
yy793:
YYDEBUG(793, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
yy794:
YYDEBUG(794, *YYCURSOR);
2008-03-16 21:23:02 +00:00
if (yybm[0+yych] & 128) {
2011-05-15 00:36:13 +00:00
goto yy793;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
goto yy783;
2009-05-05 01:44:52 +00:00
}
/* *********************************** */
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,
};
2011-05-15 00:36:13 +00:00
YYDEBUG(795, *YYCURSOR);
2009-05-05 01:44:52 +00:00
YYFILL(2);
yych = *YYCURSOR;
if (yych <= '_') {
2011-05-15 00:36:13 +00:00
if (yych <= '@') goto yy799;
if (yych <= 'Z') goto yy797;
if (yych <= '^') goto yy799;
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '`') goto yy799;
if (yych <= 'z') goto yy797;
if (yych <= '~') goto yy799;
}
2011-05-15 00:36:13 +00:00
yy797:
YYDEBUG(797, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
goto yy802;
yy798:
YYDEBUG(798, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1447 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
zend_copy_value(zendlval, yytext, yyleng);
zendlval->type = IS_STRING;
yy_pop_state(TSRMLS_C);
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
return T_STRING_VARNAME;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 7255 "Zend/zend_language_scanner.c"
yy799:
YYDEBUG(799, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(800, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1456 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
yyless(0);
yy_pop_state(TSRMLS_C);
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
goto restart;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 7268 "Zend/zend_language_scanner.c"
yy801:
YYDEBUG(801, *YYCURSOR);
++YYCURSOR;
YYFILL(1);
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
yy802:
YYDEBUG(802, *YYCURSOR);
if (yybm[0+yych] & 128) {
2011-05-15 00:36:13 +00:00
goto yy801;
}
2011-05-15 00:36:13 +00:00
goto yy798;
2009-05-05 01:44:52 +00:00
}
/* *********************************** */
yyc_ST_NOWDOC:
2011-05-15 00:36:13 +00:00
YYDEBUG(803, *YYCURSOR);
2009-05-05 01:44:52 +00:00
YYFILL(1);
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(805, *YYCURSOR);
2009-05-05 01:44:52 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(806, *YYCURSOR);
2009-05-05 01:44:52 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 2283 "Zend/zend_language_scanner.l"
2009-05-05 01:44:52 +00:00
{
int newline = 0;
if (YYCURSOR > YYLIMIT) {
return 0;
}
YYCURSOR--;
while (YYCURSOR < YYLIMIT) {
switch (*YYCURSOR++) {
case '\r':
if (*YYCURSOR == '\n') {
YYCURSOR++;
}
/* fall through */
case '\n':
/* Check for ending label on the next line */
if (IS_LABEL_START(*YYCURSOR) && CG(heredoc_len) < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, CG(heredoc), CG(heredoc_len))) {
YYCTYPE *end = YYCURSOR + CG(heredoc_len);
if (*end == ';') {
end++;
}
if (*end == '\n' || *end == '\r') {
/* newline before label will be subtracted from returned text, but
* yyleng/yytext will include it, for zend_highlight/strip, tokenizer, etc. */
if (YYCURSOR[-2] == '\r' && YYCURSOR[-1] == '\n') {
newline = 2; /* Windows newline */
} else {
newline = 1;
}
CG(increment_lineno) = 1; /* For newline before label */
BEGIN(ST_END_HEREDOC);
goto nowdoc_scan_done;
}
}
/* fall through */
default:
continue;
}
2008-03-16 21:23:02 +00:00
}
2009-05-05 01:44:52 +00:00
nowdoc_scan_done:
yyleng = YYCURSOR - SCNG(yy_text);
zend_copy_value(zendlval, yytext, yyleng - newline);
zendlval->type = IS_STRING;
HANDLE_NEWLINES(yytext, yyleng - newline);
return T_ENCAPSED_AND_WHITESPACE;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
#line 7345 "Zend/zend_language_scanner.c"
2008-03-16 21:23:02 +00:00
/* *********************************** */
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,
};
2011-05-15 00:36:13 +00:00
YYDEBUG(807, *YYCURSOR);
YYFILL(3);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
if (yych <= '/') {
2009-05-05 01:44:52 +00:00
if (yych <= ' ') {
if (yych <= '\f') {
2011-05-15 00:36:13 +00:00
if (yych <= 0x08) goto yy821;
if (yych <= '\n') goto yy817;
goto yy821;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '\r') goto yy817;
if (yych <= 0x1F) goto yy821;
goto yy817;
2008-03-16 21:23:02 +00:00
}
} else {
2009-05-05 01:44:52 +00:00
if (yych <= '$') {
2011-05-15 00:36:13 +00:00
if (yych <= '"') goto yy816;
if (yych <= '#') goto yy817;
goto yy812;
} else {
2011-05-15 00:36:13 +00:00
if (yych == '\'') goto yy817;
goto yy816;
2008-03-16 21:23:02 +00:00
}
}
} else {
if (yych <= '\\') {
if (yych <= '@') {
2011-05-15 00:36:13 +00:00
if (yych <= '0') goto yy809;
if (yych <= '9') goto yy811;
goto yy816;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'Z') goto yy819;
if (yych <= '[') goto yy816;
goto yy817;
2008-03-16 21:23:02 +00:00
}
} else {
if (yych <= '_') {
2011-05-15 00:36:13 +00:00
if (yych <= ']') goto yy814;
if (yych <= '^') goto yy816;
goto yy819;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '`') goto yy816;
if (yych <= 'z') goto yy819;
if (yych <= '~') goto yy816;
goto yy819;
2008-03-16 21:23:02 +00:00
}
}
}
2011-05-15 00:36:13 +00:00
yy809:
YYDEBUG(809, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
if (yych <= 'W') {
2011-05-15 00:36:13 +00:00
if (yych <= '/') goto yy810;
if (yych <= '9') goto yy832;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'X') goto yy830;
if (yych == 'x') goto yy830;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
yy810:
YYDEBUG(810, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1506 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{ /* 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)) {
zendlval->value.lval = strtol(yytext, NULL, 10);
zendlval->type = IS_LONG;
} else {
zendlval->value.str.val = (char *)estrndup(yytext, yyleng);
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
}
return T_NUM_STRING;
}
2011-05-15 00:36:13 +00:00
#line 7457 "Zend/zend_language_scanner.c"
yy811:
YYDEBUG(811, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
goto yy829;
yy812:
YYDEBUG(812, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
if ((yych = *YYCURSOR) <= '_') {
2011-05-15 00:36:13 +00:00
if (yych <= '@') goto yy813;
if (yych <= 'Z') goto yy825;
if (yych >= '_') goto yy825;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '`') goto yy813;
if (yych <= 'z') goto yy825;
if (yych >= 0x7F) goto yy825;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
yy813:
YYDEBUG(813, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1811 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
/* Only '[' can be valid, but returning other tokens will allow a more explicit parse error */
return yytext[0];
}
2011-05-15 00:36:13 +00:00
#line 7482 "Zend/zend_language_scanner.c"
yy814:
YYDEBUG(814, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(815, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1806 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
yy_pop_state(TSRMLS_C);
return ']';
}
2011-05-15 00:36:13 +00:00
#line 7493 "Zend/zend_language_scanner.c"
yy816:
YYDEBUG(816, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
2011-05-15 00:36:13 +00:00
goto yy813;
yy817:
YYDEBUG(817, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(818, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1816 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
/* Invalid rule to return a more explicit parse error with proper line number */
yyless(0);
yy_pop_state(TSRMLS_C);
return T_ENCAPSED_AND_WHITESPACE;
}
2011-05-15 00:36:13 +00:00
#line 7510 "Zend/zend_language_scanner.c"
yy819:
YYDEBUG(819, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
goto yy824;
yy820:
YYDEBUG(820, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1823 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
zend_copy_value(zendlval, yytext, yyleng);
zendlval->type = IS_STRING;
return T_STRING;
}
2011-05-15 00:36:13 +00:00
#line 7525 "Zend/zend_language_scanner.c"
yy821:
YYDEBUG(821, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(822, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 2339 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
2009-05-05 01:44:52 +00:00
if (YYCURSOR > YYLIMIT) {
return 0;
}
2008-03-16 21:23:02 +00:00
zend_error(E_COMPILE_WARNING,"Unexpected character in input: '%c' (ASCII=%d) state=%d", yytext[0], yytext[0], YYSTATE);
goto restart;
}
2011-05-15 00:36:13 +00:00
#line 7540 "Zend/zend_language_scanner.c"
yy823:
YYDEBUG(823, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
yy824:
YYDEBUG(824, *YYCURSOR);
2008-03-16 21:23:02 +00:00
if (yybm[0+yych] & 32) {
2011-05-15 00:36:13 +00:00
goto yy823;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
goto yy820;
yy825:
YYDEBUG(825, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(826, *YYCURSOR);
2008-03-16 21:23:02 +00:00
if (yych <= '^') {
if (yych <= '9') {
2011-05-15 00:36:13 +00:00
if (yych >= '0') goto yy825;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= '@') goto yy827;
if (yych <= 'Z') goto yy825;
2008-03-16 21:23:02 +00:00
}
} else {
if (yych <= '`') {
2011-05-15 00:36:13 +00:00
if (yych <= '_') goto yy825;
2008-03-16 21:23:02 +00:00
} else {
2011-05-15 00:36:13 +00:00
if (yych <= 'z') goto yy825;
if (yych >= 0x7F) goto yy825;
2008-03-16 21:23:02 +00:00
}
}
2011-05-15 00:36:13 +00:00
yy827:
YYDEBUG(827, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1800 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
zendlval->type = IS_STRING;
return T_VARIABLE;
}
2011-05-15 00:36:13 +00:00
#line 7582 "Zend/zend_language_scanner.c"
yy828:
YYDEBUG(828, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
yy829:
YYDEBUG(829, *YYCURSOR);
2008-03-16 21:23:02 +00:00
if (yybm[0+yych] & 64) {
2011-05-15 00:36:13 +00:00
goto yy828;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
goto yy810;
yy830:
YYDEBUG(830, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yych = *++YYCURSOR;
if (yybm[0+yych] & 128) {
2011-05-15 00:36:13 +00:00
goto yy835;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
YYDEBUG(831, *YYCURSOR);
2008-03-16 21:23:02 +00:00
YYCURSOR = YYMARKER;
2011-05-15 00:36:13 +00:00
goto yy810;
yy832:
YYDEBUG(832, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(833, *YYCURSOR);
if (yych <= '/') goto yy834;
if (yych <= '9') goto yy832;
yy834:
YYDEBUG(834, *YYCURSOR);
2008-03-16 21:23:02 +00:00
yyleng = YYCURSOR - SCNG(yy_text);
2011-05-15 00:36:13 +00:00
#line 1518 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
{ /* Offset must be treated as a string */
zendlval->value.str.val = (char *)estrndup(yytext, yyleng);
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
return T_NUM_STRING;
}
2011-05-15 00:36:13 +00:00
#line 7621 "Zend/zend_language_scanner.c"
yy835:
YYDEBUG(835, *YYCURSOR);
2008-03-16 21:23:02 +00:00
++YYCURSOR;
YYFILL(1);
2008-03-16 21:23:02 +00:00
yych = *YYCURSOR;
2011-05-15 00:36:13 +00:00
YYDEBUG(836, *YYCURSOR);
2008-03-16 21:23:02 +00:00
if (yybm[0+yych] & 128) {
2011-05-15 00:36:13 +00:00
goto yy835;
2008-03-16 21:23:02 +00:00
}
2011-05-15 00:36:13 +00:00
goto yy834;
2008-03-16 21:23:02 +00:00
}
}
2011-05-15 00:36:13 +00:00
#line 2348 "Zend/zend_language_scanner.l"
2008-03-16 21:23:02 +00:00
}