You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cli, we had some troubles, so I refactored the code to allow only once instance. But with a web SAPI, it does not work. On the very first request, it works, but on the second one it does not.
I tested with the cli-server SAPI, and FPM SAPI
PHP Version
PHP 8.4.7 (cli) (built: May 9 2025 06:54:08) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.7, Copyright (c) Zend Technologies
with Zend OPcache v8.4.7, Copyright (c), by Zend Technologies
with blackfire v1.92.32~linux-x64-non_zts84, https://blackfire.io, by Blackfire
Operating System
Ubuntu 22.04.5 LTS
The text was updated successfully, but these errors were encountered:
Well, yes. That state is global, process bound. The PHP runtime has no idea of the lifecycle of any FFI-included libraries. The function of that library here seems to assume that it's only called once per process. That's your responsibility to maintain, not PHP's.
Description
The following code:
Resulted in this output:
But I expected this output instead:
We found this issue via jolicode/JoliNotif#120
In cli, we had some troubles, so I refactored the code to allow only once instance. But with a web SAPI, it does not work. On the very first request, it works, but on the second one it does not.
I tested with the cli-server SAPI, and FPM SAPI
PHP Version
Operating System
Ubuntu 22.04.5 LTS
The text was updated successfully, but these errors were encountered: