ID: 45435 Updated by: [EMAIL PROTECTED] Reported By: lvdgraaff at gmail dot com -Status: No Feedback +Status: Feedback Bug Type: Filesystem function related Operating System: Mac OS 10.5.3 PHP Version: 5.2.6 New Comment:
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2008-07-06 01:20:22] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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