ID: 45435 Updated by: [EMAIL PROTECTED] Reported By: lvdgraaff at gmail dot com -Status: Open +Status: No Feedback Bug Type: Filesystem function related Operating System: Mac OS 10.5.3 PHP Version: 5.2.6 New Comment:
No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2008-07-04 21:00:59] lvdgraaff at gmail dot com Description: ------------ Due to a bug with the ftp_*list functions I had to set the TMPDIR manually. [http://bugs.php.net/bug.php?id=28865] But, to my surprise, this doesn't ALWAYS work correctly. I'll demonstrate it with the function sys_get_temp_dir and tmpfile. Details: If the putenv fails, than it doesn't work to direct try it again. I really have to wait for a few seconds, before a retry will be succesfull. When it works again, it does it for a few minutes. I use PHP 5.2.5, but I saw no issues in the changelog witch seem to be related to this. Reproduce code: --------------- <? putenv("TMPDIR=/Users/lvdgraaff/Web/www/compile/tmp"); echo "GET ENV: \t" . getenv("TMPDIR") . "\n"; echo "SGTD: \t\t" . sys_get_temp_dir() . "\n"; print_r(tmpfile()); NOTE: this was the only code in the whole file Expected result: ---------------- GET ENV: /Users/lvdgraaff/Web/www/compile/tmp SGTD: /Users/lvdgraaff/Web/www/compile/tmp Resource id #2 NOTE: I get this, most of the time, but not ALL the time. Actual result: -------------- GET ENV: /Users/lvdgraaff/Web/www/compile/tmp SGTD: /var/folders/4T/4TDJmSQYGV04rPNp5PKZ2++++TI/-Tmp-/ (note: no resource, but an empty line!) SOMETIMES I get this result. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45435&edit=1