Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit e321bb6

Browse files
committed
Declare the Symfony Installer incompatible with 'suhosin' PHP extension
1 parent ff7e0c6 commit e321bb6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

symfony

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ if (PHP_VERSION_ID < 50400) {
1414
exit(1);
1515
}
1616

17+
if (extension_loaded('suhosin')) {
18+
file_put_contents('php://stderr',
19+
"Symfony Installer is not compatible with the 'suhosin' PHP extension.\n".
20+
"Disable that extension before running the installer.\n\n".
21+
"Alternatively, install Symfony manually executing the following command:\n\n".
22+
"composer create-project symfony/framework-standard-edition <project-name> <symfony-version>\n\n"
23+
);
24+
25+
exit(1);
26+
}
27+
1728
require file_exists(__DIR__.'/vendor/autoload.php')
1829
? __DIR__.'/vendor/autoload.php'
1930
: __DIR__.'/../../autoload.php';

0 commit comments

Comments
 (0)