Damn it went before I finished :(

class Test
{
 function __construct()
 {
  print simplexml_element::asXML(); // crashes as simpleXML is not expecting this is 
valid.
 }
}

$a = new Test();

As I was saying:
function asXML is defined as:
SXE_ME(asXML,                  NULL, ZEND_ACC_PUBLIC)

so it shouldnt be able to be called statically, though in a class constructor it is 
able to be called.

My questions boil down to which are problems with the extensions and which are bugs in 
the engine?

Reply via email to