feat: h5ai 0.30.0 with PHP 8.4.26 security patch for PHP2Shell

This commit is contained in:
Patrick Asmus
2026-10-21 21:45:49 +02:00
parent 3568d43858
commit e6536444ad
133 changed files with 4363 additions and 29 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
define('H5AI_VERSION', '0.30.0');
define('MIN_PHP_VERSION', '7.0.0');
if (!function_exists('version_compare') || version_compare(PHP_VERSION, MIN_PHP_VERSION, '<')) {
header('Content-type: text/plain;charset=utf-8');
exit('[ERR] h5ai requires PHP ' . MIN_PHP_VERSION . ' or later, but found PHP ' . PHP_VERSION);
}
if (substr(H5AI_VERSION, 0, 1) === '{') {
header('Content-type: text/plain;charset=utf-8');
exit('[ERR] h5ai sources must be preprocessed to work correctly');
}
require_once __DIR__ . '/../private/php/class-bootstrap.php';
Bootstrap::run();