Skip to content

Commit 3b6ea2f

Browse files
committed
Fixed autoloader loading from phar.
1 parent 2c4fe98 commit 3b6ea2f

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
@@ -14,7 +14,7 @@ This package abstracts this away, so that when you want to get exactly N amount
1414
<active>yes</active>
1515
</lead>
1616
<date>2012-08-03</date>
17-
<time>02:47:16</time>
17+
<time>04:21:01</time>
1818
<version>
1919
<release>1.0.0a3</release>
2020
<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)