Skip to content

Commit 7d46ba8

Browse files
jaapmarcusneto737
andauthored
Update hestia-php to 8.2.0 (hestiacp#3144)
* Update to 8.2.0 * Update PCRE to 10.42 * Fix PHP 8.2 deprecation warnings (hestiacp#3151) Co-authored-by: Neto <tynhomello@gmail.com>
1 parent 7260399 commit 7d46ba8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/deb/php/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Source: hestia-php
22
Package: hestia-php
33
Priority: optional
4-
Version: 8.1.13
4+
Version: 8.2.0
55
Section: admin
66
Maintainer: HestaCP <info@hestiacp.com>
77
Homepage: https://www.hestiacp.com

src/hst_autocompile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ else
225225
HESTIA_V="${BUILD_VER}_${BUILD_ARCH}"
226226
fi
227227
OPENSSL_V='3.0.7'
228-
PCRE_V='10.41'
228+
PCRE_V='10.42'
229229
ZLIB_V='1.2.13'
230230

231231
# Create build directories
@@ -564,7 +564,7 @@ if [ "$PHP_B" = true ]; then
564564

565565
# Build the package
566566
echo Building PHP DEB
567-
[ "$HESTIA_DEBUG" ] && echo DEBUG: dpkg-deb --build $BUILD_DIR_HESTIAPHP $DEB_DIR
567+
[ "$HESTIA_DEBUG" ] && echo DEBUG: dpkg-deb -Zxz --build $BUILD_DIR_HESTIAPHP $DEB_DIR
568568
dpkg-deb -Zxz --build $BUILD_DIR_HESTIAPHP $DEB_DIR
569569
fi
570570

web/inc/main.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,11 +461,11 @@ function list_timezones() {
461461
foreach ($timezone_offsets as $timezone => $offset) {
462462
$offset_prefix = $offset < 0 ? "-" : "+";
463463
$offset_formatted = gmdate("H:i", abs($offset));
464-
$pretty_offset = "UTC${offset_prefix}${offset_formatted}";
464+
$pretty_offset = "UTC{$offset_prefix}{$offset_formatted}";
465465
$c = new DateTime(gmdate("Y-M-d H:i:s"), new DateTimeZone("UTC"));
466466
$c->setTimezone(new DateTimeZone($timezone));
467467
$current_time = $c->format("H:i:s");
468-
$timezone_list[$timezone] = "$timezone [ $current_time ] ${pretty_offset}";
468+
$timezone_list[$timezone] = "$timezone [ $current_time ] {$pretty_offset}";
469469
#$timezone_list[$timezone] = "$timezone ${pretty_offset}";
470470
}
471471
return $timezone_list;

0 commit comments

Comments
 (0)