skip to Main Content

PHP 8.0 + Doctrine 2 + Xdebug + Docker.

When the script tries to execute any getter from generated proxy PHP app dies with segmentation fault.

F.e. I have this getter:

    /**
     * {@inheritDoc}
     */
    public function isActive(): bool
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'isActive', []);

        return parent::isActive();
    }

Then I debug it step by step, just after $this->__initializer__ && $this->__initializer__->__invoke($this, 'isActive', []); this lane it will be 502 error.

Edited nginx.conf with all fastcgi timeouts, buffers, proxy timeouts, buffers, etc.

Also I have updated Doctrine 2 to the latest version.

2

Answers


  1. Chosen as BEST ANSWER

    It was because of version of xdebug. On version 3.3.1 there is a bug. I installed 3.1.15 and all ok


  2. I solved not downgrading xDebug, but upgrading PHP (from 8.1 to 8.3).

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search