It seems that Uwe based his rewrite on my implementation of object support for PHP-GTK. But libxml lacks certain features that can help properly destruct objects, they will have to be emulated. I'm just waiting for a reply from libxml author on one issue, and then I can start fixing memory leaks. That may take care of the crash as well, although I haven't experienced the crash, just the memory leaks. On Fri, 11 May 2001, [EMAIL PROTECTED] wrote: > ID: 9896 > Updated by: chregu > Reported By: [EMAIL PROTECTED] > Status: Critical > Bug Type: DOM XML related > Operating system: > PHP Version: 4.0 Latest CVS (21/03/2001) > Assigned To: > Comments: > > ok, there seems to be a massive api-change in domxml... > a lot, which worked in 4.0.5 seems not to work in 4.0.6 > but for my former example, the following seems to work: > > $doc = new_xmldoc("1.0"); > $root = $doc->add_root("HTML"); > echo $doc->dumpmem(); > > but this api-change makes me crazy. some things are easy to change (replace >domxml_function($object,....) with $object->function(...), this works also with >4.0.5), but the structure of the objects seem to have changed, too.. but maybe i >missed something... otherwise i have to rewrite a lot of code and to check which >version of php is used :=( > > Previous Comments: > --------------------------------------------------------------------------- > > [2001-05-07 12:56:28] [EMAIL PROTECTED] > marking as fix before 4.0.6 > > --------------------------------------------------------------------------- > > [2001-05-06 13:33:00] [EMAIL PROTECTED] > This still does not work in latest cvs (06/05/2001). > used another machine with libxml2-2.3.7 and linux-kernel 2.4.0. If one needs another >backtrace, i can make one... > > also > $xml = xmldocfile("config.xml"); > $root = domxml_root($xml); > > produces a segfault (config.xml is a very simple xml file) > > > > --------------------------------------------------------------------------- > > [2001-03-22 04:56:25] [EMAIL PROTECTED] > test-program: > > $xmldoc = domxml_new_xmldoc('1.0'); > $xmldoc->add_root("bla"); > > > gdb backtrace: > > Program received signal SIGSEGV, Segmentation fault. > 0x401a3938 in objects () at zend_operators.c:1144 > 1144 } > (gdb) bt > #0 0x401a3938 in objects () at zend_operators.c:1144 > #1 0x402c13e4 in php4_module () from /usr/local/apache/libexec/libphp4.so > #2 0x401d892a in objects () at php_domxml.c:668 > #3 0x40199707 in objects () at ./zend_execute.c:853 > #4 0x401aafc0 in objects () at zend.c:260 > #5 0x401c3be3 in objects () at main.c:1126 > #6 0x401bf11e in objects () at sapi_apache.c:98 > #7 0x401bfe89 in objects () at mod_php4.c:437 > #8 0x401bfed3 in objects () at mod_php4.c:437 > #9 0x8074c09 in ap_invoke_handler () > #10 0x808a0cf in process_request_internal () > #11 0x808a142 in ap_process_request () > #12 0x8080d96 in child_main () > #13 0x8080f55 in make_child () > #14 0x80810d6 in startup_children () > #15 0x808175c in standalone_main () > #16 0x8081f8c in main () > #17 0x40096a8e in __libc_start_main () at ../sysdeps/generic/libc-start.c:93 > > > > > --------------------------------------------------------------------------- > > [2001-03-21 15:27:09] [EMAIL PROTECTED] > Delete config.cache, add --enable-debug into your configure line, 'make clean ; make >; make install' and generate a GDB backtrace of the crash and add it into this bug >report. > > --Jani > > > --------------------------------------------------------------------------- > > [2001-03-21 06:08:29] [EMAIL PROTECTED] > Reproduce with: > > $xmldoc = domxml_new_xmldoc('1.0'); > domxml_add_root($xmldoc,"bla"); > > Configure > > ./configure --with-config-file-path=/usr/local/apache/conf --with-zlib >--with-mysql --with-sablot --with-apxs=/usr/local/apache/bin/apxs >--enable-versioning --with-dom=/opt/gnome > > libxml2-2.3.3 > > > > > --------------------------------------------------------------------------- > > The remainder of the comments for this report are too long. To view the rest of the >comments, please view the bug report online. > > > ATTENTION! Do NOT reply to this email! > To reply, use the web interface found at http://bugs.php.net/?id=9896&edit=2 > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -Andrei 'Any given program, when running correctly, is obsolete.' - First Law of Computer Programming -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]