Date: 03/15/00
- Next message: Sascha Schumann: "Re: [PHP-DEV] Re: Current working directory and multi-threaded environments"
- Previous message: rubys <email protected>: "Re: [PHP-DEV] Re: Current working directory and multi-threaded environments"
- In reply to: rubys <email protected>: "Re: [PHP-DEV] Re: Current working directory and multi-threaded environments"
- Next in thread: rubys <email protected>: "Re: [PHP-DEV] Re: Current working directory and multi-threaded environments"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, 15 Mar 2000 rubys <email protected> wrote:
>
>
> >We are talking about reacting (getcwd) to an action by the server (chdir).
>
> That's not how I interpreted Andi's proposal.
I guess I wasn't clear.
My proposal was not to do any chdir()'s (nor getcwd()'s) anymore so that
as you said, multiple threads can run in parallel correctly. What I want
to do is emulate the chdir() behavior, or in a more general sense the
current working directory behavior by saving the current working directory
per-thread as a string and working with that everywhere. A call to our new
virtual_chdir() function would change that string to reflect the new
working directory and would not actually call the chdir() system call.
virtual_getcwd() therefore, would return the value of the current working
directory string and not the result of the system call getcwd().
Andi
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Sascha Schumann: "Re: [PHP-DEV] Re: Current working directory and multi-threaded environments"
- Previous message: rubys <email protected>: "Re: [PHP-DEV] Re: Current working directory and multi-threaded environments"
- In reply to: rubys <email protected>: "Re: [PHP-DEV] Re: Current working directory and multi-threaded environments"
- Next in thread: rubys <email protected>: "Re: [PHP-DEV] Re: Current working directory and multi-threaded environments"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

