--- On Fri, 8/21/09, Andrew Garrett <[email protected]> wrote:
> Yes, this is where we started because this is the status
> quo. What I
> was describing is how it's done now.
Is maintaining the status quo really desirable? Look at the extensions
directory. It currently has ~400 extension sub-directories. If you wanted to
reorganize this so there is some sort of logic to it (e.g., first cut - put
command line extensions in one directory and hook based extensions in another)
you would have to change a lot of code so the computation of $IP by some
extensions is correct.
How about this. When you run php from the command line, there is a flag -d
defined as: "foo[=bar] Define INI entry foo with value 'bar'". For those
extensions that run from the command line you could require callers to include
a value for the php "include_path". This value would be the value in php.ini
appended with the value of a directory containing the simple MWInit.php file
provided in my message of Aug. 11, 9:57AM. Command line extensions could then
call MWInit() to get MW root.
I just tried this and it worked. It would fix the problem for at least command
line utilities.
Dan
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l