refs #6013 #6012 make sure not to call console in case PHP is type CGI. In type CGI the argv should not be registered anyway unless maybe for instance register-argc-argv is enabled