Re: [PHP-DEV] DOMDocument->saveXML with node parameter

2012-03-20 Thread Nicolai Scheer
Hi! On 20.03.2012 23:33, Gustavo Lopes wrote: > On Tue, 20 Mar 2012 23:27:50 +0100, Nicolai Scheer > wrote: > >> >> > $doc = new DOMDocument(); >> $doc->loadHTML( 'Test' ); >> $body = $doc->getElementsByTagName( 'body' )->item( 0 ); >> echo $doc->saveHTML( $body ); >> >> If I compile 5.3.10 myse

Re: [PHP-DEV] DOMDocument->saveXML with node parameter

2012-03-20 Thread Gustavo Lopes
On Tue, 20 Mar 2012 23:27:50 +0100, Nicolai Scheer wrote: loadHTML( 'Test' ); $body = $doc->getElementsByTagName( 'body' )->item( 0 ); echo $doc->saveHTML( $body ); If I compile 5.3.10 myself (RHEL 5.7), I get the very same behaviour as described in the last comment of bug 39771: "PHP Warn

[PHP-DEV] DOMDocument->saveXML with node parameter

2012-03-20 Thread Nicolai Scheer
Hi! Just stumbled upon the issue described in https://bugs.php.net/bug.php?id=39771 during a Windows -> Linux migration. The windows binaries for php 5.3.10 and 5.4 got no problems executing the following: loadHTML( 'Test' ); $body = $doc->getElementsByTagName( 'body' )->item( 0 ); echo $doc->