summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorrojaro <>2009-10-03 00:11:50 +0000
committerrojaro <>2009-10-03 00:11:50 +0000
commit6d02d935df4b8c6525a00670d54f37a9de0a87e0 (patch)
treec5fdc48fc01e267d1d7b24c29424780c25f309d5 /buildscripts
parent840718fadba6645f5eb8fe038eecd084d715a581 (diff)
php 5.3 compatibility fixes
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/PhpDocumentor/phpDocumentor/InlineTags.inc6
-rw-r--r--buildscripts/PhpDocumentor/phpDocumentor/Io.inc5
-rw-r--r--buildscripts/PhpDocumentor/phpDocumentor/common.inc.php6
-rw-r--r--buildscripts/PhpDocumentor/phpDocumentor/phpDocumentorTParser.inc4
4 files changed, 12 insertions, 9 deletions
diff --git a/buildscripts/PhpDocumentor/phpDocumentor/InlineTags.inc b/buildscripts/PhpDocumentor/phpDocumentor/InlineTags.inc
index 1bea7734..27ae3165 100644
--- a/buildscripts/PhpDocumentor/phpDocumentor/InlineTags.inc
+++ b/buildscripts/PhpDocumentor/phpDocumentor/InlineTags.inc
@@ -260,21 +260,21 @@ class parserTutorialInlineTag extends parserLinkInlineTag
{
if (strpos(trim($this->value),' '))
{
- $v = split(' ',trim($this->value));
+ $v = explode(' ', trim($this->value));
$value = $c->getTutorialLink($v[0]);
array_shift($v);
$descrip = join($v,' ');
} else $value = $c->getTutorialLink($this->value);
} else
{
- $vals = split(',',$this->value);
+ $vals = explode(',',$this->value);
$descrip = array();
foreach($vals as $val)
{
$val = trim($val);
if (strpos($val,' '))
{
- $v = split(' ',$val);
+ $v = explode(' ',$val);
$value[] = $c->getTutorialLink($v[0]);
array_shift($v);
$descrip[] = join($v,' ');
diff --git a/buildscripts/PhpDocumentor/phpDocumentor/Io.inc b/buildscripts/PhpDocumentor/phpDocumentor/Io.inc
index 0425096d..dac36bec 100644
--- a/buildscripts/PhpDocumentor/phpDocumentor/Io.inc
+++ b/buildscripts/PhpDocumentor/phpDocumentor/Io.inc
@@ -361,8 +361,9 @@ class Io
{
if (dirname($path) != $masterPath)
{
- $mp = split(PATH_DELIMITER,$masterPath);
- $np = split(PATH_DELIMITER,str_replace('\\','/',dirname($path)));
+ $mp = explode(PATH_DELIMITER, $masterPath);
+ $np = explode(PATH_DELIMITER, str_replace('\\', '/', dirname($path)));
+
if (count($np) < count($mp))
{
$masterPath = join($np, PATH_DELIMITER);
diff --git a/buildscripts/PhpDocumentor/phpDocumentor/common.inc.php b/buildscripts/PhpDocumentor/phpDocumentor/common.inc.php
index 787afd67..f86ed5da 100644
--- a/buildscripts/PhpDocumentor/phpDocumentor/common.inc.php
+++ b/buildscripts/PhpDocumentor/phpDocumentor/common.inc.php
@@ -238,7 +238,9 @@ function fancy_debug($s,$v)
*/
function phpDocumentor_get_class($object)
{
- return strtolower(get_class($object));
+ if(is_object($object))
+ return strtolower(get_class($object));
+ return false;
}
-?> \ No newline at end of file
+?>
diff --git a/buildscripts/PhpDocumentor/phpDocumentor/phpDocumentorTParser.inc b/buildscripts/PhpDocumentor/phpDocumentor/phpDocumentorTParser.inc
index b5c5c733..24a816e9 100644
--- a/buildscripts/PhpDocumentor/phpDocumentor/phpDocumentorTParser.inc
+++ b/buildscripts/PhpDocumentor/phpDocumentor/phpDocumentorTParser.inc
@@ -1660,7 +1660,7 @@ class phpDocumentorTParser extends Parser
} else
{
$save = $value[$i];
- $value[$i] = split("[\t ]",str_replace("\t",' ',$value[$i]));
+ $value[$i] = preg_split("/[\t ]/", str_replace("\t", ' ', $value[$i]));
$word = trim(array_shift($value[$i]));
$val = join(' ',$value[$i]);
if (trim($word) == 'internal')
@@ -2612,4 +2612,4 @@ class phpDocumentorTParser extends Parser
$this->_wp->setWhitespace(false);
}
}
-?> \ No newline at end of file
+?>