diff options
Diffstat (limited to 'www/phpvirtualbox/files/patch-php8')
-rw-r--r-- | www/phpvirtualbox/files/patch-php8 | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/www/phpvirtualbox/files/patch-php8 b/www/phpvirtualbox/files/patch-php8 index 477a1596ba4c..12783b19f800 100644 --- a/www/phpvirtualbox/files/patch-php8 +++ b/www/phpvirtualbox/files/patch-php8 @@ -207,3 +207,37 @@ diff -ur panes/settingsNetwork.html.orig panes/settingsNetwork.html $(nsel).jec(); } +--- endpoints/lib/config.php.orig ++++ endpoints/lib/config.php +@@ -141,6 +141,10 @@ + */ + var $eventListenerTimeout = 20; + ++ var $enableHDFlushConfig = false; ++ ++ var $authMaster = false; ++ + /** + * Read user configuration, apply defaults, and do some sanity checking + * @see vboxconnector +--- endpoints/lib/vboxconnector.php.orig ++++ endpoints/lib/vboxconnector.php +@@ -112,6 +112,8 @@ + */ + var $dsep = null; + ++ var $client = null; ++ + /** + * Obtain configuration settings and set object vars + * @param boolean $useAuthMaster use the authentication master obtained from configuration class +@@ -389,7 +389,8 @@ + + // The amount of time we will wait for events is determined by + // the amount of listeners - at least half a second +- $listenerWait = max(100,intval(500/count($this->persistentRequest['vboxEventListeners']))); ++ $listenerCount = count($this->persistentRequest['vboxEventListeners']); ++ $listenerWait = max(100,intval(500/($listenerCount > 0 ? $listenerCount : 1))); + } + + // Get events from each configured event listener |