Login   Register  
PHP Classes
elePHPant
Icontem

Stopped working on PHP upgrade

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      xmllib  >  All threads  >  Stopped working on PHP upgrade  >  (Un) Subscribe thread alerts  
Subject:Stopped working on PHP upgrade
Summary:A problem with the work namespace
Messages:1
Author:Andrew Reid
Date:2012-03-10 00:42:57
 

  1. Stopped working on PHP upgrade   Reply   Report abuse  
Picture of Andrew Reid
Andrew Reid
2012-03-10 00:42:57
Our host has upgraded their servers and my xmllib now no longer works. I think it is to do with the word namespace being used as it is now a reserved word.

PHP Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in /home/virtualiom/public_html/includes/xmllib.php on line 446

Line 446 contains the following code:

function namespace()
{
return $this->namespace;
}

Any ideas how to update/change this to stop the error?

Thanks