PHP Classes

Stopped working on PHP upgrade

Recommend this page to a friend!

      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
Author:Andrew Reid
Date:2012-03-10 00:42:57

  1. Stopped working on PHP upgrade   Reply   Report abuse  
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?