Prevent two E_STRICT warnings when running "php maintenance/update.php" to update...
authorNick Jenkins <nickj@users.mediawiki.org>
Wed, 21 May 2008 04:59:21 +0000 (04:59 +0000)
committerNick Jenkins <nickj@users.mediawiki.org>
Wed, 21 May 2008 04:59:21 +0000 (04:59 +0000)
commit03cd4ad942ea7dee561091838a0798018553e251
tree3bebc62c2e410ef5392f4ae50905f71def3f9d90
parent51ff7e7f107b50801769767a0971d27f1aab3821
Prevent two E_STRICT warnings when running "php maintenance/update.php" to update from 1.12 alpha to 1.13 alpha.

--------------------------------------------------
# php maintenance/update.php

MediaWiki 1.13alpha Updater

Going to run database updates for wikidb
Depending on the size of your database this may take a while!
Abort with control-c in the next five seconds...0

Strict Standards: Type: 8:  Undefined offset:  1 in wiki/includes/Database.php on line 1420
    Database.tableName("ipblocks") # line 1164, file: wiki/includes/Database.php
   Database.tableExists("ipblocks") # line 203, file: wiki/maintenance/updaters.inc
  add_field("ipblocks", "ipb_id", "patch-ipblocks.sql") # line unknown, file: unknown
 call_user_func_array("add_field", Array[3]) # line 1051, file: wiki/maintenance/updaters.inc
do_all_updates(false, true) # line 60, file: wiki/maintenance/update.php

[ ... snip same warning repeated thousands of times ... ]
--------------------------------------------------

... also ... :

--------------------------------------------------
Strict Standards: Type: 8:  Undefined index:  USE INDEX in wiki/includes/Database.php on line 977
   Database.selectSQLText(Array[2], Array[2], Array[3], "Database::select", Array[0], Array[0]) # line 952, file: wiki/includes/Database.php
  Database.select(Array[2], Array[2], Array[3]) # line 32, file: wiki/maintenance/deleteDefaultMessages.php
 deleteDefaultMessages() # line 1077, file: wiki/maintenance/updaters.inc
do_all_updates(false, true) # line 60, file: wiki/maintenance/update.php
--------------------------------------------------
includes/Database.php