Forum


Replies: 1   Views: 3455
Php 5.5 crash when calling deletetemplateblock()
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.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by metalbird  · 19-07-2015 - 23:06

Hi, I have a table in a template document with a few rows (say 10) which can be opt'ed out with a $BLOCK_ABC$ tag. On a 3.7 Pro+ with PHP5.3 no problem but after the upgrade to 4.6 Corporate with PHP5.5 the PHP intepreter crashes on command line with a segmentation fault when deleteTemplateBlock() is called! Operating system is an Ubuntu 14.04 with actual PHP 5.5.9-1ubuntu4.11 Some debugging shows that preg_replace() in deleteTemplateBlock() leads to the crash. Tried creating the template with MS Word 2013 and LibreOffice 4.1. I also reduced the template document down to the table only. Always the same result. Any ideas ? Regards.

Posted by admin  · 21-07-2015 - 08:40

Hi there, please send us your script and templates to contact[at]phpdocx.com, and we will take a look. Regards