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-04-10。"],[[["Cloud Run functions use `nginx` and `PHP-FPM` to serve requests and run in an environment defined by the language version, known as the runtime."],["You can select the preferred PHP runtime version for your function during deployment, with several versions supported and listed on the Runtime support page."],["Functions can be deployed using the Google Cloud CLI with the `--runtime` parameter, or through the Google Cloud console."],["PHP functions can be prepared locally or directly in the Google Cloud console, and use the PHP Functions Framework library."],["Dependencies for your PHP function are specified in a `composer.json` file, and configurations can be managed via a `php.ini` file in the root directory."]]],[]]