mfg-lucker wrote: yes, the code looks a bit different, but works only with /* */
I have used is_executable() instead of isdir() in CB 1.7.1 to fix the issue with isdir()...
But it looks like is_executable() is also restricted by openbasedir PHP directive. Thus there is no safe way to test if a file is executable when openbasedir does not include the paths of your executables that are allowed.
I was already hesitant, but at this point, given that I don't see a way to check for executability before executing (and getting a fatal error in case of non-executability), I would call this a hoster PHP configuration mistake.
On all hostings that I have seen or used this far, openbasedir did include the directories of the executables that were allowed from PHP.
Please ask your hoster to add those to the allowed openbasedir to fix the issue, or to suggest a reliable way to test for executability without trying to execute.