With this code in place, I can now generate signed pkpass files with PHP 8.2 and openssl 3.x.
It also includes a minor tweak to the code that creates a temp directory which avoids a warning and the need to use @, while still avoiding the race condition, as a separate commit if you want to cherry-pick.
This is a fix for the issue I ran into in https://github.com/chiiya/laravel-passes/issues/16.
I adapted this code from the workaround used in the php-pkpass project but improved it a bit (IMHO!).
With this code in place, I can now generate signed pkpass files with PHP 8.2 and openssl 3.x.
It also includes a minor tweak to the code that creates a temp directory which avoids a warning and the need to use
@
, while still avoiding the race condition, as a separate commit if you want to cherry-pick.