Since php is installed via DA in custombuild, can custombuild provide a workaround for this? There is a workaround included on that page, I like the second way best.
The second way is a patch for PHP, which disables the parsing of arguments if
php-cgi is invoked as non-fastcgi cgi.
But this is in c so needs to be put in during compiling.