File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -326,12 +326,10 @@ protected function readMetaAndLock($file, $lock)
326
326
if ($ head && strlen ($ head ) === self ::META_HEADER_LEN ) {
327
327
$ size = (int ) substr ($ head , -6 );
328
328
$ meta = stream_get_contents ($ handle , $ size , self ::META_HEADER_LEN );
329
- $ meta = @unserialize ($ meta ); // intentionally @
330
- if (is_array ($ meta )) {
331
- $ meta [self ::FILE ] = $ file ;
332
- $ meta [self ::HANDLE ] = $ handle ;
333
- return $ meta ;
334
- }
329
+ $ meta = unserialize ($ meta );
330
+ $ meta [self ::FILE ] = $ file ;
331
+ $ meta [self ::HANDLE ] = $ handle ;
332
+ return $ meta ;
335
333
}
336
334
337
335
flock ($ handle , LOCK_UN );
@@ -354,7 +352,7 @@ protected function readData($meta)
354
352
if (empty ($ meta [self ::META_SERIALIZED ])) {
355
353
return $ data ;
356
354
} else {
357
- return @ unserialize ($ data ); // intentionally @
355
+ return unserialize ($ data );
358
356
}
359
357
}
360
358
You can’t perform that action at this time.
0 commit comments