tschoffelen / php-pkpass

💳 PHP class for creating passes for Wallet on iOS.
https://includable.com
MIT License
908 stars 187 forks source link

Prevent overwriting/deletion of files when multiple passes are generated at the same time #7

Closed mac-cain13 closed 11 years ago

mac-cain13 commented 11 years ago

Hi!

I patched PHP-PKPass with an update so it will put it's temporary files into a unique subdirectory of the tempPath. This will protect the temporary files from being overwritten or deleted when two passes are generated at the same time.

We saw this problem popping up when launching the Kaldi Passbook passes and having some more trafic after OneMoreThing picked it up. :)

Would be great of you can merge this in your codebase!

Cheers, Mathijs