简体   繁体   English

PHP 5.5的Ioncube难度

[英]Ioncube difficulty with PHP 5.5

Using following commands installed latest ioncube loader on Ubuntu 13.10 x64 based NGINX, PHP-FPM (5.5) stack 使用以下命令在基于Ubuntu 13.10 x64的NGINX,PHP-FPM(5.5)堆栈上安装了最新的ioncube加载程序

cd /usr/local
sudo wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
sudo tar xzf ioncube_loaders_lin_x86-64.tar.gz
mv /usr/local/ioncube/* /usr/lib/php5/20121212/

And added following line to php.ini 并将以下行添加到php.ini

zend_extension = /usr/lib/php5/20121212/ioncube_loader_lin_5.5.so

Getting following error on my projects error log 在我的项目错误日志中获取以下错误

... was encoded by the ionCube Encoder for PHP 5 and cannot run under PHP 5.5. ...

What am I doing wrong? 我究竟做错了什么?

This means that the developer of the files produced them to work on PHP 5.0 and higher, and such files cannot be run with PHP 5.5 (see comment to @efarid08's off the mark reply). 这意味着文件的开发人员生产的文件可以在PHP 5.0及更高版本上运行,并且此类文件无法在PHP 5.5上运行(请参阅对@ efarid08的评论)。 They should work fine with PHP 5.4, and you could ask the developer of the files to produce a version that targets PHP 5.3 and higher instead. 它们在PHP 5.4上应该可以正常工作,您可以要求文件的开发人员生成针对PHP 5.3及更高版本的版本。 Aside from such files then being able to work on PHP 5.5, they should also run faster as they more closely match the target language, and can leverage some more efficient internal mechanisms for handling certain PHP language features. 除了可以在PHP 5.5上运行的此类文件之外,它们还应运行得更快,因为它们与目标语言更加匹配,并且可以利用一些更有效的内部机制来处理某些PHP语言功能。 Better still would be for the developer to produce them to directly target PHP with the PHP 5.5 Encoder that's included with an update in release 8.3. 对于开发人员而言,更好的办法是使用8.3版更新中随附的PHP 5.5编码器直接将它们定向到PHP。

So, either use PHP 5.4, or procure updated encoded files if possible. 因此,请使用PHP 5.4,或者尽可能购买更新的编码文件。 You can also always contact ionCube Support via http://ioncu.be/S for assistance. 您也可以随时通过http://ioncu.be/S与ionCube支持联系以获得帮助。

Disclaimer: I am associated with ionCube 免责声明:我与ionCube相关联

The quote from ioncube support make me feel sick, they are trying to put the blame on PHP, when the reality is that ioncube developers is lazy and apparantly don't give a damn. ioncube支持人员的话让我感到恶心,他们试图将责任归咎于PHP,而实际上是ioncube开发人员比较懒惰,并且显然不该死。 It is very little different bitween PHP 5.4 and PHP 5.5, most of the time there will not be needed to make any changes in PHP scripts. PHP 5.4和PHP 5.5之间几乎没有什么不同,大多数时候不需要在PHP脚本中进行任何更改。 PHP 5.5 is very stable, and is more secure then PHP 5.3.x. PHP 5.5非常稳定,并且比PHP 5.3.x更安全。 They are wrong, and they are lazy, and the qoute from them make me feel sick and angry. 他们错了,他们很懒惰,而他们的抱怨使我感到恶心和生气。

Verify that you are able to access the file: just do 验证您是否可以访问该文件:

ls -al /usr/lib/php5/20121212/ioncube_loader_lin_5.5.so

Also for Ubuntu ioncube is supposed to be loaded via /etc/php5/fpm/php.ini under the section [Dynamic Extensions] 同样,对于Ubuntu,ioncube也应该通过[Dynamic Extensions]部分下的/etc/php5/fpm/php.ini加载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM