-/* Generated by re2c 0.9.3 on Sun Jan 30 11:35:55 2005 */
-#line 1 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+/* Generated by re2c 0.9.4 on Tue Feb 15 09:07:53 2005 */
+#line 1 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
/*
+----------------------------------------------------------------------+
| PHP Version 4 |
#define YYMARKER marker
-#line 154 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 154 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
goto yy16;
} else {
if(yych <= '}') goto yy14;
- if(yych <= '\277') goto yy16;
+ if(yych <= 0xBF) goto yy16;
goto yy2;
}
}
if(yych == ':') goto yy87;
goto yy4;
yy4:
-#line 574 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 582 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
{ return 0; }
#line 102 "<stdout>"
yy5: yyaccept = 0;
yy14: ++YYCURSOR;
goto yy15;
yy15:
-#line 568 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 576 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
{
/* this is the case where we have less data than planned */
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Unexpected end of serialized data");
yy22: ++YYCURSOR;
goto yy23;
yy23:
-#line 487 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 487 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
{
- size_t len, len2, maxlen;
+ size_t len, len2, len3, maxlen;
int elements;
char *class_name;
zend_class_entry *ce;
class_name = str_tolower_copy((char *)emalloc(len+1), class_name, len);
class_name[len] = '\0';
+ len3 = strspn(class_name, "0123456789_abcdefghijklmnopqrstuvwxyz");
+ if (len3 != len)
+ {
+ *p = YYCURSOR + len3 - len;
+ efree(class_name);
+ return 0;
+ }
+
if (zend_hash_find(CG(class_table), class_name, len + 1, (void **) &ce) != SUCCESS) {
if ((PG(unserialize_callback_func) == NULL) || (PG(unserialize_callback_func)[0] == '\0')) {
incomplete_class = 1;
return object_common2(UNSERIALIZE_PASSTHRU, elements);
}
-#line 252 "<stdout>"
+#line 260 "<stdout>"
yy24: yych = *++YYCURSOR;
if(yych <= ','){
if(yych != '+') goto yy2;
yy29: ++YYCURSOR;
goto yy30;
yy30:
-#line 479 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 479 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
{
INIT_PZVAL(*rval);
return object_common2(UNSERIALIZE_PASSTHRU,
object_common1(UNSERIALIZE_PASSTHRU, ZEND_STANDARD_CLASS_DEF_PTR));
}
-#line 290 "<stdout>"
+#line 298 "<stdout>"
yy31: yych = *++YYCURSOR;
if(yych == '+') goto yy32;
if(yych <= '/') goto yy2;
yy36: ++YYCURSOR;
goto yy37;
yy37:
-#line 461 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 461 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
{
int elements = parse_iv(start + 2);
return finish_nested_data(UNSERIALIZE_PASSTHRU);
}
-#line 333 "<stdout>"
+#line 341 "<stdout>"
yy38: yych = *++YYCURSOR;
if(yych == '+') goto yy39;
if(yych <= '/') goto yy2;
yy43: ++YYCURSOR;
goto yy44;
yy44:
-#line 433 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 433 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
{
size_t len, maxlen;
char *str;
ZVAL_STRINGL(*rval, str, len, 1);
return 1;
}
-#line 386 "<stdout>"
+#line 394 "<stdout>"
yy45: yych = *++YYCURSOR;
if(yych <= '/'){
if(yych <= ','){
yy55: ++YYCURSOR;
goto yy56;
yy56:
-#line 426 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 426 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
{
*p = YYCURSOR;
INIT_PZVAL(*rval);
ZVAL_DOUBLE(*rval, zend_strtod(start + 2, NULL));
return 1;
}
-#line 484 "<stdout>"
+#line 492 "<stdout>"
yy57: yych = *++YYCURSOR;
if(yych <= ','){
if(yych != '+') goto yy2;
yy66: ++YYCURSOR;
goto yy67;
yy67:
-#line 411 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 411 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
{
*p = YYCURSOR;
INIT_PZVAL(*rval);
return 1;
}
-#line 561 "<stdout>"
+#line 569 "<stdout>"
yy68: yych = *++YYCURSOR;
if(yych == 'N') goto yy65;
goto yy2;
yy73: ++YYCURSOR;
goto yy74;
yy74:
-#line 404 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 404 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
{
*p = YYCURSOR;
INIT_PZVAL(*rval);
ZVAL_LONG(*rval, parse_iv(start + 2));
return 1;
}
-#line 598 "<stdout>"
+#line 606 "<stdout>"
yy75: yych = *++YYCURSOR;
if(yych <= '/') goto yy2;
if(yych >= '2') goto yy2;
yy77: ++YYCURSOR;
goto yy78;
yy78:
-#line 397 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 397 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
{
*p = YYCURSOR;
INIT_PZVAL(*rval);
ZVAL_BOOL(*rval, parse_iv(start + 2));
return 1;
}
-#line 616 "<stdout>"
+#line 624 "<stdout>"
yy79: ++YYCURSOR;
goto yy80;
yy80:
-#line 390 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 390 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
{
*p = YYCURSOR;
INIT_PZVAL(*rval);
ZVAL_NULL(*rval);
return 1;
}
-#line 627 "<stdout>"
+#line 635 "<stdout>"
yy81: yych = *++YYCURSOR;
if(yych <= ','){
if(yych != '+') goto yy2;
yy85: ++YYCURSOR;
goto yy86;
yy86:
-#line 367 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 367 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
{
int id;
return 1;
}
-#line 677 "<stdout>"
+#line 685 "<stdout>"
yy87: yych = *++YYCURSOR;
if(yych <= ','){
if(yych != '+') goto yy2;
yy91: ++YYCURSOR;
goto yy92;
yy92:
-#line 346 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 346 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
{
int id;
return 1;
}
-#line 725 "<stdout>"
+#line 733 "<stdout>"
}
-#line 576 "/home/rei/php_dev/php4/ext/standard/var_unserializer.re"
+#line 584 "/usr/src/PHP_4_3_0/ext/standard/var_unserializer.re"
return 0;