1
- /* Generated by re2c 0.13.5 on Wed Nov 9 19:37:48 2011 */
1
+ /* Generated by re2c 0.13.5 on Mon Jan 21 11:34:03 2013 */
2
2
#line 1 "ext/standard/var_unserializer.re"
3
3
/*
4
4
+----------------------------------------------------------------------+
@@ -427,7 +427,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
427
427
428
428
429
429
430
- #line 425 "ext/standard/var_unserializer.c"
430
+ #line 431 "ext/standard/var_unserializer.c"
431
431
{
432
432
YYCTYPE yych ;
433
433
static const unsigned char yybm [] = {
@@ -487,9 +487,9 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
487
487
yych = * (YYMARKER = ++ YYCURSOR );
488
488
if (yych == ':' ) goto yy95 ;
489
489
yy3 :
490
- #line 747 "ext/standard/var_unserializer.re"
490
+ #line 759 "ext/standard/var_unserializer.re"
491
491
{ return 0 ; }
492
- #line 487 "ext/standard/var_unserializer.c"
492
+ #line 493 "ext/standard/var_unserializer.c"
493
493
yy4 :
494
494
yych = * (YYMARKER = ++ YYCURSOR );
495
495
if (yych == ':' ) goto yy89 ;
@@ -532,13 +532,13 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
532
532
goto yy3 ;
533
533
yy14 :
534
534
++ YYCURSOR ;
535
- #line 741 "ext/standard/var_unserializer.re"
535
+ #line 753 "ext/standard/var_unserializer.re"
536
536
{
537
537
/* this is the case where we have less data than planned */
538
538
php_error_docref (NULL TSRMLS_CC , E_NOTICE , "Unexpected end of serialized data" );
539
539
return 0 ; /* not sure if it should be 0 or 1 here? */
540
540
}
541
- #line 536 "ext/standard/var_unserializer.c"
541
+ #line 542 "ext/standard/var_unserializer.c"
542
542
yy16 :
543
543
yych = * ++ YYCURSOR ;
544
544
goto yy3 ;
@@ -568,7 +568,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
568
568
yych = * ++ YYCURSOR ;
569
569
if (yych != '"' ) goto yy18 ;
570
570
++ YYCURSOR ;
571
- #line 624 "ext/standard/var_unserializer.re"
571
+ #line 630 "ext/standard/var_unserializer.re"
572
572
{
573
573
size_t len , len2 , len3 , maxlen ;
574
574
long elements ;
@@ -691,7 +691,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
691
691
692
692
return object_common2 (UNSERIALIZE_PASSTHRU , elements );
693
693
}
694
- #line 683 "ext/standard/var_unserializer.c"
694
+ #line 695 "ext/standard/var_unserializer.c"
695
695
yy25 :
696
696
yych = * ++ YYCURSOR ;
697
697
if (yych <= ',' ) {
@@ -716,15 +716,15 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
716
716
yych = * ++ YYCURSOR ;
717
717
if (yych != '"' ) goto yy18 ;
718
718
++ YYCURSOR ;
719
- #line 616 "ext/standard/var_unserializer.re"
719
+ #line 622 "ext/standard/var_unserializer.re"
720
720
{
721
721
722
722
INIT_PZVAL (* rval );
723
723
724
724
return object_common2 (UNSERIALIZE_PASSTHRU ,
725
725
object_common1 (UNSERIALIZE_PASSTHRU , ZEND_STANDARD_CLASS_DEF_PTR ));
726
726
}
727
- #line 716 "ext/standard/var_unserializer.c"
727
+ #line 728 "ext/standard/var_unserializer.c"
728
728
yy32 :
729
729
yych = * ++ YYCURSOR ;
730
730
if (yych == '+' ) goto yy33 ;
@@ -745,7 +745,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
745
745
yych = * ++ YYCURSOR ;
746
746
if (yych != '{' ) goto yy18 ;
747
747
++ YYCURSOR ;
748
- #line 596 "ext/standard/var_unserializer.re"
748
+ #line 602 "ext/standard/var_unserializer.re"
749
749
{
750
750
long elements = parse_iv (start + 2 );
751
751
/* use iv() not uiv() in order to check data range */
@@ -765,7 +765,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
765
765
766
766
return finish_nested_data (UNSERIALIZE_PASSTHRU );
767
767
}
768
- #line 757 "ext/standard/var_unserializer.c"
768
+ #line 769 "ext/standard/var_unserializer.c"
769
769
yy39 :
770
770
yych = * ++ YYCURSOR ;
771
771
if (yych == '+' ) goto yy40 ;
@@ -786,7 +786,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
786
786
yych = * ++ YYCURSOR ;
787
787
if (yych != '"' ) goto yy18 ;
788
788
++ YYCURSOR ;
789
- #line 567 "ext/standard/var_unserializer.re"
789
+ #line 573 "ext/standard/var_unserializer.re"
790
790
{
791
791
size_t len , maxlen ;
792
792
char * str ;
@@ -815,7 +815,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
815
815
ZVAL_STRINGL (* rval , str , len , 0 );
816
816
return 1 ;
817
817
}
818
- #line 807 "ext/standard/var_unserializer.c"
818
+ #line 819 "ext/standard/var_unserializer.c"
819
819
yy46 :
820
820
yych = * ++ YYCURSOR ;
821
821
if (yych == '+' ) goto yy47 ;
@@ -836,7 +836,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
836
836
yych = * ++ YYCURSOR ;
837
837
if (yych != '"' ) goto yy18 ;
838
838
++ YYCURSOR ;
839
- #line 539 "ext/standard/var_unserializer.re"
839
+ #line 545 "ext/standard/var_unserializer.re"
840
840
{
841
841
size_t len , maxlen ;
842
842
char * str ;
@@ -864,7 +864,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
864
864
ZVAL_STRINGL (* rval , str , len , 1 );
865
865
return 1 ;
866
866
}
867
- #line 856 "ext/standard/var_unserializer.c"
867
+ #line 868 "ext/standard/var_unserializer.c"
868
868
yy53 :
869
869
yych = * ++ YYCURSOR ;
870
870
if (yych <= '/' ) {
@@ -952,7 +952,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
952
952
}
953
953
yy63 :
954
954
++ YYCURSOR ;
955
- #line 529 "ext/standard/var_unserializer.re"
955
+ #line 535 "ext/standard/var_unserializer.re"
956
956
{
957
957
#if SIZEOF_LONG == 4
958
958
use_double :
@@ -962,7 +962,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
962
962
ZVAL_DOUBLE (* rval , zend_strtod ((const char * )start + 2 , NULL ));
963
963
return 1 ;
964
964
}
965
- #line 954 "ext/standard/var_unserializer.c"
965
+ #line 966 "ext/standard/var_unserializer.c"
966
966
yy65 :
967
967
yych = * ++ YYCURSOR ;
968
968
if (yych <= ',' ) {
@@ -1021,7 +1021,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1021
1021
yych = * ++ YYCURSOR ;
1022
1022
if (yych != ';' ) goto yy18 ;
1023
1023
++ YYCURSOR ;
1024
- #line 514 "ext/standard/var_unserializer.re"
1024
+ #line 520 "ext/standard/var_unserializer.re"
1025
1025
{
1026
1026
* p = YYCURSOR ;
1027
1027
INIT_PZVAL (* rval );
@@ -1036,7 +1036,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1036
1036
1037
1037
return 1 ;
1038
1038
}
1039
- #line 1028 "ext/standard/var_unserializer.c"
1039
+ #line 1040 "ext/standard/var_unserializer.c"
1040
1040
yy76 :
1041
1041
yych = * ++ YYCURSOR ;
1042
1042
if (yych == 'N' ) goto yy73 ;
@@ -1063,7 +1063,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1063
1063
if (yych <= '9' ) goto yy79 ;
1064
1064
if (yych != ';' ) goto yy18 ;
1065
1065
++ YYCURSOR ;
1066
- #line 487 "ext/standard/var_unserializer.re"
1066
+ #line 493 "ext/standard/var_unserializer.re"
1067
1067
{
1068
1068
#if SIZEOF_LONG == 4
1069
1069
int digits = YYCURSOR - start - 3 ;
@@ -1090,32 +1090,32 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1090
1090
ZVAL_LONG (* rval , parse_iv (start + 2 ));
1091
1091
return 1 ;
1092
1092
}
1093
- #line 1082 "ext/standard/var_unserializer.c"
1093
+ #line 1094 "ext/standard/var_unserializer.c"
1094
1094
yy83 :
1095
1095
yych = * ++ YYCURSOR ;
1096
1096
if (yych <= '/' ) goto yy18 ;
1097
1097
if (yych >= '2' ) goto yy18 ;
1098
1098
yych = * ++ YYCURSOR ;
1099
1099
if (yych != ';' ) goto yy18 ;
1100
1100
++ YYCURSOR ;
1101
- #line 480 "ext/standard/var_unserializer.re"
1101
+ #line 486 "ext/standard/var_unserializer.re"
1102
1102
{
1103
1103
* p = YYCURSOR ;
1104
1104
INIT_PZVAL (* rval );
1105
1105
ZVAL_BOOL (* rval , parse_iv (start + 2 ));
1106
1106
return 1 ;
1107
1107
}
1108
- #line 1097 "ext/standard/var_unserializer.c"
1108
+ #line 1109 "ext/standard/var_unserializer.c"
1109
1109
yy87 :
1110
1110
++ YYCURSOR ;
1111
- #line 473 "ext/standard/var_unserializer.re"
1111
+ #line 479 "ext/standard/var_unserializer.re"
1112
1112
{
1113
1113
* p = YYCURSOR ;
1114
1114
INIT_PZVAL (* rval );
1115
1115
ZVAL_NULL (* rval );
1116
1116
return 1 ;
1117
1117
}
1118
- #line 1107 "ext/standard/var_unserializer.c"
1118
+ #line 1119 "ext/standard/var_unserializer.c"
1119
1119
yy89 :
1120
1120
yych = * ++ YYCURSOR ;
1121
1121
if (yych <= ',' ) {
@@ -1138,7 +1138,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1138
1138
if (yych <= '9' ) goto yy91 ;
1139
1139
if (yych != ';' ) goto yy18 ;
1140
1140
++ YYCURSOR ;
1141
- #line 450 "ext/standard/var_unserializer.re"
1141
+ #line 456 "ext/standard/var_unserializer.re"
1142
1142
{
1143
1143
long id ;
1144
1144
@@ -1161,7 +1161,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1161
1161
1162
1162
return 1 ;
1163
1163
}
1164
- #line 1153 "ext/standard/var_unserializer.c"
1164
+ #line 1165 "ext/standard/var_unserializer.c"
1165
1165
yy95 :
1166
1166
yych = * ++ YYCURSOR ;
1167
1167
if (yych <= ',' ) {
@@ -1184,7 +1184,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1184
1184
if (yych <= '9' ) goto yy97 ;
1185
1185
if (yych != ';' ) goto yy18 ;
1186
1186
++ YYCURSOR ;
1187
- #line 429 "ext/standard/var_unserializer.re"
1187
+ #line 435 "ext/standard/var_unserializer.re"
1188
1188
{
1189
1189
long id ;
1190
1190
@@ -1205,9 +1205,9 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1205
1205
1206
1206
return 1 ;
1207
1207
}
1208
- #line 1197 "ext/standard/var_unserializer.c"
1208
+ #line 1209 "ext/standard/var_unserializer.c"
1209
1209
}
1210
- #line 749 "ext/standard/var_unserializer.re"
1210
+ #line 761 "ext/standard/var_unserializer.re"
1211
1211
1212
1212
1213
1213
return 0 ;
0 commit comments