Search code examples
google-app-enginephp-7.3opencensus

Google App Engine error when use opencensus ext


WARNING: [pool app] child 29 said into stderr: "php-fpm: pool app: symbol lookup error: /opt/php73/lib/x86_64-linux-gnu/extensions/no-debug-non-zts-20180731/opencensus.so: undefined symbol: ZVAL_DESTRUCTOR"

I using GAE env flex. today GAE use php7.3-fpm and i got that error. I check other website in GAE using php7.2-fpm working normally.

How can i fix problem.


Solution

  • Inside your app.yaml you should set the runtime:

    env: flex
    runtime: php
    

    On your composer.json file you should specify the version that you want to use, for example if you want to use php 7.2 instead of 7.3:

    {
        "require": {
            "php": "7.2.*"
        }
    }
    

    It's important to specify said version otherwise the runtime might upgrade inadvertently into a new version as mentioned in the official documentation

    By default, the PHP runtime uses PHP 7.2, but you should explicitly declare your PHP version in the composer.json file to prevent your application from being automatically upgraded when a new version of PHP becomes available.