From fa2ced42fee209bf3a035c8aa869c2020a783961 Mon Sep 17 00:00:00 2001 From: Valery Kartel Date: Tue, 21 Feb 2017 02:43:04 +0200 Subject: testing/litespeed: new aport High-performance, lightweight, open source HTTP server with web-gui https://open.litespeedtech.com/ --- testing/litespeed/fix_php.patch | 75 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 testing/litespeed/fix_php.patch (limited to 'testing/litespeed/fix_php.patch') diff --git a/testing/litespeed/fix_php.patch b/testing/litespeed/fix_php.patch new file mode 100644 index 0000000000..a9009ce196 --- /dev/null +++ b/testing/litespeed/fix_php.patch @@ -0,0 +1,75 @@ +--- a/dist/add-ons/snmp_monitoring/class.litespeed_snmp_bridge.php ++++ b/dist/add-ons/snmp_monitoring/class.litespeed_snmp_bridge.php +@@ -1,4 +1,4 @@ +- + +- ++ + +
+
+@@ -40,7 +42,7 @@ +
+
LiteSpeed
+
+-
$msg
"; + } +--- a/dist/admin/html.open/lib/jCryption.php ++++ b/dist/admin/html.open/lib/jCryption.php +@@ -394,7 +394,7 @@ + $bits_n = $bits_cnt % 8; + do { + $str = ''; +- mt_srand($this->_makeSeed()); ++ mt_srand((int)$this->_makeSeed()); + for ($i = 0; $i < $bytes_n; $i++) { + $str .= chr(sha1(mt_rand() * microtime()) & 0xff); + } +--- a/dist/admin/html.open/lib/ows/RealTimeStats.php ++++ b/dist/admin/html.open/lib/ows/RealTimeStats.php +@@ -224,6 +224,9 @@ + $filter = UIBase::GrabGoodInput("request", "vh_filter", "string") ; + $sort = UIBase::GrabGoodInput("request", "vh_sort", "int") ; + ++ $sortDesc1 = array(); ++ $sortAsc2 = array(); ++ + $vhosts = array() ; + $m = array() ; + $found = preg_match_all("/REQ_RATE \[(.+)\]: REQ_PROCESSING: ([0-9]+), REQ_PER_SEC: ([0-9\.]+), TOT_REQS: ([0-9]+)/i", $this->_rawdata, $m) ; -- cgit v1.2.3