Skip to content

Commit 21717e0

Browse files
committed
Fix Phar
1 parent 999b767 commit 21717e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildPhar.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
$phar = new Phar('xml-file.phar');
55
// $phar->buildFromDirectory('src');
66
// $phar->buildFromIterator(new RecursiveIteratorIterator(new RecursiveDirectoryIterator('src')));
7-
$pattern = '/' . dirname(__FILE__) . '.src.*$/';
7+
$pattern = '#' . dirname(__FILE__) . '.src.*$#';
88
$pattern = str_replace("\\", "\\\\", $pattern);
99
print("PATTERN: $pattern");
1010
$phar->buildFromDirectory(dirname(__FILE__), $pattern);
1111
$phar->addFile("LICENSE");
1212
$phar->addFile("VERSION");
1313
$phar->addFile("README.md");
14-
$phar->setDefaultStub('stub.php');
14+
$phar->setDefaultStub('src/stub.php');

0 commit comments

Comments
 (0)