Add system check for fsockopen

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Add system check for fsockopen

Post by cmb » Sun Apr 26, 2015 1:02 pm

Hi everybody!

I suggest to add a system check for the availability of the function fsockopen in XH 1.6.7. This function is always built in the core of PHP, but it can be disabled via disable_functions (or respective settings of Suhosin). The function is currently used by the core to check the access protection of config.php and content.htm, and also by the link checker. Furthermore it is used by hi_UpdateCheck. If fsockopen is disabled, all these functionality will fail, but leave the user without a clue what's wrong, what might be regarded as bug.

The system check would be trivial:

Code: Select all

function_exists('fsockopen')
Christoph M. Becker – Plugins for CMSimple_XH

lck
Posts: 2967
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Add system check for fsockopen

Post by lck » Sun Apr 26, 2015 7:06 pm

+1
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Add system check for fsockopen

Post by cmb » Mon Jun 15, 2015 5:36 pm

Done (r1641, r1642).
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply