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:
@@ -875,13 +875,13 @@ class PEAR_PackageFile_Generator_v1
|
||||
}
|
||||
//o <install as=..> tags for <file name=... platform=!... install-as=..>
|
||||
if (isset($package['platform'][$file]) &&
|
||||
$package['platform'][$file]{0} == '!') {
|
||||
$package['platform'][$file][0] == '!') {
|
||||
$generic[] = $file;
|
||||
continue;
|
||||
}
|
||||
//o <ignore> tags for <file name=... platform=... install-as=..>
|
||||
if (isset($package['platform'][$file]) &&
|
||||
$package['platform'][$file]{0} != '!') {
|
||||
$package['platform'][$file][0] != '!') {
|
||||
$genericIgnore[] = $file;
|
||||
continue;
|
||||
}
|
||||
@@ -890,7 +890,7 @@ class PEAR_PackageFile_Generator_v1
|
||||
if (isset($package['install-as'][$file])) {
|
||||
continue;
|
||||
}
|
||||
if ($platform{0} != '!') {
|
||||
if ($platform[0] != '!') {
|
||||
//o <ignore> tags for <file name=... platform=...>
|
||||
$genericIgnore[] = $file;
|
||||
}
|
||||
@@ -899,7 +899,7 @@ class PEAR_PackageFile_Generator_v1
|
||||
$oses = $notplatform = $platform = array();
|
||||
foreach ($package['platform'] as $file => $os) {
|
||||
// get a list of oses
|
||||
if ($os{0} == '!') {
|
||||
if ($os[0] == '!') {
|
||||
if (isset($oses[substr($os, 1)])) {
|
||||
continue;
|
||||
}
|
||||
@@ -945,7 +945,7 @@ class PEAR_PackageFile_Generator_v1
|
||||
// <file name=... platform=!other platform install-as=..>
|
||||
if (isset($package['platform'][$file]) &&
|
||||
$package['platform'][$file] != "!$os" &&
|
||||
$package['platform'][$file]{0} == '!') {
|
||||
$package['platform'][$file][0] == '!') {
|
||||
$release[$releaseNum]['filelist']['install'][] =
|
||||
array(
|
||||
'attribs' => array(
|
||||
@@ -970,7 +970,7 @@ class PEAR_PackageFile_Generator_v1
|
||||
//o <ignore> tags for
|
||||
// <file name=... platform=other platform install-as=..>
|
||||
if (isset($package['platform'][$file]) &&
|
||||
$package['platform'][$file]{0} != '!' &&
|
||||
$package['platform'][$file][0] != '!' &&
|
||||
$package['platform'][$file] != $os) {
|
||||
$release[$releaseNum]['filelist']['ignore'][] =
|
||||
array(
|
||||
@@ -996,7 +996,7 @@ class PEAR_PackageFile_Generator_v1
|
||||
continue;
|
||||
}
|
||||
//o <ignore> tags for <file name=... platform=other platform>
|
||||
if ($platform{0} != '!' && $platform != $os) {
|
||||
if ($platform[0] != '!' && $platform != $os) {
|
||||
$release[$releaseNum]['filelist']['ignore'][] =
|
||||
array(
|
||||
'attribs' => array(
|
||||
|
||||
@@ -752,7 +752,7 @@ http://pear.php.net/dtd/package-2.0.xsd',
|
||||
}
|
||||
}
|
||||
|
||||
if (is_string($value) && $value && ($value{strlen($value) - 1} == "\n")) {
|
||||
if (is_string($value) && $value && ($value[strlen($value) - 1] == "\n")) {
|
||||
$value .= str_repeat($this->options['indent'], $this->_tagDepth);
|
||||
}
|
||||
$tmp .= $this->_createXMLTag(array(
|
||||
@@ -1501,7 +1501,7 @@ class PEAR_PackageFile_Generator_v2_XML_Util {
|
||||
function isValidName($string)
|
||||
{
|
||||
// check for invalid chars
|
||||
if (!preg_match("/^[[:alnum:]_\-.]$/", $string{0})) {
|
||||
if (!preg_match("/^[[:alnum:]_\-.]$/", $string[0])) {
|
||||
return PEAR_PackageFile_Generator_v2_XML_Util::raiseError( "XML names may only start with letter or underscore", PEAR_PackageFile_Generator_v2_XML_Util_ERROR_INVALID_START );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user