use Psr\Http\Message\ServerRequestInterface;
function phpInfoDemo(ServerRequestInterface $request): string
{
// phpinfo() displays its output directly in the function's
// HTTP response, so we don't need to explicitly return it
//
// Note: we recommend deleting the deployed Cloud Function once you no
// longer need it, as phpinfo() may broadcast potential security issues.
phpinfo();
return '';
}
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-05-23。"],[[["\u003cp\u003eCloud Run functions use \u003ccode\u003enginx\u003c/code\u003e and \u003ccode\u003ePHP-FPM\u003c/code\u003e to serve requests and run in an environment defined by the language version, known as the runtime.\u003c/p\u003e\n"],["\u003cp\u003eYou can select the preferred PHP runtime version for your function during deployment, with several versions supported and listed on the Runtime support page.\u003c/p\u003e\n"],["\u003cp\u003eFunctions can be deployed using the Google Cloud CLI with the \u003ccode\u003e--runtime\u003c/code\u003e parameter, or through the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003ePHP functions can be prepared locally or directly in the Google Cloud console, and use the PHP Functions Framework library.\u003c/p\u003e\n"],["\u003cp\u003eDependencies for your PHP function are specified in a \u003ccode\u003ecomposer.json\u003c/code\u003e file, and configurations can be managed via a \u003ccode\u003ephp.ini\u003c/code\u003e file in the root directory.\u003c/p\u003e\n"]]],[],null,[]]