dan nessett wrote:
> One of the first problems to solve in developing the proposed CPRT
> is how to call a function with the same name in two different MW
> distributions. I can think of 3 ways: 1) use the Namespace facility
> of PHP 5.3, 2) use threads, or 3) use separate process and IPC.
> Since MAMP supports none of these I am off building an AMP
> installation from scratch.

I think if you spent half as much time reading the PHP manual as
posting clueless questions to this list, you would know that neither
of the first two options can work. Namespaces because even if we did
use them, the different versions would necessarily be in the same
namespace, and threads because PHP does not have them (despite
appearances to the contrary noted by Dmitriy Sintsov).

> * Is MW thread safe?

It would be rather hard for MW to not be thread safe, since PHP does
not expose any thread-related functions to the user. It has no
inter-thread communication or data sharing, and no way to create new
threads. It does have threads at the SAPI level, but that's irrelevant
to your current problem.

And please, spare us from your rant about how terrible this is. It's
not PHP's fault that you don't know anything about it.

-- Tim Starling


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to