If run-tests.php detects that the test requires the CGI sapi (which it
does by checking for the presence of GET, POST etc sections), then it will
try and use the CGI executable to run the SKIPIF section, if there isn't a
php-cgi available it won't be able to :-) So the check would never be
executed.
But if I run it directly using php-cli then it will bail out and I see
right away why..
You shouldn't be running tests by hand anyway.. You loose the INI data, POST, etc.. So if you run them by hand you should know what you're doing.
I just don't want to advocate to add this check to every single test.
Nuno