FirebirdSQL / php-firebird

Firebird PHP driver
Other
66 stars 15 forks source link

Possible memory issues in master branch #57

Open stavikpetr opened 4 months ago

stavikpetr commented 4 months ago

Recenly, we updated PHP in our product to 8.3 and in the process of doing so, we recompiled interbase extension ourselves from this repository. After updating, we started experiencing rare issues with PHP running out of memory, e.g. during database upgrade. After some investigation, the issue was that we recompiled interbase from this repository from the master branch, and not from the tagged 3.0.1 release. After compiling the 3.0.1 release, the issues are gone.

If I compare the differences in these versions, the only meaningful change is in this commit https://github.com/FirebirdSQL/php-firebird/commit/7a0a740048133abd26debc0ffe5f1652aebfdfbc and that might be the cause of these issues. I do not have unfortunately small reproducible example, but I just wanted to report this to let you know that there are people experiencing issues after (most likely) this fix.