使用加载器(ioncube 和 source guardian)使用 PHPfarm 错误构建 PHP



我无法使用phpfarm配置ioncube或Source Guardian加载器。我认为这是针对 php -v 中的"(调试)",但我不知道该怎么做。我需要有关此问题的帮助。

我的 php -v:

root@martin:/opt/phpfarm/src# /opt/phpfarm/inst/php-5.3.22/bin/php -v
Cannot load the ionCube PHP Loader - it was built with configuration API220090626,NTS, whereas running engine is **API220090626,NTS,debug**
PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with build ID=API20090626,NTS
PHP    compiled with build **ID=API20090626,NTS,debug**
These options need to match
 in Unknown on line 0
Warning: PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with build ID=API20090626,NTS
PHP    compiled with build ID=API20090626,NTS,debug
These options need to match
 in Unknown on line 0
PHP 5.3.22 (cli) (built: Apr 19 2015 17:43:14) **(DEBUG)**
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
    with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans

虽然我只能回答ionCube加载器,但我认为这同样适用于源守护者加载器。

PHP

扩展需要匹配完全相同的版本,包括发布/调试状态、线程安全和 PHP 版本。因此,您是对的,ionCube 加载器不适用于使用调试符号编译的 PHP。ionCube 没有为这种情况提供加载器,因此您唯一的解决方案是将 PHP 构建为发布版本。

请注意,使用调试符号构建 PHP 很可能不会帮助您调试 PHP 脚本,如果这是您的目标。

最新更新