forked from Lainports/freebsd-ports
www/phpvirtualbox{,-legacy}: PHP 8.2 support
Was fixed: 1. Deprecated: Creation of dynamic property vboxconnector::$client is deprecated in /usr/local/www/phpvirtualbox/endpoints/lib/vboxconnector.php on line 175. 2. Deprecated: Creation of dynamic property phpVBoxConfigClass::$enableHDFlushConfig is deprecated in /usr/local/www/phpvirtualbox/endpoints/lib/config.php on line 1825. 3. Deprecated: Creation of dynamic property phpVBoxConfigClass::$authMaster is deprecated in /usr/local/www/phpvirtualbox/endpoints/lib/config.php on line 241. 4. Division by zero in endpoints/lib/vboxconnector.php. Upstream issue: https://github.com/usvn/usvn/issues/82 Approved by: arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D43175 MFH: 2023Q4
This commit is contained in:
parent
391b9fd144
commit
1c0edfc75b
3 changed files with 36 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
PORTNAME= phpvirtualbox
|
||||
DISTVERSION= 5.2-1
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= www
|
||||
PKGNAMESUFFIX= -legacy
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
PORTNAME= phpvirtualbox
|
||||
DISTVERSION= 6.1
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= www
|
||||
|
||||
MAINTAINER= vbox@FreeBSD.org
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue