mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
- MFH: Fixed bug #45726 (PHP_Archive / Archive.php missing)
This commit is contained in:
parent
e45af91313
commit
e52fc53bc2
@ -488,7 +488,9 @@ class PharCommand extends CLICommand
|
||||
|
||||
if (isset($loader)) {
|
||||
$s = "<?php if (!class_exists('PHP_Archive')) {\n?>";
|
||||
$s .= file_get_contents($loader);
|
||||
if (is_file($loader)) {
|
||||
$s .= file_get_contents($loader);
|
||||
}
|
||||
$s .= "<?php\n";
|
||||
$s .= "}\n";
|
||||
$s .= "if (!in_array('phar', stream_get_wrappers())) {\n";
|
||||
|
Loading…
Reference in New Issue
Block a user