mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
First lot of compatability fixes
This commit is contained in:
@@ -1066,7 +1066,7 @@ class PEAR_Registry extends PEAR
|
||||
return array('pear.php.net', 'pecl.php.net', '__uri');
|
||||
}
|
||||
while ($ent = readdir($dp)) {
|
||||
if ($ent{0} == '.' || substr($ent, -4) != '.reg') {
|
||||
if ($ent[0] == '.' || substr($ent, -4) != '.reg') {
|
||||
continue;
|
||||
}
|
||||
if ($ent == '__uri.reg') {
|
||||
@@ -1102,7 +1102,7 @@ class PEAR_Registry extends PEAR
|
||||
return $pkglist;
|
||||
}
|
||||
while ($ent = readdir($dp)) {
|
||||
if ($ent{0} == '.' || substr($ent, -4) != '.reg') {
|
||||
if ($ent[0] == '.' || substr($ent, -4) != '.reg') {
|
||||
continue;
|
||||
}
|
||||
$pkglist[] = substr($ent, 0, -4);
|
||||
@@ -1122,7 +1122,7 @@ class PEAR_Registry extends PEAR
|
||||
return $pkglist;
|
||||
}
|
||||
while ($ent = readdir($dp)) {
|
||||
if ($ent{0} == '.' || substr($ent, -4) != '.reg') {
|
||||
if ($ent[0] == '.' || substr($ent, -4) != '.reg') {
|
||||
continue;
|
||||
}
|
||||
$pkglist[] = substr($ent, 0, -4);
|
||||
@@ -1977,7 +1977,7 @@ class PEAR_Registry extends PEAR
|
||||
}
|
||||
if (!isset($components['scheme'])) {
|
||||
if (strpos($components['path'], '/') !== false) {
|
||||
if ($components['path']{0} == '/') {
|
||||
if ($components['path'][0] == '/') {
|
||||
return PEAR::raiseError('parsePackageName(): this is not ' .
|
||||
'a package name, it begins with "/" in "' . $param . '"',
|
||||
'invalid', null, null, $param);
|
||||
|
||||
Reference in New Issue
Block a user