Skip to content

Commit 3334bed

Browse files
committed
Fixed autoloader loading from phar.
1 parent fffa4ff commit 3334bed

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<active>yes</active>
1313
</lead>
1414
<date>2012-08-03</date>
15-
<time>02:50:03</time>
15+
<time>04:21:24</time>
1616
<version>
1717
<release>1.0.0b3</release>
1818
<api>1.0.0</api>

stub.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<?php
22
if (count(get_included_files()) > 1) {
33
Phar::mapPhar();
4-
$autoloder = 'phar://' . __FILE__ . DIRECTORY_SEPARATOR . 'src'
4+
require_once 'phar://' . __FILE__ . DIRECTORY_SEPARATOR .
5+
'@PACKAGE_NAME@-@PACKAGE_VERSION@' . DIRECTORY_SEPARATOR . 'src'
56
. DIRECTORY_SEPARATOR . 'PEAR2' . DIRECTORY_SEPARATOR . 'Autoload.php';
6-
if (is_file($autoloder)) {
7-
include_once $autoloder;
8-
}
97
} else {
108
$isNotCli = PHP_SAPI !== 'cli';
119
if ($isNotCli) {

0 commit comments

Comments
 (0)