Commit graph

39 commits

Author SHA1 Message Date
Alexandre Emsenhuber
56de6f1b62 doc tweaks: link to http://www.php.net instead of mirrors. 2008-03-27 18:52:08 +00:00
Brion Vibber
983e2d0ff7 * (bug 11355) Fix false positives in Safe Mode and other config detection
when boolean settings are disabled with 'Off' via php_admin_value/php_value
2007-09-17 19:44:15 +00:00
Rob Church
a870a6c74b (bug 11013) Make sure dl() is available before attempting to use it to check available databases in installer...this detection code is quite crap and could do with some work; got a partial patch, but a few bits (the UI, JavaScript) are broken...committing this to fix the *immediate* problem 2007-08-22 15:05:30 +00:00
Brion Vibber
13b739ec46 * (bug 10387) Detect and handle '.php5' extension environments at install time
Patch by Edward Z. Yang.
2007-06-28 14:50:06 +00:00
Rob Church
b4d4e58d17 * (bug 9820) session.save_path check no longer halts installation, but warns of possible bad values
* (bug 9978) Fixed session.save_path validation when using extended configuration format, e.g. "5;/tmp"
2007-06-05 00:20:56 +00:00
Antoine Musso
0d48107e1b Fix 9220: remove obsoletes functions in install-utils.inc 2007-04-16 14:09:35 +00:00
Nick Jenkins
f88c771756 The war on redundant ampersand usage!
* Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );"
* convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();"

For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too.

Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode.
2007-01-22 23:50:42 +00:00
Brion Vibber
915e588ea4 * (bug 1000) Clarify warning about memory_limit in installer
* Suppress PHP warning about set_time_limit in installer when safe mode is on
2007-01-15 23:16:08 +00:00
Brion Vibber
dc35c3b933 * Use raw file descriptor in posix_isatty() check to avoid warning on
Linux systems with at least some versions of PHP

For some reason posix_isatty(STDIN) prints a warning on Linux about being unable to seek, though it gives the right return value and has no obvious ill effects otherwise.
No such warning appears on Mac OS X.
Using the raw file descriptor number (0 for stdin) seems to work, and is already used in the parser test framework where it checks stdout (1) this way.
2006-12-29 08:16:22 +00:00
Brion Vibber
6c3c1786e9 * Run PHP install version checks on update.php so command-line updaters see
new version requirements
* Do a check for the PHP 5.0.x 64-bit bug, since this is much more disruptive
  as of MW 1.8 than it used to be. Install or upgrade now aborts with a
  warning and a request to upgrade.
2006-11-11 16:59:32 +00:00
Tim Starling
68669f6932 Workaround for http://bugs.php.net/bug.php?id=39215 2006-10-22 01:32:11 +00:00
Greg Sabino Mullane
50aee7755a Move database checks toconfig/index.php 2006-06-27 14:16:21 +00:00
Brion Vibber
a41764dc3f We require PHP 5 now, make sure the installer requires this.
Uncertain of the exact minimum version requirement; checking for 5.0.0+
2006-05-10 19:58:17 +00:00
Brion Vibber
796b81b84d Revert the rest of r13645; totally broken, tries to call an installer-specific function before it's included, and why's it in an include file anyway? 2006-04-17 09:00:55 +00:00
Antoine Musso
e032a4fb04 Some minor changes to the installer after I reinstalled MW from scracth:
* show realpath when asking to chmod g+w ./config
* hide errors returned when trying to dl() mysql.so / pgsql.so
* cleanly outputbuffer when dieing out
2006-04-14 20:58:25 +00:00
Brion Vibber
3c9cf267a1 * (bug 385) Installer support for PostgreSQL, fixes for PG compatibility
Applied from: http://bugzilla.wikimedia.org/attachment.cgi?id=1517&action=view
I haven't tested it with PG personally yet, but it doesn't appear to interfere with other functionality.
2006-04-12 08:15:28 +00:00
Tim Starling
cf4f3da185 Moved the bulk of dbsource() to Database.php. Added support for updating wikis with $wgSharedDB set (installing is still not supported) 2006-01-17 11:48:18 +00:00
Brion Vibber
266d41f165 * Added wfDie() wrapper, and some manual die(-1), to force the return code
to the shell to return nonzero when we crap out with an error.
2006-01-14 02:49:43 +00:00
Brion Vibber
0ea90569bd * (bug 2569) Use PATH_SEPARATOR instead of trying to guess based on DIRECTORY_SEPARATOR (was wrong on NetWare)
* Require PHP 4.3.2 or higher strictly now.
2005-11-10 08:06:04 +00:00
Tim Starling
5b83a481db Fix for some odd problems when reading from a non-tty 2005-11-01 00:57:13 +00:00
Tim Starling
bc17c6a985 Added isatty() check to readconsole() 2005-09-08 08:49:04 +00:00
River Tarnell
b817c0c15f merge ORACLE_WORK. sorry, this may break some parts of MySQL, i did not test extensively. 2005-08-02 13:35:19 +00:00
River Tarnell
3993f9357f typo 2005-07-07 02:31:03 +00:00
River Tarnell
c3a7c7a4e1 error handling is your friend 2005-07-07 02:29:55 +00:00
Brion Vibber
fd80bf5b38 * (bug 2234) allow special chars in database passwords during install 2005-05-29 10:20:21 +00:00
Tom Gilder
dcfb2251cb Single quotes, just for the hell of it 2005-01-31 20:35:47 +00:00
Brion Vibber
f00cd55746 Add basic support for table prefixes to the installer. (Probably will fail on upgrades yet.) .sql files should still be usable 'raw' on a wiki with no prefix. 2004-12-01 13:15:13 +00:00
Brion Vibber
2f60c52a3c Use ob_implicit_flush() rather than ob_end_flush() in install-utils.
Ending the buffering completely will kill all subsequent output when
PHP is globally configured to run through a gzip compression handler.

Also, suppress the warning in LocalSettings.php when PHP tells us we
can't run the gzip filter twice.
2004-08-18 05:45:25 +00:00
Tim Starling
ac549401d4 * Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Tim Starling
b96b707efa OOP calling convention for database functions. DBMS abstraction implemented by means of functions instead of global variables, PostgreSQL object converted to a subclass instead of a drop-in replacement. Also the beginnings of a flexible table name feature. 2004-07-10 03:09:26 +00:00
Tim Starling
0c3553b7d4 better readconsole() function, moved from mcc.php and eval.php 2004-06-13 04:18:09 +00:00
Tim Starling
1680f708a3 Outputting MySQL's error message in dbsource() 2004-05-03 03:20:58 +00:00
Brion Vibber
3c216b0c5b Make sure output buffering is off for install scripts 2004-03-13 06:29:39 +00:00
Brion Vibber
9e53bfc81c Imported the register_globals hack from REL1_2. Also starting work on
elimination of the use of import_request_variables (which gives us all
the insecurity of register_globals). Uncomment the define of DEBUG_GLOBALS
in index.php to turn on extra error reporting and trace down use of
uninitialized variables and nassssty globals.

Also rearranged the magic_quotes fixing, may not yet cover everything...
2004-03-08 01:51:32 +00:00
Brion Vibber
27dfac3ff7 Fix for 904065: use .php instead of .phtml extension by default 2004-02-27 03:59:21 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Tim Starling
3c96949682 * Recent Changes improvements: object oriented back end, move page annotation and (untested) message queue feed.
* Misc. bugs fixed in DatabaseFunctions.php and Skin.php.
* install-utils, install and update utilise Database objects instead of handling their own connections
* schema change for RC improvement -- added rc_type, rc_moved_to_title and rc_moved_to_ns
2004-01-17 05:49:39 +00:00
Tim Starling
8d5959de56 Committing Evan's patches (with some modifications), reintroducing class=internal for ordinary links 2003-11-22 12:30:13 +00:00
Brion Vibber
fcddbfd724 Updates and mergine to install/update 2003-11-20 03:11:42 +00:00