mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
- Make sure we are not trying to pack directories
This commit is contained in:
parent
376ca12a21
commit
ad8eb0f672
1 changed files with 1 additions and 1 deletions
|
@ -616,7 +616,7 @@ class PharCommand extends CLICommand
|
||||||
|
|
||||||
try {
|
try {
|
||||||
foreach($dir as $file) {
|
foreach($dir as $file) {
|
||||||
if (empty($stub) || $file->getRealPath() != $stub->getRealPath()) {
|
if ((empty($stub) || $file->getRealPath() != $stub->getRealPath()) && !is_dir($file)) {
|
||||||
self::phar_add_file($phar, $level, $dir->getSubPathName(), $file, $compress, $noloader);
|
self::phar_add_file($phar, $level, $dir->getSubPathName(), $file, $compress, $noloader);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue