Skip to content
This repository was archived by the owner on Aug 6, 2023. It is now read-only.

Commit baf783e

Browse files
committed
Disable checks, #104:
* PEAR2\Exception and PEAR2\MultiErrors are not required for packages
1 parent 0322aca commit baf783e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/Pyrus/Package/Creator.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ protected function bundleMinimumDeps(
8484
$pear2AutoloadPath = false,
8585
$pear2MultiErrorsPath = false
8686
) {
87+
/*
8788
if (!$pear2ExceptionPath) {
8889
if (!($pear2Exception = @fopen('PEAR2/Exception.php', 'rb', true))) {
8990
throw new Exception('Cannot locate PEAR2/Exception.php, please' .
@@ -102,10 +103,11 @@ protected function bundleMinimumDeps(
102103
throw new Exception('Cannot locate PEAR2/Exception.php in ' . $pear2ExceptionPath);
103104
}
104105
}
106+
*/
105107

106108
if (!$pear2AutoloadPath) {
107109
if (!($pear2Autoload = @fopen('PEAR2/Autoload.php', 'rb', true))) {
108-
fclose($pear2Exception);
110+
//fclose($pear2Exception);
109111
throw new Exception('Cannot locate PEAR2/Autoload.php, please' .
110112
' pass in the path to the constructor');
111113
}
@@ -124,6 +126,7 @@ protected function bundleMinimumDeps(
124126
}
125127
}
126128

129+
/*
127130
if (!$pear2MultiErrorsPath) {
128131
if (!($pear2MultiErrors = @fopen('PEAR2/MultiErrors.php', 'rb', true))) {
129132
fclose($pear2Exception);
@@ -162,11 +165,12 @@ protected function bundleMinimumDeps(
162165
' in ' . $pear2MultiErrorsPath . 'MultiErrors/Exception.php');
163166
}
164167
}
168+
*/
165169

166170
$this->_handles['php/PEAR2/Autoload.php'] = $pear2Autoload;
167-
$this->_handles['php/PEAR2/MultiErrors.php'] = $pear2MultiErrors;
168-
$this->_handles['php/PEAR2/MultiErrors/Exception.php'] = $pear2MultiErrorsException;
169-
$this->_handles['php/PEAR2/Exception.php'] = $pear2Exception;
171+
//$this->_handles['php/PEAR2/MultiErrors.php'] = $pear2MultiErrors;
172+
//$this->_handles['php/PEAR2/MultiErrors/Exception.php'] = $pear2MultiErrorsException;
173+
//$this->_handles['php/PEAR2/Exception.php'] = $pear2Exception;
170174
}
171175

172176
/**

0 commit comments

Comments
 (0)