Skip to content

Commit 02c9019

Browse files
authored
Prevent Unable to find the wrapper "channel" Warning
php 7.0 emits > Unable to find the wrapper "channel" as channel URL if passed to file functions PEAR Version: 1.10.6
1 parent 9633d93 commit 02c9019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PEAR/Downloader/Package.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ function &getPackagefileObject(&$c, $d)
15071507
function _fromFile(&$param)
15081508
{
15091509
$saveparam = $param;
1510-
if (is_string($param)) {
1510+
if (is_string($param) && substr($param, 0, 10) !== 'channel://') {
15111511
if (!@file_exists($param)) {
15121512
$test = explode('#', $param);
15131513
$group = array_pop($test);

0 commit comments

Comments
 (0)