--TEST-- Bug #47430 (Errors after writing to nodeValue parameter of an absent previousSibling). --SKIPIF-- --FILE--
Hello
World!
'; $dom = new DOMDocument(); $dom->loadXML($xml); $elements = $dom->getElementsByTagName('i'); foreach ($elements as $i) { $i->previousSibling->nodeValue = ''; } $arr = array(); $arr[0] = 'Value'; print_r($arr); ?> --EXPECTF-- Strict Standards: Creating default object from empty value in %s on line %d Strict Standards: Creating default object from empty value in %s on line %d Array ( [0] => Value )