我正在嘗試從 AppEngine 上的 PHP 進行 BigQuery 調用。是否假設 BigQuery PHP 庫必須包含在部署文件中,并且它們在運行時中不隱式可用?簡單的實例化示例:<?phpuse Google\Cloud\BigQuery\BigQueryClient;$bigQuery = new BigQueryClient();?>然后不可避免的錯誤:[error] 20#20: *2 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class 'Google\Cloud\BigQuery\BigQueryClient' not found in /srv/index.php:5 Stack trace: #0 {main} thrown in /srv/index.php on line 3" while reading response header from upstream, client: , server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/google-config/php-fpm.sock:"這些庫是隱含的期望是否過于假設?編輯:這是composer.json部署目錄中的文件(我非常困惑,因為app.yaml應該是庫的聲明位置,不是嗎?)??我什至不知道如何指定版本或只是一般的 BQ。{ "require": { "google/cloud": "^0.99.0" }}
AppEngine BigQuery PHP 庫在運行時不隱含?
慕無忌1623718
2022-01-08 17:31:54