1
1
/* Generated by re2c 0.13.5 on Wed Sep 28 15:40:15 2011 */
2
- #line 1 "ext/standard/var_unserializer.re"
3
2
/*
4
3
+----------------------------------------------------------------------+
5
4
| PHP Version 5 |
@@ -190,7 +189,6 @@ static char *unserialize_str(const unsigned char **p, size_t *len, size_t maxlen
190
189
#define YYMARKER marker
191
190
192
191
193
- #line 198 "ext/standard/var_unserializer.re"
194
192
195
193
196
194
@@ -403,7 +401,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
403
401
404
402
405
403
406
- #line 407 "ext/standard/var_unserializer.c"
407
404
{
408
405
YYCTYPE yych ;
409
406
static const unsigned char yybm [] = {
@@ -463,9 +460,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
463
460
yych = * (YYMARKER = ++ YYCURSOR );
464
461
if (yych == ':' ) goto yy95 ;
465
462
yy3 :
466
- #line 729 "ext/standard/var_unserializer.re"
467
463
{ return 0 ; }
468
- #line 469 "ext/standard/var_unserializer.c"
469
464
yy4 :
470
465
yych = * (YYMARKER = ++ YYCURSOR );
471
466
if (yych == ':' ) goto yy89 ;
@@ -508,13 +503,11 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
508
503
goto yy3 ;
509
504
yy14 :
510
505
++ YYCURSOR ;
511
- #line 723 "ext/standard/var_unserializer.re"
512
506
{
513
507
/* this is the case where we have less data than planned */
514
508
php_error_docref (NULL TSRMLS_CC , E_NOTICE , "Unexpected end of serialized data" );
515
509
return 0 ; /* not sure if it should be 0 or 1 here? */
516
510
}
517
- #line 518 "ext/standard/var_unserializer.c"
518
511
yy16 :
519
512
yych = * ++ YYCURSOR ;
520
513
goto yy3 ;
@@ -544,7 +537,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
544
537
yych = * ++ YYCURSOR ;
545
538
if (yych != '"' ) goto yy18 ;
546
539
++ YYCURSOR ;
547
- #line 606 "ext/standard/var_unserializer.re"
548
540
{
549
541
size_t len , len2 , len3 , maxlen ;
550
542
long elements ;
@@ -661,7 +653,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
661
653
662
654
return object_common2 (UNSERIALIZE_PASSTHRU , elements );
663
655
}
664
- #line 665 "ext/standard/var_unserializer.c"
665
656
yy25 :
666
657
yych = * ++ YYCURSOR ;
667
658
if (yych <= ',' ) {
@@ -686,15 +677,13 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
686
677
yych = * ++ YYCURSOR ;
687
678
if (yych != '"' ) goto yy18 ;
688
679
++ YYCURSOR ;
689
- #line 598 "ext/standard/var_unserializer.re"
690
680
{
691
681
692
682
INIT_PZVAL (* rval );
693
683
694
684
return object_common2 (UNSERIALIZE_PASSTHRU ,
695
685
object_common1 (UNSERIALIZE_PASSTHRU , ZEND_STANDARD_CLASS_DEF_PTR ));
696
686
}
697
- #line 698 "ext/standard/var_unserializer.c"
698
687
yy32 :
699
688
yych = * ++ YYCURSOR ;
700
689
if (yych == '+' ) goto yy33 ;
@@ -715,7 +704,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
715
704
yych = * ++ YYCURSOR ;
716
705
if (yych != '{' ) goto yy18 ;
717
706
++ YYCURSOR ;
718
- #line 578 "ext/standard/var_unserializer.re"
719
707
{
720
708
long elements = parse_iv (start + 2 );
721
709
/* use iv() not uiv() in order to check data range */
@@ -735,7 +723,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
735
723
736
724
return finish_nested_data (UNSERIALIZE_PASSTHRU );
737
725
}
738
- #line 739 "ext/standard/var_unserializer.c"
739
726
yy39 :
740
727
yych = * ++ YYCURSOR ;
741
728
if (yych == '+' ) goto yy40 ;
@@ -756,7 +743,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
756
743
yych = * ++ YYCURSOR ;
757
744
if (yych != '"' ) goto yy18 ;
758
745
++ YYCURSOR ;
759
- #line 549 "ext/standard/var_unserializer.re"
760
746
{
761
747
size_t len , maxlen ;
762
748
char * str ;
@@ -785,7 +771,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
785
771
ZVAL_STRINGL (* rval , str , len , 0 );
786
772
return 1 ;
787
773
}
788
- #line 789 "ext/standard/var_unserializer.c"
789
774
yy46 :
790
775
yych = * ++ YYCURSOR ;
791
776
if (yych == '+' ) goto yy47 ;
@@ -806,7 +791,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
806
791
yych = * ++ YYCURSOR ;
807
792
if (yych != '"' ) goto yy18 ;
808
793
++ YYCURSOR ;
809
- #line 521 "ext/standard/var_unserializer.re"
810
794
{
811
795
size_t len , maxlen ;
812
796
char * str ;
@@ -834,7 +818,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
834
818
ZVAL_STRINGL (* rval , str , len , 1 );
835
819
return 1 ;
836
820
}
837
- #line 838 "ext/standard/var_unserializer.c"
838
821
yy53 :
839
822
yych = * ++ YYCURSOR ;
840
823
if (yych <= '/' ) {
@@ -922,7 +905,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
922
905
}
923
906
yy63 :
924
907
++ YYCURSOR ;
925
- #line 511 "ext/standard/var_unserializer.re"
926
908
{
927
909
#if SIZEOF_LONG == 4
928
910
use_double :
@@ -932,7 +914,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
932
914
ZVAL_DOUBLE (* rval , zend_strtod ((const char * )start + 2 , NULL ));
933
915
return 1 ;
934
916
}
935
- #line 936 "ext/standard/var_unserializer.c"
936
917
yy65 :
937
918
yych = * ++ YYCURSOR ;
938
919
if (yych <= ',' ) {
@@ -991,7 +972,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
991
972
yych = * ++ YYCURSOR ;
992
973
if (yych != ';' ) goto yy18 ;
993
974
++ YYCURSOR ;
994
- #line 496 "ext/standard/var_unserializer.re"
995
975
{
996
976
* p = YYCURSOR ;
997
977
INIT_PZVAL (* rval );
@@ -1006,7 +986,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1006
986
1007
987
return 1 ;
1008
988
}
1009
- #line 1010 "ext/standard/var_unserializer.c"
1010
989
yy76 :
1011
990
yych = * ++ YYCURSOR ;
1012
991
if (yych == 'N' ) goto yy73 ;
@@ -1033,7 +1012,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1033
1012
if (yych <= '9' ) goto yy79 ;
1034
1013
if (yych != ';' ) goto yy18 ;
1035
1014
++ YYCURSOR ;
1036
- #line 469 "ext/standard/var_unserializer.re"
1037
1015
{
1038
1016
#if SIZEOF_LONG == 4
1039
1017
int digits = YYCURSOR - start - 3 ;
@@ -1060,32 +1038,27 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1060
1038
ZVAL_LONG (* rval , parse_iv (start + 2 ));
1061
1039
return 1 ;
1062
1040
}
1063
- #line 1064 "ext/standard/var_unserializer.c"
1064
1041
yy83 :
1065
1042
yych = * ++ YYCURSOR ;
1066
1043
if (yych <= '/' ) goto yy18 ;
1067
1044
if (yych >= '2' ) goto yy18 ;
1068
1045
yych = * ++ YYCURSOR ;
1069
1046
if (yych != ';' ) goto yy18 ;
1070
1047
++ YYCURSOR ;
1071
- #line 462 "ext/standard/var_unserializer.re"
1072
1048
{
1073
1049
* p = YYCURSOR ;
1074
1050
INIT_PZVAL (* rval );
1075
1051
ZVAL_BOOL (* rval , parse_iv (start + 2 ));
1076
1052
return 1 ;
1077
1053
}
1078
- #line 1079 "ext/standard/var_unserializer.c"
1079
1054
yy87 :
1080
1055
++ YYCURSOR ;
1081
- #line 455 "ext/standard/var_unserializer.re"
1082
1056
{
1083
1057
* p = YYCURSOR ;
1084
1058
INIT_PZVAL (* rval );
1085
1059
ZVAL_NULL (* rval );
1086
1060
return 1 ;
1087
1061
}
1088
- #line 1089 "ext/standard/var_unserializer.c"
1089
1062
yy89 :
1090
1063
yych = * ++ YYCURSOR ;
1091
1064
if (yych <= ',' ) {
@@ -1108,7 +1081,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1108
1081
if (yych <= '9' ) goto yy91 ;
1109
1082
if (yych != ';' ) goto yy18 ;
1110
1083
++ YYCURSOR ;
1111
- #line 432 "ext/standard/var_unserializer.re"
1112
1084
{
1113
1085
long id ;
1114
1086
@@ -1131,7 +1103,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1131
1103
1132
1104
return 1 ;
1133
1105
}
1134
- #line 1135 "ext/standard/var_unserializer.c"
1135
1106
yy95 :
1136
1107
yych = * ++ YYCURSOR ;
1137
1108
if (yych <= ',' ) {
@@ -1154,7 +1125,6 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1154
1125
if (yych <= '9' ) goto yy97 ;
1155
1126
if (yych != ';' ) goto yy18 ;
1156
1127
++ YYCURSOR ;
1157
- #line 411 "ext/standard/var_unserializer.re"
1158
1128
{
1159
1129
long id ;
1160
1130
@@ -1175,9 +1145,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
1175
1145
1176
1146
return 1 ;
1177
1147
}
1178
- #line 1179 "ext/standard/var_unserializer.c"
1179
1148
}
1180
- #line 731 "ext/standard/var_unserializer.re"
1181
1149
1182
1150
1183
1151
return 0 ;
0 commit comments