Re: cvs: php-src(PHP_5_2) /ext/standard/tests/file
| From: | Antony Dovgal | Date: | Thu, 09 Aug 2007 22:53:47 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_2) /ext/standard/tests/file | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-45821@lists.php.net to get a copy of this message | ||
ext/standard/tests/file/tempnam_variation2.phpt fails in ZTS mode.
I would suggest creating separate test case for "." path and disable it when ZTS is enabled.
The problem is that PHP's chdir() in ZTS doesn't really do chdir(), 'cause it would affect whole process.
So mkstemp() creates temp files in cwd of the process, not cwd of the thread.
I'll meditate on creating thread-safe wrapper for mkstemp()/mktemp() though..
On 09.08.2007 07:34, Raghubansh Kumar wrote:
kraghuba Thu Aug 9 03:34:00 2007 UTC
Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/file tempnam_variation3-win32.phpt tempnam_variation1.phpt tempnam_variation2.phpt
--
Wbr,
Antony Dovgal