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