-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working with temp files #67
Comments
Is this bug documented somewhere? Is it specific to PHP 5.5(.30)? A quick test on PHP 5.3.3 (*nix) and PHP 5.4.7 (Win) showed no problems: |
It outputs I have only tried this out on PHP 5.5.X. |
"false" is an unexpected output from that line -- it should say either readable or not-readable and confirmation of the temp filename that's generated. Perhaps this code is more explicit:
When you have time later to do some debugging it would be appreciated. After a few minutes of searching I can't find any other reports of the problem you describe with tempnam. At this point my speculation is that tempnam() is returning false for you. getID3 attempts to auto-detect the appropriate system temp directory in which to create temp files, but if that's failing for you there is an override line you can uncomment in getid3.php line 63 where you can enter a temp directory you do have read/write access to. |
Sorry about that, my response was the Anyways, I ran a full test, the temp file can we written, read and copied to a different location (on the local file system), and so on, but will always return Here's the result from your code block as well.
It's a PHP issue, not the |
I think Your analysis and code suggestions are welcome. |
Closing issue for now. If you have future analysis or suggestions you wish to post, please do so. |
The following functions in PHP fail to provide the correct result with files created using
tempnam(…)
functionImagine a file is being read into a tempfile from the internet, getID3 will fail to process it.
PHP 5.5.30
The text was updated successfully, but these errors were encountered: