Hi all,
this patch adds a function that builds an XML fragment from a array.
Implementation of var_dump has been taken as a skeleton.
The main reason for this patch was that using DOM interface to create a long
XML (approx 2.5MB) was slow.
Regards
Petr Tuma
? ext/domxml/tests/domxml003.phpt
In
Hello,
This patch does two things.
Allows for php new/constructors to all of the dom nodes..
ex
- new
$var = new DomDocument("some.file", true);
- old
$var = xmldoc("some.file", true);
// small example how you would use it
$var = new DomDocument("some.file", true);
$var = new DomElement("na
hi!
this patch is against current cvs. it contains some trivial cleanups
and fixes for several memory leaks, where memory that gets malloc()ed in
libxml2 is not free()d. please apply...
additionally, this patch changes get_attribute() to return
FALSE instead of an empty string if the attribute
Bug #14522 Crash with using $node->unlink();
Bug #14522 was prematurely marked as closed; i submitted this patch, but
the bug was marked as closed, before the patch really got a applied to
CVS to fix it...
regards,
-lukas
Index: php_domxml.c
=
Lukas Schroeder [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 3:39 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DEV] [patch] domxml ./. trivial cleanup
>
>
> hi!
>
> the patch below is against cvs as of several minutes ago...
>
> doing
>if (! found)
>
hi!
the patch below is against cvs as of several minutes ago...
doing
if (! found)
*found = ...;
i did not change it into "if (found)" either, b/c found is a
non-optional parameter of internally used functions; it will not be
NULL ever.
regards,
-lukas
PS: is there currently a m