【问题标题】:PHP warning :PHP Startup:pdf:Unable to initialize modulePHP 警告:PHP 启动:pdf:无法初始化模块
【发布时间】:2015-08-15 00:00:11
【问题描述】:
将 pdflib 形式从 V9 更改为 V8 后,我遇到了这个问题
PHP Startup:pdf:Unable to initialize module
Module compiled with module API=20100525 PHP
compiled with module API=20131226 These options need to match
我该如何解决?在此先感谢
【问题讨论】:
标签:
php
pdf
zend-framework
code-generation
pdflib
【解决方案1】:
Module compiled with module API=20100525 PHP
这意味着您使用 PHP 5.4 的 DSO,但是您的新 PHP 版本是 PHP 5.6。旧的和过时的 PDFlib 8 不支持此新版本。因此您必须留在当前的 PDFlib 9,其中下载包包含所需的 DSO(几乎在所有平台上)
【解决方案2】:
您不应该再使用 V8。
它只适用于 PHP 5.2-5.4(see here,在第一个表下方),您的 PHP 版本看起来像 5.6 或 5.7,在我看来,您应该保持这种状态。
V9 有问题吗?