Brent Shaffer

Results 413 comments of Brent Shaffer

I am was receiving the following error when running the deployment: ``` PHP Fatal error: Uncaught Error: Class 'PHPUnit\Framework\TestCase' not found in /workspace/test/IntegrationTest.php:28 Stack trace: #0 /workspace/preload.php(12): require_once() #1 {main}...

@grayside no benchmarks, no, but we should definitely do some sanity-checking here. In theory, it should provide significant improvements on all requests, as the entire classmap is loaded into memory...

Hmm, this may be an issue with compatibility between Google Cloud Functions and our `google/cloud-logging` library. Have you tried using `stdout` for logging, instead of using `google/cloud-logging`? I'll look into...

@saranshdhingra The primary purpose is to illustrate how to perform whatever function the sample is there to illustrate. Surrounding the sample in an object and including a trait will make...

This looks good, although shouldn't it be this instead, since we want the final iteration of it? ```php $queryResult = $response->getQueryResult() ?: $queryResult ```

The cache path can be set to `/tmp`, which is writeable and ephemeral (it will be destroyed once the instance shuts down). Which sample are you running?

If you're running Symfony, put the following in your `Kernel` class in `src/Kernel.php`: ```php public function getCacheDir() { if ($this->environment === 'prod') { return sys_get_temp_dir(); } return parent::getCacheDir(); } public...

Thank you! ```sh $ echo $PROMPT_COMMAND __bp_precmd_invoke_cmd; __bp_interactive_mode ```

What GCP product are you deploying to? Can you provide steps for me to reproduce the error? I can try deploying the sample here to the GCP product you're using...