1--TEST-- 2Incorrectly initialized SimpleXmlElement 3--FILE-- 4<?php 5 6class MySXE extends SimpleXMLElement { 7 public function __construct() { 8 /* yolo */ 9 } 10} 11 12$sxe = new MySXE; 13try { 14 var_dump($sxe->count()); 15} catch (Error $e) { 16 echo $e->getMessage(), "\n"; 17} 18try { 19 var_dump($sxe->xpath('')); 20} catch (Error $e) { 21 echo $e->getMessage(), "\n"; 22} 23try { 24 var_dump($sxe->getDocNamespaces()); 25} catch (Error $e) { 26 echo $e->getMessage(), "\n"; 27} 28try { 29 var_dump($sxe->children()); 30} catch (Error $e) { 31 echo $e->getMessage(), "\n"; 32} 33try { 34 var_dump($sxe->attributes()); 35} catch (Error $e) { 36 echo $e->getMessage(), "\n"; 37} 38try { 39 var_dump($sxe->registerXPathNamespace('', '')); 40} catch (Error $e) { 41 echo $e->getMessage(), "\n"; 42} 43try { 44 var_dump($sxe->foo); 45} catch (Error $e) { 46 echo $e->getMessage(), "\n"; 47} 48 49?> 50--EXPECT-- 51SimpleXMLElement is not properly initialized 52SimpleXMLElement is not properly initialized 53SimpleXMLElement is not properly initialized 54SimpleXMLElement is not properly initialized 55SimpleXMLElement is not properly initialized 56SimpleXMLElement is not properly initialized 57SimpleXMLElement is not properly initialized 58