@@ -647,7 +647,7 @@ static int php_var_unserialize_internal(UNSERIALIZE_PARAMETER)
647
647
yy2 :
648
648
++ YYCURSOR ;
649
649
yy3 :
650
- #line 959 "ext/standard/var_unserializer.re"
650
+ #line 961 "ext/standard/var_unserializer.re"
651
651
{ return 0 ; }
652
652
#line 653 "ext/standard/var_unserializer.c"
653
653
yy4 :
@@ -696,7 +696,7 @@ static int php_var_unserialize_internal(UNSERIALIZE_PARAMETER)
696
696
goto yy3 ;
697
697
yy15 :
698
698
++ YYCURSOR ;
699
- #line 953 "ext/standard/var_unserializer.re"
699
+ #line 955 "ext/standard/var_unserializer.re"
700
700
{
701
701
/* this is the case where we have less data than planned */
702
702
php_error_docref (NULL , E_NOTICE , "Unexpected end of serialized data" );
@@ -1240,11 +1240,13 @@ static int php_var_unserialize_internal(UNSERIALIZE_PARAMETER)
1240
1240
}
1241
1241
1242
1242
/* The callback function may have defined the class */
1243
+ BG (serialize_lock )++ ;
1243
1244
if ((ce = zend_lookup_class (class_name )) == NULL ) {
1244
1245
php_error_docref (NULL , E_WARNING , "Function %s() hasn't defined the class it was called for" , Z_STRVAL (user_func ));
1245
1246
incomplete_class = 1 ;
1246
1247
ce = PHP_IC_ENTRY ;
1247
1248
}
1249
+ BG (serialize_lock )-- ;
1248
1250
1249
1251
zval_ptr_dtor (& user_func );
1250
1252
zval_ptr_dtor (& args [0 ]);
@@ -1274,7 +1276,7 @@ static int php_var_unserialize_internal(UNSERIALIZE_PARAMETER)
1274
1276
1275
1277
return object_common2 (UNSERIALIZE_PASSTHRU , elements );
1276
1278
}
1277
- #line 1278 "ext/standard/var_unserializer.c"
1279
+ #line 1280 "ext/standard/var_unserializer.c"
1278
1280
yy84 :
1279
1281
++ YYCURSOR ;
1280
1282
#line 743 "ext/standard/var_unserializer.re"
@@ -1311,7 +1313,7 @@ static int php_var_unserialize_internal(UNSERIALIZE_PARAMETER)
1311
1313
ZVAL_STR (rval , str );
1312
1314
return 1 ;
1313
1315
}
1314
- #line 1315 "ext/standard/var_unserializer.c"
1316
+ #line 1317 "ext/standard/var_unserializer.c"
1315
1317
yy86 :
1316
1318
++ YYCURSOR ;
1317
1319
#line 777 "ext/standard/var_unserializer.re"
@@ -1338,7 +1340,7 @@ static int php_var_unserialize_internal(UNSERIALIZE_PARAMETER)
1338
1340
1339
1341
return finish_nested_data (UNSERIALIZE_PASSTHRU );
1340
1342
}
1341
- #line 1342 "ext/standard/var_unserializer.c"
1343
+ #line 1344 "ext/standard/var_unserializer.c"
1342
1344
yy88 :
1343
1345
yych = * ++ YYCURSOR ;
1344
1346
if (yych <= ',' ) {
@@ -1370,7 +1372,7 @@ static int php_var_unserialize_internal(UNSERIALIZE_PARAMETER)
1370
1372
return object_common2 (UNSERIALIZE_PASSTHRU ,
1371
1373
object_common1 (UNSERIALIZE_PASSTHRU , ZEND_STANDARD_CLASS_DEF_PTR ));
1372
1374
}
1373
- #line 1374 "ext/standard/var_unserializer.c"
1375
+ #line 1376 "ext/standard/var_unserializer.c"
1374
1376
yy94 :
1375
1377
++ YYCURSOR ;
1376
1378
#line 711 "ext/standard/var_unserializer.re"
@@ -1405,7 +1407,7 @@ static int php_var_unserialize_internal(UNSERIALIZE_PARAMETER)
1405
1407
ZVAL_STRINGL (rval , str , len );
1406
1408
return 1 ;
1407
1409
}
1408
- #line 1409 "ext/standard/var_unserializer.c"
1410
+ #line 1411 "ext/standard/var_unserializer.c"
1409
1411
yy96 :
1410
1412
yych = * ++ YYCURSOR ;
1411
1413
if (yych <= '/' ) goto yy18 ;
@@ -1429,9 +1431,9 @@ static int php_var_unserialize_internal(UNSERIALIZE_PARAMETER)
1429
1431
1430
1432
return 1 ;
1431
1433
}
1432
- #line 1433 "ext/standard/var_unserializer.c"
1434
+ #line 1435 "ext/standard/var_unserializer.c"
1433
1435
}
1434
- #line 961 "ext/standard/var_unserializer.re"
1436
+ #line 963 "ext/standard/var_unserializer.re"
1435
1437
1436
1438
1437
1439
return 0 ;
0 commit comments