Skip to content

Commit

Permalink
feat: Show the requirement checker in the PHAR info
Browse files Browse the repository at this point in the history
Related to box-project#857

[skip ci]
  • Loading branch information
theofidry committed Oct 22, 2023
1 parent cbf2704 commit 6a66381
Show file tree
Hide file tree
Showing 21 changed files with 872 additions and 9 deletions.
5 changes: 5 additions & 0 deletions demo/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"conflict": {
"ext-aerospike": "*"
}
}
4 changes: 4 additions & 0 deletions demo/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php declare(strict_types=1);

echo "Hello world!";

25 changes: 25 additions & 0 deletions demo/vendor/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

// autoload.php @generated by Composer

if (PHP_VERSION_ID < 50600) {
if (!headers_sent()) {
header('HTTP/1.1 500 Internal Server Error');
}
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
if (!ini_get('display_errors')) {
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
fwrite(STDERR, $err);
} elseif (!headers_sent()) {
echo $err;
}
}
trigger_error(
$err,
E_USER_ERROR
);
}

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit64139b68ced9689093febaf5b29b51c5::getLoader();
Loading

0 comments on commit 6a66381

Please sign in to comment.