Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Revived zend multibyte

  • Loading branch information...
commit 4f42ed39c0c955b724051c2b27d69cd8c3ceacdd 1 parent 1f84519
Moriyoshi Koizumi authored
View
12 Zend/zend_compile.c
@@ -4611,18 +4611,20 @@ void zend_do_declare_stmt(znode *var, znode *val TSRMLS_DC)
* parseable according to the .ini script_encoding setting. We still
* want to tell them to put declare() at the top.
*/
- if (CG(active_op_array)->last > 0) {
- /* ignore ZEND_EXT_STMT and ZEND_TICKS */
+ {
int num = CG(active_op_array)->last;
+ /* ignore ZEND_EXT_STMT and ZEND_TICKS */
while (num > 0 &&
(CG(active_op_array)->opcodes[num-1].opcode == ZEND_EXT_STMT ||
CG(active_op_array)->opcodes[num-1].opcode == ZEND_TICKS)) {
--num;
}
- if (num > 0) {
- zend_error(E_COMPILE_ERROR, "Encoding declaration pragma has to be the very first statement in the script");
+
+ if (num > 0 || CG(encoding_declared)) {
+ zend_error(E_COMPILE_ERROR, "Encoding declaration pragma must be the very first statement in the script");
}
- }
+ }
+ CG(encoding_declared) = 1;
convert_to_string(&val->u.constant);
new_encoding = zend_multibyte_fetch_encoding(val->u.constant.value.str.val);
View
27 Zend/zend_globals.h
@@ -140,8 +140,9 @@ struct _zend_compiler_globals {
#ifdef ZEND_MULTIBYTE
zend_encoding **script_encoding_list;
- int script_encoding_list_size;
+ size_t script_encoding_list_size;
zend_bool detect_unicode;
+ zend_bool encoding_declared;
zend_encoding *internal_encoding;
@@ -258,14 +259,14 @@ struct _zend_ini_scanner_globals {
zend_file_handle *yy_in;
zend_file_handle *yy_out;
- unsigned int yy_leng;
- unsigned char *yy_start;
- unsigned char *yy_text;
- unsigned char *yy_cursor;
- unsigned char *yy_marker;
- unsigned char *yy_limit;
- int yy_state;
- zend_stack state_stack;
+ unsigned int yy_leng;
+ unsigned char *yy_start;
+ unsigned char *yy_text;
+ unsigned char *yy_cursor;
+ unsigned char *yy_marker;
+ unsigned char *yy_limit;
+ int yy_state;
+ zend_stack state_stack;
char *filename;
int lineno;
@@ -291,12 +292,12 @@ struct _zend_php_scanner_globals {
#ifdef ZEND_MULTIBYTE
/* original (unfiltered) script */
- char *script_org;
- int script_org_size;
+ unsigned char *script_org;
+ size_t script_org_size;
/* filtered script */
- char *script_filtered;
- int script_filtered_size;
+ unsigned char *script_filtered;
+ size_t script_filtered_size;
/* input/ouput filters */
zend_encoding_filter input_filter;
View
825 Zend/zend_language_scanner.c
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.13.6.dev on Tue Jul 8 16:16:41 2008 */
+/* Generated by re2c 0.13.5 on Fri Jul 25 07:14:28 2008 */
#line 1 "Zend/zend_language_scanner.l"
/*
+----------------------------------------------------------------------+
@@ -264,7 +264,7 @@ ZEND_API int open_file_for_scanning(zend_file_handle *file_handle TSRMLS_DC)
if (size != -1) {
#ifdef ZEND_MULTIBYTE
- if (zend_multibyte_read_script(buf, size TSRMLS_CC) != 0) {
+ if (zend_multibyte_read_script((unsigned char *)buf, size TSRMLS_CC) != 0) {
return FAILURE;
}
@@ -273,14 +273,14 @@ ZEND_API int open_file_for_scanning(zend_file_handle *file_handle TSRMLS_DC)
zend_multibyte_set_filter(NULL TSRMLS_CC);
if (!SCNG(input_filter)) {
- SCNG(script_filtered) = (char*)emalloc(SCNG(script_org_size)+1);
+ SCNG(script_filtered) = (unsigned char*)emalloc(SCNG(script_org_size)+1);
memcpy(SCNG(script_filtered), SCNG(script_org), SCNG(script_org_size)+1);
SCNG(script_filtered_size) = SCNG(script_org_size);
} else {
SCNG(input_filter)(&SCNG(script_filtered), &SCNG(script_filtered_size), SCNG(script_org), SCNG(script_org_size) TSRMLS_CC);
}
- yy_scan_buffer(SCNG(script_filtered), SCNG(script_filtered_size) TSRMLS_CC);
+ yy_scan_buffer((char *)SCNG(script_filtered), SCNG(script_filtered_size) TSRMLS_CC);
#else /* !ZEND_MULTIBYTE */
yy_scan_buffer(buf, size TSRMLS_CC);
#endif /* ZEND_MULTIBYTE */
@@ -421,20 +421,20 @@ ZEND_API int zend_prepare_string_for_scanning(zval *str, char *filename TSRMLS_D
SCNG(yy_in)=NULL;
#ifdef ZEND_MULTIBYTE
- SCNG(script_org) = estrdup(str->value.str.val);
+ SCNG(script_org) = (unsigned char *)estrdup(str->value.str.val);
SCNG(script_org_size) = str->value.str.len;
zend_multibyte_set_filter(CG(internal_encoding) TSRMLS_CC);
if (!SCNG(input_filter)) {
- SCNG(script_filtered) = (char*)emalloc(SCNG(script_org_size)+1);
+ SCNG(script_filtered) = (unsigned char*)emalloc(SCNG(script_org_size)+1);
memcpy(SCNG(script_filtered), SCNG(script_org), SCNG(script_org_size)+1);
SCNG(script_filtered_size) = SCNG(script_org_size);
} else {
SCNG(input_filter)(&SCNG(script_filtered), &SCNG(script_filtered_size), SCNG(script_org), SCNG(script_org_size) TSRMLS_CC);
}
- yy_scan_buffer(SCNG(script_filtered), SCNG(script_filtered_size) TSRMLS_CC);
+ yy_scan_buffer((char *)SCNG(script_filtered), SCNG(script_filtered_size) TSRMLS_CC);
#else /* !ZEND_MULTIBYTE */
yy_scan_buffer(str->value.str.val, str->value.str.len TSRMLS_CC);
#endif /* ZEND_MULTIBYTE */
@@ -583,10 +583,9 @@ END_EXTERN_C()
BEGIN_EXTERN_C()
ZEND_API void zend_multibyte_yyinput_again(zend_encoding_filter old_input_filter, zend_encoding *old_encoding TSRMLS_DC)
{
- int offset, original_offset, length, free_flag, new_len;
- char *p;
+ size_t offset, original_offset, length, free_flag, new_len;
+ unsigned char *p;
zend_encoding *new_encoding;
- unsigned char *yy_c_buf_p;
/* calculate current position */
offset = original_offset = YYCURSOR - SCNG(yy_start);
@@ -611,25 +610,28 @@ ZEND_API void zend_multibyte_yyinput_again(zend_encoding_filter old_input_filter
/* convert and set */
if (!SCNG(input_filter)) {
- length = SCNG(script_org_size)-offset-1;
- p = SCNG(script_org)+offset+1;
+ length = SCNG(script_org_size) - offset - 1;
+ p = SCNG(script_org) + offset + 1;
free_flag = 0;
} else {
- SCNG(input_filter)(&p, &length, SCNG(script_org)+offset+1, SCNG(script_org_size)-offset-1 TSRMLS_CC);
+ SCNG(input_filter)(&p, &length, SCNG(script_org) + offset, SCNG(script_org_size) - offset TSRMLS_CC);
free_flag = 1;
}
- new_len = original_offset+length+1;
+ new_len = original_offset + length;
- if (new_len > YYLIMIT-SCNG(yy_start)) {
- YYLIMIT = SCNG(yy_start) + new_len;
- SCNG(yy_start) = erealloc(SCNG(yy_start), new_len);
- SCNG(script_filtered) = SCNG(yy_start);
+ if (new_len > YYLIMIT - SCNG(yy_start)) {
+ unsigned char *new_yy_start = erealloc(SCNG(yy_start), new_len);
+ 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_start) = new_yy_start;
+ SCNG(script_filtered) = new_yy_start;
SCNG(script_filtered_size) = new_len;
}
- yy_c_buf_p = SCNG(yy_start) + original_offset;
- strncpy(yy_c_buf_p+1, p, length);
+ SCNG(yy_limit) = SCNG(yy_start) + new_len;
+ memmove(SCNG(yy_start) + original_offset, p, length);
if (free_flag) {
efree(p);
@@ -639,7 +641,7 @@ ZEND_API void zend_multibyte_yyinput_again(zend_encoding_filter old_input_filter
ZEND_API int zend_multibyte_yyinput(zend_file_handle *file_handle, char *buf, size_t len TSRMLS_DC)
{
- int c = '*', n;
+ size_t n;
if (CG(interactive) == 0) {
if (zend_stream_fixup(file_handle, &buf, &len TSRMLS_CC) == FAILURE) {
@@ -666,26 +668,23 @@ ZEND_API int zend_multibyte_yyinput(zend_file_handle *file_handle, char *buf, si
n = len;
SCNG(script_org_size) = n;
- SCNG(script_org) = (char*)emalloc(SCNG(script_org_size) + 1);
+ SCNG(script_org) = (unsigned char*)emalloc(SCNG(script_org_size) + 1);
memcpy(SCNG(script_org), buf, n);
return n;
}
-ZEND_API int zend_multibyte_read_script(char *buf, int n TSRMLS_DC)
+ZEND_API int zend_multibyte_read_script(unsigned char *buf, size_t n TSRMLS_DC)
{
if (SCNG(script_org)) {
efree(SCNG(script_org));
}
- if (n<0) {
- return -1;
- }
SCNG(script_org_size) = n;
- SCNG(script_org) = (char*)erealloc(SCNG(script_org), SCNG(script_org_size));
+ SCNG(script_org) = (unsigned char*)erealloc(SCNG(script_org), SCNG(script_org_size));
memcpy(SCNG(script_org) + SCNG(script_org_size) - n, buf, n);
- SCNG(script_org) = (char*)erealloc(SCNG(script_org), SCNG(script_org_size) + 1);
+ SCNG(script_org) = (unsigned char*)erealloc(SCNG(script_org), SCNG(script_org_size) + 1);
*(SCNG(script_org)+SCNG(script_org_size)) = '\0';
return 0;
@@ -694,7 +693,9 @@ ZEND_API int zend_multibyte_read_script(char *buf, int n TSRMLS_DC)
# define zend_copy_value(zendlval, yytext, yyleng) \
if (SCNG(output_filter)) { \
- SCNG(output_filter)(&(zendlval->value.str.val), &(zendlval->value.str.len), yytext, yyleng TSRMLS_CC); \
+ 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; \
@@ -809,8 +810,10 @@ static void zend_scan_escape_string(zval *zendlval, char *str, int len, char quo
*t = 0;
#ifdef ZEND_MULTIBYTE
if (SCNG(output_filter)) {
+ size_t sz = 0;
s = zendlval->value.str.val;
- SCNG(output_filter)(&(zendlval->value.str.val), &(zendlval->value.str.len), s, zendlval->value.str.len TSRMLS_CC);
+ 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);
}
#endif /* ZEND_MULTIBYTE */
@@ -854,7 +857,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
-#line 858 "Zend/zend_language_scanner.c"
+#line 861 "Zend/zend_language_scanner.c"
{
YYCTYPE yych;
unsigned int yyaccept = 0;
@@ -977,7 +980,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy3:
YYDEBUG(3, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1624 "Zend/zend_language_scanner.l"
+#line 1627 "Zend/zend_language_scanner.l"
{
inline_char_handler:
@@ -1005,7 +1008,9 @@ int lex_scan(zval *zendlval TSRMLS_DC)
#ifdef ZEND_MULTIBYTE
if (SCNG(output_filter)) {
int readsize;
- readsize = SCNG(output_filter)(&(zendlval->value.str.val), &(zendlval->value.str.len), yytext, yyleng TSRMLS_CC);
+ 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);
}
@@ -1021,7 +1026,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
HANDLE_NEWLINES(yytext, yyleng);
return T_INLINE_HTML;
}
-#line 1025 "Zend/zend_language_scanner.c"
+#line 1030 "Zend/zend_language_scanner.c"
yy4:
YYDEBUG(4, *YYCURSOR);
yych = *++YYCURSOR;
@@ -1039,7 +1044,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy6:
YYDEBUG(6, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1612 "Zend/zend_language_scanner.l"
+#line 1615 "Zend/zend_language_scanner.l"
{
if (CG(short_tags)) {
zendlval->value.str.val = yytext; /* no copying - intentional */
@@ -1051,14 +1056,14 @@ int lex_scan(zval *zendlval TSRMLS_DC)
goto inline_char_handler;
}
}
-#line 1055 "Zend/zend_language_scanner.c"
+#line 1060 "Zend/zend_language_scanner.c"
yy7:
YYDEBUG(7, *YYCURSOR);
++YYCURSOR;
if ((yych = *YYCURSOR) == '=') goto yy43;
YYDEBUG(8, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1589 "Zend/zend_language_scanner.l"
+#line 1592 "Zend/zend_language_scanner.l"
{
if (CG(asp_tags)) {
zendlval->value.str.val = yytext; /* no copying - intentional */
@@ -1070,7 +1075,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
goto inline_char_handler;
}
}
-#line 1074 "Zend/zend_language_scanner.c"
+#line 1079 "Zend/zend_language_scanner.c"
yy9:
YYDEBUG(9, *YYCURSOR);
yych = *++YYCURSOR;
@@ -1256,7 +1261,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(38, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1553 "Zend/zend_language_scanner.l"
+#line 1556 "Zend/zend_language_scanner.l"
{
HANDLE_NEWLINES(yytext, yyleng);
zendlval->value.str.val = yytext; /* no copying - intentional */
@@ -1265,7 +1270,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
BEGIN(ST_IN_SCRIPTING);
return T_OPEN_TAG;
}
-#line 1269 "Zend/zend_language_scanner.c"
+#line 1274 "Zend/zend_language_scanner.c"
yy39:
YYDEBUG(39, *YYCURSOR);
yych = *++YYCURSOR;
@@ -1292,7 +1297,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(44, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1563 "Zend/zend_language_scanner.l"
+#line 1566 "Zend/zend_language_scanner.l"
{
if (CG(asp_tags)) {
zendlval->value.str.val = yytext; /* no copying - intentional */
@@ -1304,13 +1309,13 @@ int lex_scan(zval *zendlval TSRMLS_DC)
goto inline_char_handler;
}
}
-#line 1308 "Zend/zend_language_scanner.c"
+#line 1313 "Zend/zend_language_scanner.c"
yy45:
YYDEBUG(45, *YYCURSOR);
++YYCURSOR;
YYDEBUG(46, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1576 "Zend/zend_language_scanner.l"
+#line 1579 "Zend/zend_language_scanner.l"
{
if (CG(short_tags)) {
zendlval->value.str.val = yytext; /* no copying - intentional */
@@ -1322,7 +1327,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
goto inline_char_handler;
}
}
-#line 1326 "Zend/zend_language_scanner.c"
+#line 1331 "Zend/zend_language_scanner.c"
yy47:
YYDEBUG(47, *YYCURSOR);
yych = *++YYCURSOR;
@@ -1349,7 +1354,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy51:
YYDEBUG(51, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1602 "Zend/zend_language_scanner.l"
+#line 1605 "Zend/zend_language_scanner.l"
{
zendlval->value.str.val = yytext; /* no copying - intentional */
zendlval->value.str.len = yyleng;
@@ -1358,7 +1363,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
BEGIN(ST_IN_SCRIPTING);
return T_OPEN_TAG;
}
-#line 1362 "Zend/zend_language_scanner.c"
+#line 1367 "Zend/zend_language_scanner.c"
yy52:
YYDEBUG(52, *YYCURSOR);
++YYCURSOR;
@@ -1449,13 +1454,13 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy57:
YYDEBUG(57, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 2005 "Zend/zend_language_scanner.l"
+#line 2012 "Zend/zend_language_scanner.l"
{
zendlval->value.lval = (long) '{';
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
return T_CURLY_OPEN;
}
-#line 1459 "Zend/zend_language_scanner.c"
+#line 1464 "Zend/zend_language_scanner.c"
yy58:
YYDEBUG(58, *YYCURSOR);
yyaccept = 1;
@@ -1473,12 +1478,12 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy60:
YYDEBUG(60, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 2030 "Zend/zend_language_scanner.l"
+#line 2037 "Zend/zend_language_scanner.l"
{
zend_scan_escape_string(zendlval, yytext, yyleng, '`' TSRMLS_CC);
return T_ENCAPSED_AND_WHITESPACE;
}
-#line 1482 "Zend/zend_language_scanner.c"
+#line 1487 "Zend/zend_language_scanner.c"
yy61:
YYDEBUG(61, *YYCURSOR);
++YYCURSOR;
@@ -1490,12 +1495,12 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(63, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 2166 "Zend/zend_language_scanner.l"
+#line 2173 "Zend/zend_language_scanner.l"
{
BEGIN(ST_IN_SCRIPTING);
return '`';
}
-#line 1499 "Zend/zend_language_scanner.c"
+#line 1504 "Zend/zend_language_scanner.c"
yy64:
YYDEBUG(64, *YYCURSOR);
++YYCURSOR;
@@ -1583,13 +1588,13 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy70:
YYDEBUG(70, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 2035 "Zend/zend_language_scanner.l"
+#line 2042 "Zend/zend_language_scanner.l"
{
yyless(yyleng - 1);
zend_scan_escape_string(zendlval, yytext, yyleng, '`' TSRMLS_CC);
return T_ENCAPSED_AND_WHITESPACE;
}
-#line 1593 "Zend/zend_language_scanner.c"
+#line 1598 "Zend/zend_language_scanner.c"
yy71:
YYDEBUG(71, *YYCURSOR);
yych = *++YYCURSOR;
@@ -1623,24 +1628,24 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy76:
YYDEBUG(76, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1690 "Zend/zend_language_scanner.l"
+#line 1695 "Zend/zend_language_scanner.l"
{
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
zendlval->type = IS_STRING;
return T_VARIABLE;
}
-#line 1633 "Zend/zend_language_scanner.c"
+#line 1638 "Zend/zend_language_scanner.c"
yy77:
YYDEBUG(77, *YYCURSOR);
++YYCURSOR;
YYDEBUG(78, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1346 "Zend/zend_language_scanner.l"
+#line 1349 "Zend/zend_language_scanner.l"
{
yy_push_state(ST_LOOKING_FOR_VARNAME TSRMLS_CC);
return T_DOLLAR_OPEN_CURLY_BRACES;
}
-#line 1644 "Zend/zend_language_scanner.c"
+#line 1649 "Zend/zend_language_scanner.c"
yy79:
YYDEBUG(79, *YYCURSOR);
yych = *++YYCURSOR;
@@ -1651,7 +1656,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(81, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1682 "Zend/zend_language_scanner.l"
+#line 1687 "Zend/zend_language_scanner.l"
{
yyless(yyleng - 1);
yy_push_state(ST_VAR_OFFSET TSRMLS_CC);
@@ -1659,7 +1664,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
zendlval->type = IS_STRING;
return T_VARIABLE;
}
-#line 1663 "Zend/zend_language_scanner.c"
+#line 1668 "Zend/zend_language_scanner.c"
yy82:
YYDEBUG(82, *YYCURSOR);
yych = *++YYCURSOR;
@@ -1677,7 +1682,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(84, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1672 "Zend/zend_language_scanner.l"
+#line 1677 "Zend/zend_language_scanner.l"
{
yyless(yyleng - 3);
yy_push_state(ST_LOOKING_FOR_PROPERTY TSRMLS_CC);
@@ -1685,7 +1690,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
zendlval->type = IS_STRING;
return T_VARIABLE;
}
-#line 1689 "Zend/zend_language_scanner.c"
+#line 1694 "Zend/zend_language_scanner.c"
}
/* *********************************** */
yyc_ST_COMMENT:
@@ -1742,34 +1747,34 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(89, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1782 "Zend/zend_language_scanner.l"
+#line 1787 "Zend/zend_language_scanner.l"
{
yymore();
}
-#line 1750 "Zend/zend_language_scanner.c"
+#line 1755 "Zend/zend_language_scanner.c"
yy90:
YYDEBUG(90, *YYCURSOR);
++YYCURSOR;
if ((yych = *YYCURSOR) == '/') goto yy92;
YYDEBUG(91, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1800 "Zend/zend_language_scanner.l"
+#line 1805 "Zend/zend_language_scanner.l"
{
yymore();
}
-#line 1761 "Zend/zend_language_scanner.c"
+#line 1766 "Zend/zend_language_scanner.c"
yy92:
YYDEBUG(92, *YYCURSOR);
++YYCURSOR;
YYDEBUG(93, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1794 "Zend/zend_language_scanner.l"
+#line 1799 "Zend/zend_language_scanner.l"
{
HANDLE_NEWLINES(yytext, yyleng);
BEGIN(ST_IN_SCRIPTING);
return T_COMMENT;
}
-#line 1773 "Zend/zend_language_scanner.c"
+#line 1778 "Zend/zend_language_scanner.c"
}
/* *********************************** */
yyc_ST_DOC_COMMENT:
@@ -1826,28 +1831,28 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(98, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1782 "Zend/zend_language_scanner.l"
+#line 1787 "Zend/zend_language_scanner.l"
{
yymore();
}
-#line 1834 "Zend/zend_language_scanner.c"
+#line 1839 "Zend/zend_language_scanner.c"
yy99:
YYDEBUG(99, *YYCURSOR);
++YYCURSOR;
if ((yych = *YYCURSOR) == '/') goto yy101;
YYDEBUG(100, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1800 "Zend/zend_language_scanner.l"
+#line 1805 "Zend/zend_language_scanner.l"
{
yymore();
}
-#line 1845 "Zend/zend_language_scanner.c"
+#line 1850 "Zend/zend_language_scanner.c"
yy101:
YYDEBUG(101, *YYCURSOR);
++YYCURSOR;
YYDEBUG(102, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1786 "Zend/zend_language_scanner.l"
+#line 1791 "Zend/zend_language_scanner.l"
{
CG(doc_comment) = estrndup(yytext, yyleng);
CG(doc_comment_len) = yyleng;
@@ -1855,7 +1860,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
BEGIN(ST_IN_SCRIPTING);
return T_DOC_COMMENT;
}
-#line 1859 "Zend/zend_language_scanner.c"
+#line 1864 "Zend/zend_language_scanner.c"
}
/* *********************************** */
yyc_ST_DOUBLE_QUOTES:
@@ -1942,13 +1947,13 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy107:
YYDEBUG(107, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 2005 "Zend/zend_language_scanner.l"
+#line 2012 "Zend/zend_language_scanner.l"
{
zendlval->value.lval = (long) '{';
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
return T_CURLY_OPEN;
}
-#line 1952 "Zend/zend_language_scanner.c"
+#line 1957 "Zend/zend_language_scanner.c"
yy108:
YYDEBUG(108, *YYCURSOR);
yyaccept = 1;
@@ -1967,12 +1972,12 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy110:
YYDEBUG(110, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 2012 "Zend/zend_language_scanner.l"
+#line 2019 "Zend/zend_language_scanner.l"
{
zend_scan_escape_string(zendlval, yytext, yyleng, '"' TSRMLS_CC);
return T_ENCAPSED_AND_WHITESPACE;
}
-#line 1976 "Zend/zend_language_scanner.c"
+#line 1981 "Zend/zend_language_scanner.c"
yy111:
YYDEBUG(111, *YYCURSOR);
++YYCURSOR;
@@ -1984,12 +1989,12 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(113, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 2160 "Zend/zend_language_scanner.l"
+#line 2167 "Zend/zend_language_scanner.l"
{
BEGIN(ST_IN_SCRIPTING);
return '"';
}
-#line 1993 "Zend/zend_language_scanner.c"
+#line 1998 "Zend/zend_language_scanner.c"
yy114:
YYDEBUG(114, *YYCURSOR);
++YYCURSOR;
@@ -2080,13 +2085,13 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy120:
YYDEBUG(120, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 2023 "Zend/zend_language_scanner.l"
+#line 2030 "Zend/zend_language_scanner.l"
{
yyless(yyleng - 1);
zend_scan_escape_string(zendlval, yytext, yyleng, '"' TSRMLS_CC);
return T_ENCAPSED_AND_WHITESPACE;
}
-#line 2090 "Zend/zend_language_scanner.c"
+#line 2095 "Zend/zend_language_scanner.c"
yy121:
YYDEBUG(121, *YYCURSOR);
yych = *++YYCURSOR;
@@ -2120,24 +2125,24 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy126:
YYDEBUG(126, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1690 "Zend/zend_language_scanner.l"
+#line 1695 "Zend/zend_language_scanner.l"
{
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
zendlval->type = IS_STRING;
return T_VARIABLE;
}
-#line 2130 "Zend/zend_language_scanner.c"
+#line 2135 "Zend/zend_language_scanner.c"
yy127:
YYDEBUG(127, *YYCURSOR);
++YYCURSOR;
YYDEBUG(128, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1346 "Zend/zend_language_scanner.l"
+#line 1349 "Zend/zend_language_scanner.l"
{
yy_push_state(ST_LOOKING_FOR_VARNAME TSRMLS_CC);
return T_DOLLAR_OPEN_CURLY_BRACES;
}
-#line 2141 "Zend/zend_language_scanner.c"
+#line 2146 "Zend/zend_language_scanner.c"
yy129:
YYDEBUG(129, *YYCURSOR);
yych = *++YYCURSOR;
@@ -2148,7 +2153,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(131, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1682 "Zend/zend_language_scanner.l"
+#line 1687 "Zend/zend_language_scanner.l"
{
yyless(yyleng - 1);
yy_push_state(ST_VAR_OFFSET TSRMLS_CC);
@@ -2156,7 +2161,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
zendlval->type = IS_STRING;
return T_VARIABLE;
}
-#line 2160 "Zend/zend_language_scanner.c"
+#line 2165 "Zend/zend_language_scanner.c"
yy132:
YYDEBUG(132, *YYCURSOR);
yych = *++YYCURSOR;
@@ -2174,7 +2179,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(134, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1672 "Zend/zend_language_scanner.l"
+#line 1677 "Zend/zend_language_scanner.l"
{
yyless(yyleng - 3);
yy_push_state(ST_LOOKING_FOR_PROPERTY TSRMLS_CC);
@@ -2182,7 +2187,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
zendlval->type = IS_STRING;
return T_VARIABLE;
}
-#line 2186 "Zend/zend_language_scanner.c"
+#line 2191 "Zend/zend_language_scanner.c"
}
/* *********************************** */
yyc_ST_END_HEREDOC:
@@ -2193,16 +2198,16 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(138, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1994 "Zend/zend_language_scanner.l"
+#line 2001 "Zend/zend_language_scanner.l"
{
- SCNG(yy_text) = Z_STRVAL_P(zendlval) = CG(heredoc);
+ SCNG(yy_text) = (unsigned char *)(Z_STRVAL_P(zendlval) = CG(heredoc));
SCNG(yy_leng) = Z_STRLEN_P(zendlval) = CG(heredoc_len);
CG(heredoc) = NULL;
CG(heredoc_len) = 0;
BEGIN(ST_IN_SCRIPTING);
return T_END_HEREDOC;
}
-#line 2206 "Zend/zend_language_scanner.c"
+#line 2211 "Zend/zend_language_scanner.c"
/* *********************************** */
yyc_ST_END_NOWDOC:
YYDEBUG(139, *YYCURSOR);
@@ -2212,16 +2217,16 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(142, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 2149 "Zend/zend_language_scanner.l"
+#line 2156 "Zend/zend_language_scanner.l"
{
- SCNG(yy_text) = Z_STRVAL_P(zendlval) = CG(heredoc);
+ SCNG(yy_text) = (unsigned char*)(Z_STRVAL_P(zendlval) = CG(heredoc));
SCNG(yy_leng) = Z_STRLEN_P(zendlval) = CG(heredoc_len);
CG(heredoc) = NULL;
CG(heredoc_len) = 0;
BEGIN(ST_IN_SCRIPTING);
return T_END_NOWDOC;
}
-#line 2225 "Zend/zend_language_scanner.c"
+#line 2230 "Zend/zend_language_scanner.c"
/* *********************************** */
yyc_ST_HEREDOC:
{
@@ -2278,12 +2283,12 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy145:
YYDEBUG(145, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 2049 "Zend/zend_language_scanner.l"
+#line 2056 "Zend/zend_language_scanner.l"
{
zend_scan_escape_string(zendlval, yytext, yyleng, 0 TSRMLS_CC);
return T_ENCAPSED_AND_WHITESPACE;
}
-#line 2287 "Zend/zend_language_scanner.c"
+#line 2292 "Zend/zend_language_scanner.c"
yy146:
YYDEBUG(146, *YYCURSOR);
yych = *++YYCURSOR;
@@ -2329,13 +2334,13 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy148:
YYDEBUG(148, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 2005 "Zend/zend_language_scanner.l"
+#line 2012 "Zend/zend_language_scanner.l"
{
zendlval->value.lval = (long) '{';
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
return T_CURLY_OPEN;
}
-#line 2339 "Zend/zend_language_scanner.c"
+#line 2344 "Zend/zend_language_scanner.c"
yy149:
YYDEBUG(149, *YYCURSOR);
yyaccept = 0;
@@ -2586,13 +2591,13 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy167:
YYDEBUG(167, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 2054 "Zend/zend_language_scanner.l"
+#line 2061 "Zend/zend_language_scanner.l"
{
yyless(yyleng - 1);
zend_scan_escape_string(zendlval, yytext, yyleng, 0 TSRMLS_CC);
return T_ENCAPSED_AND_WHITESPACE;
}
-#line 2596 "Zend/zend_language_scanner.c"
+#line 2601 "Zend/zend_language_scanner.c"
yy168:
YYDEBUG(168, *YYCURSOR);
yyaccept = 2;
@@ -2691,7 +2696,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(175, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1954 "Zend/zend_language_scanner.l"
+#line 1961 "Zend/zend_language_scanner.l"
{
char *end = yytext + yyleng - 1;
@@ -2731,7 +2736,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yymore();
}
}
-#line 2735 "Zend/zend_language_scanner.c"
+#line 2740 "Zend/zend_language_scanner.c"
yy176:
YYDEBUG(176, *YYCURSOR);
yyaccept = 2;
@@ -2991,24 +2996,24 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy197:
YYDEBUG(197, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1690 "Zend/zend_language_scanner.l"
+#line 1695 "Zend/zend_language_scanner.l"
{
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
zendlval->type = IS_STRING;
return T_VARIABLE;
}
-#line 3001 "Zend/zend_language_scanner.c"
+#line 3006 "Zend/zend_language_scanner.c"
yy198:
YYDEBUG(198, *YYCURSOR);
++YYCURSOR;
YYDEBUG(199, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1346 "Zend/zend_language_scanner.l"
+#line 1349 "Zend/zend_language_scanner.l"
{
yy_push_state(ST_LOOKING_FOR_VARNAME TSRMLS_CC);
return T_DOLLAR_OPEN_CURLY_BRACES;
}
-#line 3012 "Zend/zend_language_scanner.c"
+#line 3017 "Zend/zend_language_scanner.c"
yy200:
YYDEBUG(200, *YYCURSOR);
yych = *++YYCURSOR;
@@ -3019,7 +3024,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(202, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1682 "Zend/zend_language_scanner.l"
+#line 1687 "Zend/zend_language_scanner.l"
{
yyless(yyleng - 1);
yy_push_state(ST_VAR_OFFSET TSRMLS_CC);
@@ -3027,7 +3032,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
zendlval->type = IS_STRING;
return T_VARIABLE;
}
-#line 3031 "Zend/zend_language_scanner.c"
+#line 3036 "Zend/zend_language_scanner.c"
yy203:
YYDEBUG(203, *YYCURSOR);
yych = *++YYCURSOR;
@@ -3045,7 +3050,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(205, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1672 "Zend/zend_language_scanner.l"
+#line 1677 "Zend/zend_language_scanner.l"
{
yyless(yyleng - 3);
yy_push_state(ST_LOOKING_FOR_PROPERTY TSRMLS_CC);
@@ -3053,7 +3058,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
zendlval->type = IS_STRING;
return T_VARIABLE;
}
-#line 3057 "Zend/zend_language_scanner.c"
+#line 3062 "Zend/zend_language_scanner.c"
}
/* *********************************** */
yyc_ST_IN_SCRIPTING:
@@ -3268,13 +3273,13 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy209:
YYDEBUG(209, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1714 "Zend/zend_language_scanner.l"
+#line 1719 "Zend/zend_language_scanner.l"
{
zend_copy_value(zendlval, yytext, yyleng);
zendlval->type = IS_STRING;
return T_STRING;
}
-#line 3278 "Zend/zend_language_scanner.c"
+#line 3283 "Zend/zend_language_scanner.c"
yy210:
YYDEBUG(210, *YYCURSOR);
yych = *++YYCURSOR;
@@ -3521,11 +3526,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy223:
YYDEBUG(223, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1335 "Zend/zend_language_scanner.l"
+#line 1338 "Zend/zend_language_scanner.l"
{
return yytext[0];
}
-#line 3529 "Zend/zend_language_scanner.c"
+#line 3534 "Zend/zend_language_scanner.c"
yy224:
YYDEBUG(224, *YYCURSOR);
++YYCURSOR;
@@ -3534,7 +3539,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy225:
YYDEBUG(225, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1074 "Zend/zend_language_scanner.l"
+#line 1077 "Zend/zend_language_scanner.l"
{
zendlval->value.str.val = yytext; /* no copying - intentional */
zendlval->value.str.len = yyleng;
@@ -3542,7 +3547,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
HANDLE_NEWLINES(yytext, yyleng);
return T_WHITESPACE;
}
-#line 3546 "Zend/zend_language_scanner.c"
+#line 3551 "Zend/zend_language_scanner.c"
yy226:
YYDEBUG(226, *YYCURSOR);
yych = *++YYCURSOR;
@@ -3775,18 +3780,18 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(251, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1340 "Zend/zend_language_scanner.l"
+#line 1343 "Zend/zend_language_scanner.l"
{
yy_push_state(ST_IN_SCRIPTING TSRMLS_CC);
return '{';
}
-#line 3784 "Zend/zend_language_scanner.c"
+#line 3789 "Zend/zend_language_scanner.c"
yy252:
YYDEBUG(252, *YYCURSOR);
++YYCURSOR;
YYDEBUG(253, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1352 "Zend/zend_language_scanner.l"
+#line 1355 "Zend/zend_language_scanner.l"
{
RESET_DOC_COMMENT();
if (!zend_stack_is_empty(&SCNG(state_stack))) {
@@ -3794,7 +3799,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
return '}';
}
-#line 3798 "Zend/zend_language_scanner.c"
+#line 3803 "Zend/zend_language_scanner.c"
yy254:
YYDEBUG(254, *YYCURSOR);
yyaccept = 2;
@@ -3817,7 +3822,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy255:
YYDEBUG(255, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1378 "Zend/zend_language_scanner.l"
+#line 1381 "Zend/zend_language_scanner.l"
{
if (yyleng < MAX_LENGTH_OF_LONG - 1) { /* Won't overflow */
zendlval->value.lval = strtol(yytext, NULL, 0);
@@ -3838,7 +3843,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
zendlval->type = IS_LONG;
return T_LNUMBER;
}
-#line 3842 "Zend/zend_language_scanner.c"
+#line 3847 "Zend/zend_language_scanner.c"
yy256:
YYDEBUG(256, *YYCURSOR);
yyaccept = 2;
@@ -3866,12 +3871,12 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy259:
YYDEBUG(259, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1721 "Zend/zend_language_scanner.l"
+#line 1726 "Zend/zend_language_scanner.l"
{
BEGIN(ST_ONE_LINE_COMMENT);
yymore();
}
-#line 3875 "Zend/zend_language_scanner.c"
+#line 3880 "Zend/zend_language_scanner.c"
yy260:
YYDEBUG(260, *YYCURSOR);
yyaccept = 3;
@@ -3880,12 +3885,12 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy261:
YYDEBUG(261, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1886 "Zend/zend_language_scanner.l"
+#line 1893 "Zend/zend_language_scanner.l"
{
BEGIN(ST_DOUBLE_QUOTES);
return '"';
}
-#line 3889 "Zend/zend_language_scanner.c"
+#line 3894 "Zend/zend_language_scanner.c"
yy262:
YYDEBUG(262, *YYCURSOR);
yyaccept = 4;
@@ -3894,23 +3899,23 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy263:
YYDEBUG(263, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 2172 "Zend/zend_language_scanner.l"
+#line 2179 "Zend/zend_language_scanner.l"
{
zend_error(E_COMPILE_WARNING,"Unexpected character in input: '%c' (ASCII=%d) state=%d", yytext[0], yytext[0], YYSTATE);
goto restart;
}
-#line 3903 "Zend/zend_language_scanner.c"
+#line 3908 "Zend/zend_language_scanner.c"
yy264:
YYDEBUG(264, *YYCURSOR);
++YYCURSOR;
YYDEBUG(265, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1914 "Zend/zend_language_scanner.l"
+#line 1921 "Zend/zend_language_scanner.l"
{
BEGIN(ST_BACKQUOTE);
return '`';
}
-#line 3914 "Zend/zend_language_scanner.c"
+#line 3919 "Zend/zend_language_scanner.c"
yy266:
YYDEBUG(266, *YYCURSOR);
yych = *++YYCURSOR;
@@ -3936,7 +3941,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(271, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1837 "Zend/zend_language_scanner.l"
+#line 1842 "Zend/zend_language_scanner.l"
{
register char *s, *t;
char *end;
@@ -3977,14 +3982,16 @@ int lex_scan(zval *zendlval TSRMLS_DC)
#ifdef ZEND_MULTIBYTE
if (SCNG(output_filter)) {
+ size_t sz = 0;
s = zendlval->value.str.val;
- SCNG(output_filter)(&(zendlval->value.str.val), &(zendlval->value.str.len), s, zendlval->value.str.len TSRMLS_CC);
+ 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);
}
#endif /* ZEND_MULTIBYTE */
return T_CONSTANT_ENCAPSED_STRING;
}
-#line 3988 "Zend/zend_language_scanner.c"
+#line 3995 "Zend/zend_language_scanner.c"
yy272:
YYDEBUG(272, *YYCURSOR);
++YYCURSOR;
@@ -4081,14 +4088,14 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(281, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1829 "Zend/zend_language_scanner.l"
+#line 1834 "Zend/zend_language_scanner.l"
{
int bprefix = (yytext[0] != '"') ? 1 : 0;
zend_scan_escape_string(zendlval, yytext+bprefix+1, yyleng-bprefix-2, '"' TSRMLS_CC);
return T_CONSTANT_ENCAPSED_STRING;
}
-#line 4092 "Zend/zend_language_scanner.c"
+#line 4099 "Zend/zend_language_scanner.c"
yy282:
YYDEBUG(282, *YYCURSOR);
++YYCURSOR;
@@ -4121,13 +4128,13 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy287:
YYDEBUG(287, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1439 "Zend/zend_language_scanner.l"
+#line 1442 "Zend/zend_language_scanner.l"
{
zendlval->value.dval = zend_strtod(yytext, NULL);
zendlval->type = IS_DOUBLE;
return T_DNUMBER;
}
-#line 4131 "Zend/zend_language_scanner.c"
+#line 4138 "Zend/zend_language_scanner.c"
yy288:
YYDEBUG(288, *YYCURSOR);
yyaccept = 2;
@@ -4189,7 +4196,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(297, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1399 "Zend/zend_language_scanner.l"
+#line 1402 "Zend/zend_language_scanner.l"
{
char *hex = yytext + 2; /* Skip "0x" */
int len = yyleng - 2;
@@ -4210,7 +4217,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
return T_DNUMBER;
}
}
-#line 4214 "Zend/zend_language_scanner.c"
+#line 4221 "Zend/zend_language_scanner.c"
yy298:
YYDEBUG(298, *YYCURSOR);
++YYCURSOR;
@@ -4219,7 +4226,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy299:
YYDEBUG(299, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1804 "Zend/zend_language_scanner.l"
+#line 1809 "Zend/zend_language_scanner.l"
{
zendlval->value.str.val = yytext; /* no copying - intentional */
zendlval->value.str.len = yyleng;
@@ -4227,7 +4234,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
BEGIN(INITIAL);
return T_CLOSE_TAG; /* implicit ';' at php-end tag */
}
-#line 4231 "Zend/zend_language_scanner.c"
+#line 4238 "Zend/zend_language_scanner.c"
yy300:
YYDEBUG(300, *YYCURSOR);
yych = *++YYCURSOR;
@@ -4261,13 +4268,13 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy304:
YYDEBUG(304, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1690 "Zend/zend_language_scanner.l"
+#line 1695 "Zend/zend_language_scanner.l"
{
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
zendlval->type = IS_STRING;
return T_VARIABLE;
}
-#line 4271 "Zend/zend_language_scanner.c"
+#line 4278 "Zend/zend_language_scanner.c"
yy305:
YYDEBUG(305, *YYCURSOR);
yych = *++YYCURSOR;
@@ -4281,11 +4288,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(307, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1323 "Zend/zend_language_scanner.l"
+#line 1326 "Zend/zend_language_scanner.l"
{
return T_LOGICAL_XOR;
}
-#line 4289 "Zend/zend_language_scanner.c"
+#line 4296 "Zend/zend_language_scanner.c"
yy308:
YYDEBUG(308, *YYCURSOR);
++YYCURSOR;
@@ -4294,61 +4301,61 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(309, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1315 "Zend/zend_language_scanner.l"
+#line 1318 "Zend/zend_language_scanner.l"
{
return T_LOGICAL_OR;
}
-#line 4302 "Zend/zend_language_scanner.c"
+#line 4309 "Zend/zend_language_scanner.c"
yy310:
YYDEBUG(310, *YYCURSOR);
++YYCURSOR;
YYDEBUG(311, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1303 "Zend/zend_language_scanner.l"
+#line 1306 "Zend/zend_language_scanner.l"
{
return T_XOR_EQUAL;
}
-#line 4312 "Zend/zend_language_scanner.c"
+#line 4319 "Zend/zend_language_scanner.c"
yy312:
YYDEBUG(312, *YYCURSOR);
++YYCURSOR;
YYDEBUG(313, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1307 "Zend/zend_language_scanner.l"
+#line 1310 "Zend/zend_language_scanner.l"
{
return T_BOOLEAN_OR;
}
-#line 4322 "Zend/zend_language_scanner.c"
+#line 4329 "Zend/zend_language_scanner.c"
yy314:
YYDEBUG(314, *YYCURSOR);
++YYCURSOR;
YYDEBUG(315, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1299 "Zend/zend_language_scanner.l"
+#line 1302 "Zend/zend_language_scanner.l"
{
return T_OR_EQUAL;
}
-#line 4332 "Zend/zend_language_scanner.c"
+#line 4339 "Zend/zend_language_scanner.c"
yy316:
YYDEBUG(316, *YYCURSOR);
++YYCURSOR;
YYDEBUG(317, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1311 "Zend/zend_language_scanner.l"
+#line 1314 "Zend/zend_language_scanner.l"
{
return T_BOOLEAN_AND;
}
-#line 4342 "Zend/zend_language_scanner.c"
+#line 4349 "Zend/zend_language_scanner.c"
yy318:
YYDEBUG(318, *YYCURSOR);
++YYCURSOR;
YYDEBUG(319, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1295 "Zend/zend_language_scanner.l"
+#line 1298 "Zend/zend_language_scanner.l"
{
return T_AND_EQUAL;
}
-#line 4352 "Zend/zend_language_scanner.c"
+#line 4359 "Zend/zend_language_scanner.c"
yy320:
YYDEBUG(320, *YYCURSOR);
++YYCURSOR;
@@ -4357,7 +4364,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy321:
YYDEBUG(321, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1813 "Zend/zend_language_scanner.l"
+#line 1818 "Zend/zend_language_scanner.l"
{
if (CG(asp_tags)) {
BEGIN(INITIAL);
@@ -4370,17 +4377,17 @@ int lex_scan(zval *zendlval TSRMLS_DC)
return yytext[0];
}
}
-#line 4374 "Zend/zend_language_scanner.c"
+#line 4381 "Zend/zend_language_scanner.c"
yy322:
YYDEBUG(322, *YYCURSOR);
++YYCURSOR;
YYDEBUG(323, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1283 "Zend/zend_language_scanner.l"
+#line 1286 "Zend/zend_language_scanner.l"
{
return T_MOD_EQUAL;
}
-#line 4384 "Zend/zend_language_scanner.c"
+#line 4391 "Zend/zend_language_scanner.c"
yy324:
YYDEBUG(324, *YYCURSOR);
yych = *++YYCURSOR;
@@ -4411,11 +4418,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(329, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1279 "Zend/zend_language_scanner.l"
+#line 1282 "Zend/zend_language_scanner.l"
{
return T_CONCAT_EQUAL;
}
-#line 4419 "Zend/zend_language_scanner.c"
+#line 4426 "Zend/zend_language_scanner.c"
yy330:
YYDEBUG(330, *YYCURSOR);
yyaccept = 6;
@@ -4424,12 +4431,12 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy331:
YYDEBUG(331, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1776 "Zend/zend_language_scanner.l"
+#line 1781 "Zend/zend_language_scanner.l"
{
BEGIN(ST_COMMENT);
yymore();
}
-#line 4433 "Zend/zend_language_scanner.c"
+#line 4440 "Zend/zend_language_scanner.c"
yy332:
YYDEBUG(332, *YYCURSOR);
yych = *++YYCURSOR;
@@ -4439,11 +4446,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(334, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1275 "Zend/zend_language_scanner.l"
+#line 1278 "Zend/zend_language_scanner.l"
{
return T_DIV_EQUAL;
}
-#line 4447 "Zend/zend_language_scanner.c"
+#line 4454 "Zend/zend_language_scanner.c"
yy335:
YYDEBUG(335, *YYCURSOR);
yych = *++YYCURSOR;
@@ -4462,54 +4469,54 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(338, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1770 "Zend/zend_language_scanner.l"
+#line 1775 "Zend/zend_language_scanner.l"
{
RESET_DOC_COMMENT();
BEGIN(ST_DOC_COMMENT);
yymore();
}
-#line 4472 "Zend/zend_language_scanner.c"
+#line 4479 "Zend/zend_language_scanner.c"
yy339:
YYDEBUG(339, *YYCURSOR);
++YYCURSOR;
YYDEBUG(340, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1271 "Zend/zend_language_scanner.l"
+#line 1274 "Zend/zend_language_scanner.l"
{
return T_MUL_EQUAL;
}
-#line 4482 "Zend/zend_language_scanner.c"
+#line 4489 "Zend/zend_language_scanner.c"
yy341:
YYDEBUG(341, *YYCURSOR);
++YYCURSOR;
if ((yych = *YYCURSOR) == '=') goto yy345;
YYDEBUG(342, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1331 "Zend/zend_language_scanner.l"
+#line 1334 "Zend/zend_language_scanner.l"
{
return T_SR;
}
-#line 4493 "Zend/zend_language_scanner.c"
+#line 4500 "Zend/zend_language_scanner.c"
yy343:
YYDEBUG(343, *YYCURSOR);
++YYCURSOR;
YYDEBUG(344, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1259 "Zend/zend_language_scanner.l"
+#line 1262 "Zend/zend_language_scanner.l"
{
return T_IS_GREATER_OR_EQUAL;
}
-#line 4503 "Zend/zend_language_scanner.c"
+#line 4510 "Zend/zend_language_scanner.c"
yy345:
YYDEBUG(345, *YYCURSOR);
++YYCURSOR;
YYDEBUG(346, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1291 "Zend/zend_language_scanner.l"
+#line 1294 "Zend/zend_language_scanner.l"
{
return T_SR_EQUAL;
}
-#line 4513 "Zend/zend_language_scanner.c"
+#line 4520 "Zend/zend_language_scanner.c"
yy347:
YYDEBUG(347, *YYCURSOR);
yyaccept = 7;
@@ -4520,11 +4527,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy348:
YYDEBUG(348, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1327 "Zend/zend_language_scanner.l"
+#line 1330 "Zend/zend_language_scanner.l"
{
return T_SL;
}
-#line 4528 "Zend/zend_language_scanner.c"
+#line 4535 "Zend/zend_language_scanner.c"
yy349:
YYDEBUG(349, *YYCURSOR);
yych = *++YYCURSOR;
@@ -4536,22 +4543,22 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(351, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1255 "Zend/zend_language_scanner.l"
+#line 1258 "Zend/zend_language_scanner.l"
{
return T_IS_SMALLER_OR_EQUAL;
}
-#line 4544 "Zend/zend_language_scanner.c"
+#line 4551 "Zend/zend_language_scanner.c"
yy352:
YYDEBUG(352, *YYCURSOR);
++YYCURSOR;
yy353:
YYDEBUG(353, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1251 "Zend/zend_language_scanner.l"
+#line 1254 "Zend/zend_language_scanner.l"
{
return T_IS_NOT_EQUAL;
}
-#line 4555 "Zend/zend_language_scanner.c"
+#line 4562 "Zend/zend_language_scanner.c"
yy354:
YYDEBUG(354, *YYCURSOR);
yych = *++YYCURSOR;
@@ -4602,11 +4609,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(362, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1287 "Zend/zend_language_scanner.l"
+#line 1290 "Zend/zend_language_scanner.l"
{
return T_SL_EQUAL;
}
-#line 4610 "Zend/zend_language_scanner.c"
+#line 4617 "Zend/zend_language_scanner.c"
yy363:
YYDEBUG(363, *YYCURSOR);
++YYCURSOR;
@@ -4713,7 +4720,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy373:
YYDEBUG(373, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1892 "Zend/zend_language_scanner.l"
+#line 1899 "Zend/zend_language_scanner.l"
{
char *s;
int bprefix = (yytext[0] != '<') ? 1 : 0;
@@ -4734,7 +4741,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
BEGIN(ST_START_HEREDOC);
return T_START_HEREDOC;
}
-#line 4738 "Zend/zend_language_scanner.c"
+#line 4745 "Zend/zend_language_scanner.c"
yy374:
YYDEBUG(374, *YYCURSOR);
yych = *++YYCURSOR;
@@ -4776,7 +4783,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy379:
YYDEBUG(379, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 2063 "Zend/zend_language_scanner.l"
+#line 2070 "Zend/zend_language_scanner.l"
{
int bprefix = (yytext[0] != '<') ? 1 : 0;
char *s;
@@ -4793,7 +4800,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
BEGIN(ST_START_NOWDOC);
return T_START_NOWDOC;
}
-#line 4797 "Zend/zend_language_scanner.c"
+#line 4804 "Zend/zend_language_scanner.c"
yy380:
YYDEBUG(380, *YYCURSOR);
yych = *++YYCURSOR;
@@ -4807,31 +4814,31 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(383, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1243 "Zend/zend_language_scanner.l"
+#line 1246 "Zend/zend_language_scanner.l"
{
return T_IS_NOT_IDENTICAL;
}
-#line 4815 "Zend/zend_language_scanner.c"
+#line 4822 "Zend/zend_language_scanner.c"
yy384:
YYDEBUG(384, *YYCURSOR);
++YYCURSOR;
YYDEBUG(385, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1263 "Zend/zend_language_scanner.l"
+#line 1266 "Zend/zend_language_scanner.l"
{
return T_PLUS_EQUAL;
}
-#line 4825 "Zend/zend_language_scanner.c"
+#line 4832 "Zend/zend_language_scanner.c"
yy386:
YYDEBUG(386, *YYCURSOR);
++YYCURSOR;
YYDEBUG(387, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1231 "Zend/zend_language_scanner.l"
+#line 1234 "Zend/zend_language_scanner.l"
{
return T_INC;
}
-#line 4835 "Zend/zend_language_scanner.c"
+#line 4842 "Zend/zend_language_scanner.c"
yy388:
YYDEBUG(388, *YYCURSOR);
yych = *++YYCURSOR;
@@ -4850,42 +4857,42 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(391, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1223 "Zend/zend_language_scanner.l"
+#line 1226 "Zend/zend_language_scanner.l"
{
return T_LIST;
}
-#line 4858 "Zend/zend_language_scanner.c"
+#line 4865 "Zend/zend_language_scanner.c"
yy392:
YYDEBUG(392, *YYCURSOR);
++YYCURSOR;
if ((yych = *YYCURSOR) == '=') goto yy396;
YYDEBUG(393, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1247 "Zend/zend_language_scanner.l"
+#line 1250 "Zend/zend_language_scanner.l"
{
return T_IS_EQUAL;
}
-#line 4869 "Zend/zend_language_scanner.c"
+#line 4876 "Zend/zend_language_scanner.c"
yy394:
YYDEBUG(394, *YYCURSOR);
++YYCURSOR;
YYDEBUG(395, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1219 "Zend/zend_language_scanner.l"
+#line 1222 "Zend/zend_language_scanner.l"
{
return T_DOUBLE_ARROW;
}
-#line 4879 "Zend/zend_language_scanner.c"
+#line 4886 "Zend/zend_language_scanner.c"
yy396:
YYDEBUG(396, *YYCURSOR);
++YYCURSOR;
YYDEBUG(397, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1239 "Zend/zend_language_scanner.l"
+#line 1242 "Zend/zend_language_scanner.l"
{
return T_IS_IDENTICAL;
}
-#line 4889 "Zend/zend_language_scanner.c"
+#line 4896 "Zend/zend_language_scanner.c"
yy398:
YYDEBUG(398, *YYCURSOR);
yych = *++YYCURSOR;
@@ -4977,7 +4984,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(416, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1543 "Zend/zend_language_scanner.l"
+#line 1546 "Zend/zend_language_scanner.l"
{
if (CG(current_namespace)) {
*zendlval = *CG(current_namespace);
@@ -4987,7 +4994,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
return T_NS_C;
}
-#line 4991 "Zend/zend_language_scanner.c"
+#line 4998 "Zend/zend_language_scanner.c"
yy417:
YYDEBUG(417, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5005,7 +5012,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(421, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1516 "Zend/zend_language_scanner.l"
+#line 1519 "Zend/zend_language_scanner.l"
{
char *filename = zend_get_compiled_filename(TSRMLS_C);
const size_t filename_len = strlen(filename);
@@ -5032,7 +5039,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
zendlval->type = IS_STRING;
return T_DIR;
}
-#line 5036 "Zend/zend_language_scanner.c"
+#line 5043 "Zend/zend_language_scanner.c"
yy422:
YYDEBUG(422, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5053,13 +5060,13 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(427, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1498 "Zend/zend_language_scanner.l"
+#line 1501 "Zend/zend_language_scanner.l"
{
zendlval->value.lval = CG(zend_lineno);
zendlval->type = IS_LONG;
return T_LINE;
}
-#line 5063 "Zend/zend_language_scanner.c"
+#line 5070 "Zend/zend_language_scanner.c"
yy428:
YYDEBUG(428, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5086,7 +5093,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(435, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1477 "Zend/zend_language_scanner.l"
+#line 1480 "Zend/zend_language_scanner.l"
{
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;
@@ -5107,7 +5114,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
zendlval->type = IS_STRING;
return T_METHOD_C;
}
-#line 5111 "Zend/zend_language_scanner.c"
+#line 5118 "Zend/zend_language_scanner.c"
yy436:
YYDEBUG(436, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5145,7 +5152,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(446, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1461 "Zend/zend_language_scanner.l"
+#line 1464 "Zend/zend_language_scanner.l"
{
char *func_name = NULL;
@@ -5161,7 +5168,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
zendlval->type = IS_STRING;
return T_FUNC_C;
}
-#line 5165 "Zend/zend_language_scanner.c"
+#line 5172 "Zend/zend_language_scanner.c"
yy447:
YYDEBUG(447, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5179,7 +5186,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(451, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1504 "Zend/zend_language_scanner.l"
+#line 1507 "Zend/zend_language_scanner.l"
{
char *filename = zend_get_compiled_filename(TSRMLS_C);
@@ -5191,7 +5198,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
zendlval->type = IS_STRING;
return T_FILE;
}
-#line 5195 "Zend/zend_language_scanner.c"
+#line 5202 "Zend/zend_language_scanner.c"
yy452:
YYDEBUG(452, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5215,7 +5222,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(458, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1445 "Zend/zend_language_scanner.l"
+#line 1448 "Zend/zend_language_scanner.l"
{
char *class_name = NULL;
@@ -5231,7 +5238,7 @@ int lex_scan(zval *zendlval TSRMLS_DC)
zendlval->type = IS_STRING;
return T_CLASS_C;
}
-#line 5235 "Zend/zend_language_scanner.c"
+#line 5242 "Zend/zend_language_scanner.c"
yy459:
YYDEBUG(459, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5293,11 +5300,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(471, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1187 "Zend/zend_language_scanner.l"
+#line 1190 "Zend/zend_language_scanner.l"
{
return T_HALT_COMPILER;
}
-#line 5301 "Zend/zend_language_scanner.c"
+#line 5308 "Zend/zend_language_scanner.c"
yy472:
YYDEBUG(472, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5317,11 +5324,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(475, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1171 "Zend/zend_language_scanner.l"
+#line 1174 "Zend/zend_language_scanner.l"
{
return T_USE;
}
-#line 5325 "Zend/zend_language_scanner.c"
+#line 5332 "Zend/zend_language_scanner.c"
yy476:
YYDEBUG(476, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5340,11 +5347,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(479, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1215 "Zend/zend_language_scanner.l"
+#line 1218 "Zend/zend_language_scanner.l"
{
return T_UNSET;
}
-#line 5348 "Zend/zend_language_scanner.c"
+#line 5355 "Zend/zend_language_scanner.c"
yy480:
YYDEBUG(480, *YYCURSOR);
++YYCURSOR;
@@ -5516,11 +5523,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(497, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1115 "Zend/zend_language_scanner.l"
+#line 1118 "Zend/zend_language_scanner.l"
{
return T_INT_CAST;
}
-#line 5524 "Zend/zend_language_scanner.c"
+#line 5531 "Zend/zend_language_scanner.c"
yy498:
YYDEBUG(498, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5564,11 +5571,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(506, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1119 "Zend/zend_language_scanner.l"
+#line 1122 "Zend/zend_language_scanner.l"
{
return T_DOUBLE_CAST;
}
-#line 5572 "Zend/zend_language_scanner.c"
+#line 5579 "Zend/zend_language_scanner.c"
yy507:
YYDEBUG(507, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5638,11 +5645,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(520, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1123 "Zend/zend_language_scanner.l"
+#line 1126 "Zend/zend_language_scanner.l"
{
return T_STRING_CAST;
}
-#line 5646 "Zend/zend_language_scanner.c"
+#line 5653 "Zend/zend_language_scanner.c"
yy521:
YYDEBUG(521, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5675,11 +5682,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(527, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1131 "Zend/zend_language_scanner.l"
+#line 1134 "Zend/zend_language_scanner.l"
{
return T_ARRAY_CAST;
}
-#line 5683 "Zend/zend_language_scanner.c"
+#line 5690 "Zend/zend_language_scanner.c"
yy528:
YYDEBUG(528, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5717,11 +5724,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(535, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1135 "Zend/zend_language_scanner.l"
+#line 1138 "Zend/zend_language_scanner.l"
{
return T_OBJECT_CAST;
}
-#line 5725 "Zend/zend_language_scanner.c"
+#line 5732 "Zend/zend_language_scanner.c"
yy536:
YYDEBUG(536, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5762,11 +5769,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(543, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1139 "Zend/zend_language_scanner.l"
+#line 1142 "Zend/zend_language_scanner.l"
{
return T_BOOL_CAST;
}
-#line 5770 "Zend/zend_language_scanner.c"
+#line 5777 "Zend/zend_language_scanner.c"
yy544:
YYDEBUG(544, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5810,11 +5817,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(552, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1127 "Zend/zend_language_scanner.l"
+#line 1130 "Zend/zend_language_scanner.l"
{
return T_STRING_CAST;
}
-#line 5818 "Zend/zend_language_scanner.c"
+#line 5825 "Zend/zend_language_scanner.c"
yy553:
YYDEBUG(553, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5847,11 +5854,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(559, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1143 "Zend/zend_language_scanner.l"
+#line 1146 "Zend/zend_language_scanner.l"
{
return T_UNSET_CAST;
}
-#line 5855 "Zend/zend_language_scanner.c"
+#line 5862 "Zend/zend_language_scanner.c"
yy560:
YYDEBUG(560, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5865,11 +5872,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(562, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1111 "Zend/zend_language_scanner.l"
+#line 1114 "Zend/zend_language_scanner.l"
{
return T_VAR;
}
-#line 5873 "Zend/zend_language_scanner.c"
+#line 5880 "Zend/zend_language_scanner.c"
yy563:
YYDEBUG(563, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5889,11 +5896,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(566, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1103 "Zend/zend_language_scanner.l"
+#line 1106 "Zend/zend_language_scanner.l"
{
return T_NEW;
}
-#line 5897 "Zend/zend_language_scanner.c"
+#line 5904 "Zend/zend_language_scanner.c"
yy567:
YYDEBUG(567, *YYCURSOR);
yych = *++YYCURSOR;
@@ -5932,21 +5939,21 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(574, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1167 "Zend/zend_language_scanner.l"
+#line 1170 "Zend/zend_language_scanner.l"
{
return T_NAMESPACE;
}
-#line 5940 "Zend/zend_language_scanner.c"
+#line 5947 "Zend/zend_language_scanner.c"
yy575:
YYDEBUG(575, *YYCURSOR);
++YYCURSOR;
YYDEBUG(576, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1099 "Zend/zend_language_scanner.l"
+#line 1102 "Zend/zend_language_scanner.l"
{
return T_PAAMAYIM_NEKUDOTAYIM;
}
-#line 5950 "Zend/zend_language_scanner.c"
+#line 5957 "Zend/zend_language_scanner.c"
yy577:
YYDEBUG(577, *YYCURSOR);
++YYCURSOR;
@@ -5968,32 +5975,32 @@ int lex_scan(zval *zendlval TSRMLS_DC)
++YYCURSOR;
YYDEBUG(580, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1267 "Zend/zend_language_scanner.l"
+#line 1270 "Zend/zend_language_scanner.l"
{
return T_MINUS_EQUAL;
}
-#line 5976 "Zend/zend_language_scanner.c"
+#line 5983 "Zend/zend_language_scanner.c"
yy581:
YYDEBUG(581, *YYCURSOR);
++YYCURSOR;
YYDEBUG(582, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1235 "Zend/zend_language_scanner.l"
+#line 1238 "Zend/zend_language_scanner.l"
{
return T_DEC;
}
-#line 5986 "Zend/zend_language_scanner.c"
+#line 5993 "Zend/zend_language_scanner.c"
yy583:
YYDEBUG(583, *YYCURSOR);
++YYCURSOR;
YYDEBUG(584, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1069 "Zend/zend_language_scanner.l"
+#line 1072 "Zend/zend_language_scanner.l"
{
yy_push_state(ST_LOOKING_FOR_PROPERTY TSRMLS_CC);
return T_OBJECT_OPERATOR;
}
-#line 5997 "Zend/zend_language_scanner.c"
+#line 6004 "Zend/zend_language_scanner.c"
yy585:
YYDEBUG(585, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6038,11 +6045,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(591, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1211 "Zend/zend_language_scanner.l"
+#line 1214 "Zend/zend_language_scanner.l"
{
return T_PUBLIC;
}
-#line 6046 "Zend/zend_language_scanner.c"
+#line 6053 "Zend/zend_language_scanner.c"
yy592:
YYDEBUG(592, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6097,11 +6104,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(600, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1207 "Zend/zend_language_scanner.l"
+#line 1210 "Zend/zend_language_scanner.l"
{
return T_PROTECTED;
}
-#line 6105 "Zend/zend_language_scanner.c"
+#line 6112 "Zend/zend_language_scanner.c"
yy601:
YYDEBUG(601, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6131,11 +6138,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(606, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1203 "Zend/zend_language_scanner.l"
+#line 1206 "Zend/zend_language_scanner.l"
{
return T_PRIVATE;
}
-#line 6139 "Zend/zend_language_scanner.c"
+#line 6146 "Zend/zend_language_scanner.c"
yy607:
YYDEBUG(607, *YYCURSOR);
++YYCURSOR;
@@ -6144,11 +6151,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(608, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1049 "Zend/zend_language_scanner.l"
+#line 1052 "Zend/zend_language_scanner.l"
{
return T_PRINT;
}
-#line 6152 "Zend/zend_language_scanner.c"
+#line 6159 "Zend/zend_language_scanner.c"
yy609:
YYDEBUG(609, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6173,11 +6180,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(613, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1041 "Zend/zend_language_scanner.l"
+#line 1044 "Zend/zend_language_scanner.l"
{
return T_GOTO;
}
-#line 6181 "Zend/zend_language_scanner.c"
+#line 6188 "Zend/zend_language_scanner.c"
yy614:
YYDEBUG(614, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6201,11 +6208,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(618, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1175 "Zend/zend_language_scanner.l"
+#line 1178 "Zend/zend_language_scanner.l"
{
return T_GLOBAL;
}
-#line 6209 "Zend/zend_language_scanner.c"
+#line 6216 "Zend/zend_language_scanner.c"
yy619:
YYDEBUG(619, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6239,11 +6246,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(625, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1033 "Zend/zend_language_scanner.l"
+#line 1036 "Zend/zend_language_scanner.l"
{
return T_BREAK;
}
-#line 6247 "Zend/zend_language_scanner.c"
+#line 6254 "Zend/zend_language_scanner.c"
yy626:
YYDEBUG(626, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6283,11 +6290,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(633, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1017 "Zend/zend_language_scanner.l"
+#line 1020 "Zend/zend_language_scanner.l"
{
return T_SWITCH;
}
-#line 6291 "Zend/zend_language_scanner.c"
+#line 6298 "Zend/zend_language_scanner.c"
yy634:
YYDEBUG(634, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6311,11 +6318,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(638, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1191 "Zend/zend_language_scanner.l"
+#line 1194 "Zend/zend_language_scanner.l"
{
return T_STATIC;
}
-#line 6319 "Zend/zend_language_scanner.c"
+#line 6326 "Zend/zend_language_scanner.c"
yy639:
YYDEBUG(639, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6342,11 +6349,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(643, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1013 "Zend/zend_language_scanner.l"
+#line 1016 "Zend/zend_language_scanner.l"
{
return T_AS;
}
-#line 6350 "Zend/zend_language_scanner.c"
+#line 6357 "Zend/zend_language_scanner.c"
yy644:
YYDEBUG(644, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6365,11 +6372,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(647, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1227 "Zend/zend_language_scanner.l"
+#line 1230 "Zend/zend_language_scanner.l"
{
return T_ARRAY;
}
-#line 6373 "Zend/zend_language_scanner.c"
+#line 6380 "Zend/zend_language_scanner.c"
yy648:
YYDEBUG(648, *YYCURSOR);
++YYCURSOR;
@@ -6378,11 +6385,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(649, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1319 "Zend/zend_language_scanner.l"
+#line 1322 "Zend/zend_language_scanner.l"
{
return T_LOGICAL_AND;
}
-#line 6386 "Zend/zend_language_scanner.c"
+#line 6393 "Zend/zend_language_scanner.c"
yy650:
YYDEBUG(650, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6416,11 +6423,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(656, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1195 "Zend/zend_language_scanner.l"
+#line 1198 "Zend/zend_language_scanner.l"
{
return T_ABSTRACT;
}
-#line 6424 "Zend/zend_language_scanner.c"
+#line 6431 "Zend/zend_language_scanner.c"
yy657:
YYDEBUG(657, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6444,11 +6451,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(661, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 973 "Zend/zend_language_scanner.l"
+#line 976 "Zend/zend_language_scanner.l"
{
return T_WHILE;
}
-#line 6452 "Zend/zend_language_scanner.c"
+#line 6459 "Zend/zend_language_scanner.c"
yy662:
YYDEBUG(662, *YYCURSOR);
++YYCURSOR;
@@ -6457,11 +6464,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(663, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 957 "Zend/zend_language_scanner.l"
+#line 960 "Zend/zend_language_scanner.l"
{
return T_IF;
}
-#line 6465 "Zend/zend_language_scanner.c"
+#line 6472 "Zend/zend_language_scanner.c"
yy664:
YYDEBUG(664, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6513,11 +6520,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(670, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1179 "Zend/zend_language_scanner.l"
+#line 1182 "Zend/zend_language_scanner.l"
{
return T_ISSET;
}
-#line 6521 "Zend/zend_language_scanner.c"
+#line 6528 "Zend/zend_language_scanner.c"
yy671:
YYDEBUG(671, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6571,11 +6578,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
yy678:
YYDEBUG(678, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1151 "Zend/zend_language_scanner.l"
+#line 1154 "Zend/zend_language_scanner.l"
{
return T_INCLUDE;
}
-#line 6579 "Zend/zend_language_scanner.c"
+#line 6586 "Zend/zend_language_scanner.c"
yy679:
YYDEBUG(679, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6604,11 +6611,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(684, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1155 "Zend/zend_language_scanner.l"
+#line 1158 "Zend/zend_language_scanner.l"
{
return T_INCLUDE_ONCE;
}
-#line 6612 "Zend/zend_language_scanner.c"
+#line 6619 "Zend/zend_language_scanner.c"
yy685:
YYDEBUG(685, *YYCURSOR);
yych = *++YYCURSOR;
@@ -6642,11 +6649,11 @@ int lex_scan(zval *zendlval TSRMLS_DC)
}
YYDEBUG(691, *YYCURSOR);
yyleng = YYCURSOR - SCNG(yy_text);
-#line 1057 "Zend/zend_language_scanner.l"
+#line 1060 "Zend/zend_language_scanner.l"
{
return T_INTERFACE;
}
-#line 6650 "Zend/zend_language_scanner.c"
+#line 6657 "Zend/zend_language_scanner.c"
yy692:
YYDEBUG(692, *YYCURSOR);
yych = *++YYCURSOR;