Ioncube difficulty with PHP 5.5

别说谁变了你拦得住时间么 提交于 2019-12-11 12:43:49

问题


Using following commands installed latest ioncube loader on Ubuntu 13.10 x64 based NGINX, PHP-FPM (5.5) stack

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

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?


回答1:


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). 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. 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. 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.

So, either use PHP 5.4, or procure updated encoded files if possible. You can also always contact ionCube Support via http://ioncu.be/S for assistance.

Disclaimer: I am associated with ionCube




回答2:


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. 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.5 is very stable, and is more secure then PHP 5.3.x. They are wrong, and they are lazy, and the qoute from them make me feel sick and angry.




回答3:


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]



来源:https://stackoverflow.com/questions/22932956/ioncube-difficulty-with-php-5-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!