Source

perl-XML-LibXML / perl-libxml-mm.c

Author Commit Message Labels Comments Date
ph...@9ae0c189-cd1f-4510-a509-f4891f5cf20d
Modified Files: Tag: mm_fix LibXML.xs + perl 5.00503 xs calls perl-libxml-mm.c more debug messages LibXML.pm t/20extras.t o whitespaces
Branches
mm_fix
ph...@9ae0c189-cd1f-4510-a509-f4891f5cf20d
Modified Files: Tag: mm_fix LibXML.xs [fix] memory leak in DTD parsing perl-libxml-mm.c + handles HTML documents correctly o frees DTDs now lib/XML/LibXML/SAX/Builder.pm more naming fixes t/11memory.t + DTD parsing and validation tests + xpath test (leaks!!!) seems to be a string, that is not freed. t/12html.t t/13dtd.t (whitespaces)
Branches
mm_fix
ph...@9ae0c189-cd1f-4510-a509-f4891f5cf20d
Modified Files: Tag: mm_fix LibXML.pm toString() works now more straight foreward LibXML.xs this adds a chunk of DTD functions. apart from createEntityReference() they are not part of the DOM, but i think they are quite useful :) + createEntityReference + createExternalSubset + createInternalSubset + createDTD + internalSubset + externalSubset + setInternalSubset + setExternalSubset [fix] cloneNode to clone DTDs, too dom.c [fix]…
Branches
mm_fix
ph...@9ae0c189-cd1f-4510-a509-f4891f5cf20d
Modified Files: Tag: mm_fix branch with the fixed memory management This is an almost complete reimplementation of the module. the current implementation is closer to libxml2 than before. only the parts, where libxml2 may cause memory problems, the package uses a special implementation. LibXML.xs LibXML.pm - follows the new memory layer the interface is basicly restructured towards DOM Level3 conformity - implements namespaces correctly. - node import is fixed. - most memory problems are removed. - node destruction is simplified - ownerDocument works now correctly perl-libxml-mm.h perl-libxml-mm.c cleaned interface all proxy …
Branches
mm_fix
ph...@9ae0c189-cd1f-4510-a509-f4891f5cf20d
Modified Files: LibXML.xs perl-libxml-mm.c + FIX: find("/"), findnodes("/") does not segfault anymore the problem actually was a misconception in perl-libxml-mm.c's setSvNodeExtra(). Increases the dom refcount for doms, too. now perls GC will not catch Doc's too early. t/08findnodes.t test the bug/fix
ph...@9ae0c189-cd1f-4510-a509-f4891f5cf20d
Modified Files: perl-libxml-mm.c + replaced SvUTF8() with DO_UTF8() for better compatibility with perl > 5.6
ma...@9ae0c189-cd1f-4510-a509-f4891f5cf20d
Forgot XSUB.h
ma...@9ae0c189-cd1f-4510-a509-f4891f5cf20d
Added t/19 to MANIFEST Still do encoding switching on non-unicode perls
ma...@9ae0c189-cd1f-4510-a509-f4891f5cf20d
Fix up a warning
ph...@9ae0c189-cd1f-4510-a509-f4891f5cf20d
Modified Files: perl-libxml-mm.c o fixed Sv2C() so empty strings will cause no segfaults anymore
ph...@9ae0c189-cd1f-4510-a509-f4891f5cf20d
Modified Files: LibXML.xs + croaks now if empty strings or streams are processed. perl-libxml-mm.c o fixes a gcc warning :) t/02parsestring.t + empty string tests
ph...@9ae0c189-cd1f-4510-a509-f4891f5cf20d
next step towards a better version of XML::LibXML :) this version is still leaking - but it seems to be less, than the last commit. i think this version could be released, just to show there is activity in XML::LibXML :b Modified Files: LibXML.xs - _fix_extra() (not required any more) - more redundand code (replaced it with function calls from perl-libxml-mm) LibXML.pm - _fix_extra() code from the parse functions perl-libxml-mm.…
ph...@9ae0c189-cd1f-4510-a509-f4891f5cf20d
ok, this is a mid release commit. i cleaned the code a lot. as a result the entire module should be more stable now and more easy to maintain. this version does not implement the memory management code, i still have in my mind. because everytime a node is retured a new scalar is created, this version leaks as hell (probably all earlier versions did as well). this will change with one of the next commits. one other thing left to do, is to make a switch for toString available, so a user may decide wether to recieve the string as UTF8 or as the DOM encoding. Modified Files: LibXML.xs + over all cleanup + recognize s…