Browse Source

Update hestia-php to 8.2.0 (#3144)

* Update to 8.2.0

* Update PCRE to 10.42

* Fix PHP 8.2 deprecation warnings (#3151)

Co-authored-by: Neto <tynhomello@gmail.com>
Jaap Marcus 3 năm trước cách đây
mục cha
commit
7d46ba861f
3 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 1 1
      src/deb/php/control
  2. 2 2
      src/hst_autocompile.sh
  3. 2 2
      web/inc/main.php

+ 1 - 1
src/deb/php/control

@@ -1,7 +1,7 @@
 Source: hestia-php
 Package: hestia-php
 Priority: optional
-Version: 8.1.13
+Version: 8.2.0
 Section: admin
 Maintainer: HestaCP <info@hestiacp.com>
 Homepage: https://www.hestiacp.com

+ 2 - 2
src/hst_autocompile.sh

@@ -225,7 +225,7 @@ else
 	HESTIA_V="${BUILD_VER}_${BUILD_ARCH}"
 fi
 OPENSSL_V='3.0.7'
-PCRE_V='10.41'
+PCRE_V='10.42'
 ZLIB_V='1.2.13'
 
 # Create build directories
@@ -564,7 +564,7 @@ if [ "$PHP_B" = true ]; then
 
 		# Build the package
 		echo Building PHP DEB
-		[ "$HESTIA_DEBUG" ] && echo DEBUG: dpkg-deb --build $BUILD_DIR_HESTIAPHP $DEB_DIR
+		[ "$HESTIA_DEBUG" ] && echo DEBUG: dpkg-deb -Zxz --build $BUILD_DIR_HESTIAPHP $DEB_DIR
 		dpkg-deb -Zxz --build $BUILD_DIR_HESTIAPHP $DEB_DIR
 	fi
 

+ 2 - 2
web/inc/main.php

@@ -461,11 +461,11 @@ function list_timezones() {
 	foreach ($timezone_offsets as $timezone => $offset) {
 		$offset_prefix = $offset < 0 ? "-" : "+";
 		$offset_formatted = gmdate("H:i", abs($offset));
-		$pretty_offset = "UTC${offset_prefix}${offset_formatted}";
+		$pretty_offset = "UTC{$offset_prefix}{$offset_formatted}";
 		$c = new DateTime(gmdate("Y-M-d H:i:s"), new DateTimeZone("UTC"));
 		$c->setTimezone(new DateTimeZone($timezone));
 		$current_time = $c->format("H:i:s");
-		$timezone_list[$timezone] = "$timezone [ $current_time ] ${pretty_offset}";
+		$timezone_list[$timezone] = "$timezone [ $current_time ] {$pretty_offset}";
 		#$timezone_list[$timezone] = "$timezone ${pretty_offset}";
 	}
 	return $timezone_list;