From c2f805c17713bc60a9cc8a353cf393226395ca46 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 22 Apr 2026 14:07:46 +0200 Subject: Update: modified mail form backend for danix.xyz and added vendor folder --- static/api/vendor/composer/platform_check.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 static/api/vendor/composer/platform_check.php (limited to 'static/api/vendor/composer/platform_check.php') diff --git a/static/api/vendor/composer/platform_check.php b/static/api/vendor/composer/platform_check.php new file mode 100644 index 0000000..103a1ff --- /dev/null +++ b/static/api/vendor/composer/platform_check.php @@ -0,0 +1,25 @@ += 50500)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 5.5.0". You are running ' . PHP_VERSION . '.'; +} + +if ($issues) { + if (!headers_sent()) { + header('HTTP/1.1 500 Internal Server Error'); + } + if (!ini_get('display_errors')) { + if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { + fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); + } elseif (!headers_sent()) { + echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; + } + } + throw new \RuntimeException( + 'Composer detected issues in your platform: ' . implode(' ', $issues) + ); +} -- cgit v1.2.3