# Problems and questions with all the zend changes

- Thread: https://externals.io/message/7801
- Original archive: https://news-web.php.net/php.internals/7801
- Started by Rob Richards on 2004-02-13T13:20:59+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #7801 — Rob Richards — 2004-02-13T13:20:59+00:00

URL: https://externals.io/message/7801#7801

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?
