Fix exception when printing stacktraces with closed resources
authorMatthias Schmidt <gravatronics@live.com>
Thu, 20 Feb 2020 16:53:25 +0000 (17:53 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 20 Feb 2020 16:53:25 +0000 (17:53 +0100)
wcfsetup/install/files/lib/core.functions.php

index 2e3a2620b9955e2effe6a51bcaf2532f8c8e24be..5d15f827eb0770af18a5341842b109dcb486af82 100644 (file)
@@ -539,6 +539,8 @@ EXPLANATION;
                                                                                                                return get_class($item);
                                                                                                        case 'resource':
                                                                                                                return 'resource('.get_resource_type($item).')';
+                                                                                                       case 'resource (closed)':
+                                                                                                               return 'resource (closed)';
                                                                                                }
                                                                                                
                                                                                                throw new \LogicException('Unreachable');