Forum


Replies: 8   Views: 4941
Namespace version throws error
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 admin  · 10-06-2016 - 13:17

Hello,

We're going to check it and solve it; it's not an error but a deprecated message so the library works perfectly with all PHP versions, but as an external class used in the library to merge PDF files is using a constructor with the same class name a future PHP release (not currently available) may fail. PHP 7 added this 'deprecrated' message and it can be easily hidden in the PHP config or the framework setting the error level, but some frameworks show all messages by default when working in dev environments.

As workaround please edit the file Classes/Phpdocx/Create/CreateDocx.inc and in line 64 replace this:

error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE);

by:

error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE & ~E_DEPRECATED);

The deprecated message shouldn't appear anymore.

Regards.