Re: Re: Current working directory and multi-threaded environments
| From: | Andi Gutmans | Date: | Thu, 16 Mar 2000 19:16:09 +0000 |
| Subject: | Re: Re: Current working directory and multi-threaded environments | ||
| References: | 1 2 3 | Groups: | php.dev php.dev |
| Request: | Send a blank email to php-dev+get-16905@lists.php.net to get a copy of this message | ||
At 07:34 PM 3/16/00 +0100, Sascha Schumann wrote:
Windows doesn't seem to have strtok_r but its strtok() is thread-safe. It can use our own version of strtok_r then. OK. Don't forget that on Windows the current working directory WILL be initialized to d:\foobar so we just have to add to this code that when using \foo\bar we should keep the driver letter. I couldn't find a way to abstract that, so we still have one #if WINDOWS left in the function body.I think that's fine.
OK so I won't do these fixes and will wait to see what you do. Let me know what you think.I'm really glad about this progress we have made. The virtual_chdir() function actually is exactly what we need for the virtual_expand_filepath() function except for the check at the end of it. It should probably be a separate function wrapped by both virtual_chdir() and virtual_expand_filepath(), where virtual_chdir() has the additional check you added. Great team work IMO. Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/