Hi,

Antony Dovgal wrote:
On 25.01.2006 16:17, Markus Fischer wrote:
the patch is in the bug report ( http://bugs.php.net/bug.php?id=34023 ) or do you meant something else?

Jani meant that it would be better to put this patch as a downloadable file (applying copy-pasted patches causes some problems with tabs/whitespaces).

As written in the other email, the path is online at http://www.zend.com/zend/week/pat/pat52.txt .

Also, some .phpt tests testing new method would be great.

Thanks, I've attached a simple test to this email.

- Markus
--TEST--
Test getParent()
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
<?php
$x = tidy_parse_string("<body><div>Content</div></body>");
var_dump($x->body()->child[0]->getParent()->name);
?>
--EXPECT--
string(4) "body"

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to