Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
Installed LibreOffice 4.3 and still the same problem - segmentation error when trying to convert a .doc to HTML (.docx is fine).
The problem is at line 70 in TransformDocAdv.inc where its treating the .doc file as a .docx zip archive. Its looking for a word/ folder in the .doc which doesn't exist, and therefore the $docXML variable is always empty when you try converting a .doc to HTML.
So you then get PHP Warning: DOMDocument::loadXML(): Empty string supplied as input as an error, plus a backtrace.
Is there something I'm missing here?
Top part of the backtrace:
*** glibc detected *** php: munmap_chunk(): invalid pointer: 0x0000000002b129b8 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7f5e842ffb96]
php[0x64089d]
php(zip_close+0x6bb)[0x63f77b]
php[0x63b422]
php[0x70ff8d]
php(execute+0x1fb)[0x6c0afb]
php(zend_execute_scripts+0x130)[0x69c060]
php(php_execute_script+0x1d3)[0x6486d3]
php[0x42c967]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f5e842a276d]
php[0x42c9b5]
======= Memory map: ========
00400000-00b49000 r-xp 00000000 fc:00 56885350 /usr/bin/php5
00d48000-00dae000 r--p 00748000 fc:00 56885350 /usr/bin/php5
00dae000-00dba000 rw-p 007ae000 fc:00 56885350 /usr/bin/php5
00dba000-00dd6000 rw-p 00000000 00:00 0
023ff000-03e8e000 rw-p 00000000 00:00 0 [heap]