1--TEST--
2Read $ownerElement with null parent.
3--CREDITS--
4Travis Pew
5# TestFest Atlanta 2009-05-14
6--SKIPIF--
7<?php require_once('skipif.inc'); ?>
8--FILE--
9<?php
10
11$document = new DOMDocument;
12$root = $document->createElement('root');
13$document->appendChild($root);
14$attr = $root->setAttribute('category', 'books');
15$document->removeChild($root);
16$root = null;
17var_dump($attr->ownerElement);
18?>
19--EXPECTF--
20Warning: Couldn't fetch DOMAttr. Node no longer exists in %s on line %d
21
22Notice: Undefined property: DOMAttr::$ownerElement in %s on line %d
23NULL
24