ioncube loading twice

Support/Development for PHP
User avatar
webfeatus
Forum Regular
Forum Regular
Posts: 196
Joined: Wed Jan 13, 2010 9:11 am
Location: Bali

ioncube loading twice

Unread post by webfeatus »

/usr/lib/php/ioncube/ioncube_loader_lin_5.2.so OK
/usr/lib/php/ioncube/ioncube_loader_lin_5.2.so OK

It looks like this is loading twice.
Where would the calls be?
They say that good intentions, pave the road to hell;
If a thing is not worth doing, it's not worth doing well.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: ioncube loading twice

Unread post by breun »

I'd check /etc/php.ini and /etc/php.d/*.ini:

Code: Select all

grep ^extension= /etc/php.ini /etc/php.d/*.ini
Lemonbit Internet Dedicated Server Management
User avatar
webfeatus
Forum Regular
Forum Regular
Posts: 196
Joined: Wed Jan 13, 2010 9:11 am
Location: Bali

Re: ioncube loading twice

Unread post by webfeatus »

The command above does not reveal anything.
I think because of the word "extension."
There is an ioncube.ini in /etc/php.d
But it must be being called from 2 places.
They say that good intentions, pave the road to hell;
If a thing is not worth doing, it's not worth doing well.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: ioncube loading twice

Unread post by breun »

webfeatus wrote:The command above does not reveal anything.
I think because of the word "extension."
ionCube Loader is loaded by an extension line, so why do you think so?
webfeatus wrote:There is an ioncube.ini in /etc/php.d
But it must be being called from 2 places.
What is in your /etc/php.d/ioncube.ini?
Lemonbit Internet Dedicated Server Management
User avatar
webfeatus
Forum Regular
Forum Regular
Posts: 196
Joined: Wed Jan 13, 2010 9:11 am
Location: Bali

Re: ioncube loading twice

Unread post by webfeatus »

Code: Select all

cat 'ioncube.ini' | less

zend_extension=/usr/lib/php/ioncube/ioncube_loader_lin_5.2.so
(END) 
[root@webfeat php.d]# grep ^extension= /etc/php.ini /etc/php.d/*.ini
/etc/php.d/curl.ini:extension=curl.so
/etc/php.d/dbase.ini:extension=dbase.so
/etc/php.d/dom.ini:extension=dom.so
/etc/php.d/gd.ini:extension=gd.so
/etc/php.d/imap.ini:extension=imap.so
/etc/php.d/json.ini:extension=json.so
/etc/php.d/mbstring.ini:extension=mbstring.so
/etc/php.d/mcrypt.ini:extension=mcrypt.so
/etc/php.d/mysqli.ini:extension=mysqli.so
/etc/php.d/mysql.ini:extension=mysql.so
/etc/php.d/pdo.ini:extension=pdo.so
/etc/php.d/pdo_mysql.ini:extension=pdo_mysql.so
/etc/php.d/pdo_sqlite.ini:extension=pdo_sqlite.so
/etc/php.d/wddx.ini:extension=wddx.so
/etc/php.d/xmlreader.ini:extension=xmlreader.so
/etc/php.d/xmlwriter.ini:extension=xmlwriter.so
/etc/php.d/xsl.ini:extension=xsl.so
/etc/php.d/zip.ini:extension=zip.so
[root@webfeat php.d]# 
They say that good intentions, pave the road to hell;
If a thing is not worth doing, it's not worth doing well.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: ioncube loading twice

Unread post by breun »

Ah right, ionCube Loader is loaded using zend_extension instead of extension.

So what does the following say?

Code: Select all

grep ^zend_extension /etc/php.ini /etc/php.d/*.ini
Lemonbit Internet Dedicated Server Management
User avatar
webfeatus
Forum Regular
Forum Regular
Posts: 196
Joined: Wed Jan 13, 2010 9:11 am
Location: Bali

Re: ioncube loading twice

Unread post by webfeatus »

grep ^zend_extension /etc/php.ini /etc/php.d/*.ini
/etc/php.d/ioncube.ini:zend_extension=/usr/lib/php/ioncube/ioncube_loader_lin_5.2.so
/etc/php.d/zend.ini:zend_extension=/usr/lib/php/zend/ZendOptimizer-5.2.so
They say that good intentions, pave the road to hell;
If a thing is not worth doing, it's not worth doing well.
Post Reply