Page 1 of 1

Add system check for fsockopen

Posted: Sun Apr 26, 2015 1:02 pm
by cmb
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')

Re: Add system check for fsockopen

Posted: Sun Apr 26, 2015 7:06 pm
by lck
+1

Re: Add system check for fsockopen

Posted: Mon Jun 15, 2015 5:36 pm
by cmb
Done (r1641, r1642).