| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Per wikitech-l consensus:
https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html
Notes:
* Disabled CallTimePassByReference due to false positives (T127163)
Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Completely broke the script for me.
<TimStarling> MaxSem: that was a pretty crazy change
<TimStarling> fancy trying to detect the end of a statement by shelling out to detect parse errors
<TimStarling> maybe just revert that?
<TimStarling> we can probably do a better job with a few regexes
<TimStarling> I wonder how php -a does it
This reverts commit f0ae292da7ef0673b30c68b4a6f3789b2eea8464.
Change-Id: I16c9c200dc3f4db55cecc23aaa0d9ff55504c19d
|
|
|
|
| |
Change-Id: I9f4664bde6bea6f0e1dca0f4623553b9e849c83b
|
|
|
|
| |
Change-Id: I5f215ab2275333b329406ca7dda7b12fc0b9b6ec
|
|
|
|
|
|
|
|
| |
Fix for Id3aa87cfa0 (2537ca2).
The "$" is for the end of the string, not for a variable.
Change-Id: I2d262582644b903992dc621079ea5a6a04d7af70
|
|
|
|
|
|
|
|
| |
Use globals with less-common names so that variables created by the
command line are less likely to conflict with the ones used by the
eval.php loop.
Change-Id: Id3aa87cfa039eb7555f44e17134c7cdbb5f25cc1
|
|
|
|
| |
Change-Id: I0839678e3dec64a709c0fe8808329268f36486d2
|
|
|
|
|
|
| |
PHP has had an interactive mode since 5.1.0.
Change-Id: I5ecc35ca6c4911b4fbc8eb17866997d931c5a97d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The former is only really used to refer to the older hphp compiler.
Now all docs pretty much exclusively are referring to HHVM and
that's the project's name going forward.
While we're here, swap HPHP_VERSION for HHVM_VERSION. Either work,
but the latter is more correct.
Only affected extension (in Git or SVN) is GWToolset, fixing in
I3a490ef.
Change-Id: I81e4ce5d14e344e67045050261f91b3c0159f222
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Follows-up I1343872de7, Ia533aedf63 and I2df2f80b81.
Also updated usage in text in documentation and the
installer LocalSettingsGenerator.
Most of them were handled by this regex:
- find: (require|include|require_once|include_once)\s*\(\s*(.+?)\s*\)\s*;$
- replace: $1 $2;
Change-Id: I6b38aad9a5149c9c43ce18bd8edbab14b8ce43fa
|
|
|
|
|
|
|
|
|
|
|
|
| |
By PSR2 PHP Standard, the files should ends with exactly one newline.
Some of our files have 2 or more and some other were missing a newline.
Fix almost all occurences of CodeSniffer sniff:
PSR2.Files.EndFileNewline.TooMany
I have not fixed the selenium files, I believe we will drop them.
Change-Id: I89fca8c1786fee94855b7b77bb0f364001ee84b6
|
|
|
|
| |
Change-Id: I00f369641320acd7f087427ef031f3ee7efa0997
|
|
|
|
|
|
| |
We can now do this since we finally switched to PHP 5.3 for MW 1.20 and get rid of the silly dirname(__FILE__) stuff :)
Change-Id: Id9b2c9cd2e678197aa81c78adced5d1d31ff57b1
|
|
|
|
|
|
|
| |
the global context. See r54839
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/108942
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/108777
|
|
|
|
|
|
|
|
|
|
|
| |
Change require to require_once in commandLine.inc
Make eval.php require an absolute path rather than just one in itself
Simplify if statement
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/108770
|
|
|
|
|
|
|
|
|
|
| |
say when generating a PHP script
Is apparently meant to strip an initial line from PHP script files being piped in, but is insufficient to actually catch all cases.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/107952
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/107055
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This happen when you are sending to eval.php a php file. The first line
is the string '<?php' which is passed to eval(). Boom!
This patch skip that string.
Example usage:
$ cat somefile.php
<?php
echo "Working!\n";
$
$ cat somefile.php | php maintenance/eval.php
Working!
$
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/107054
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/101110
|
|
|
|
|
|
|
| |
disabled (but exists). While we're at it, make things work for HipHop too.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/93789
|
|
|
|
|
|
|
|
|
| |
Patches by Yuvi Panda
From (bug 28583) Remove all /* private */ declarations in MediaWiki core
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/86363
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
cache hits.
* Work around HipHop issue 314 (volatile broken) and issue 308 (no compilation detection) by adding some large and ugly compilation detection code to WebStart.php and doMaintenance.php.
* Provide an MW_COMPILED constant which can be used to detect compiled mode throughout the codebase.
* Introduced wfIsHipHop(), which detects either compiled or interpreted mode. Used this to work around unusual eval() return value in eval.php.
* Work around lack of ini_get() in Maintenance.php, by duplicating wfIsHipHop().
* In Maintenance::shouldExecute(), accept "include" as an inclusion function name, since all kinds of inclusion give this string in HipHop.
* Introduced new class MWInit, which provides some static functions in the pre-autoloader environment.
* Introduced MWInit::compiledPath(), which provides a relative path for invoking a compiled file, and MWInit::interpretedPath(), which provides an absolute path for interpreting a PHP file. Used these new functions in the appropriate places.
* When we are running compiled code, don't include files which would generate duplicate class, function or constant definitions. Documented the new requirements on the contents of Defines.php and UtfNormalDefines.php.
* In HipHop compiled mode, it's not possible to have executable code in the same file as a class definition.
** Moved MimeMagic initialisation to the constructor.
** Moved Namespace.php global variable initialisation to Setup.php.
** Moved MemcachedSessions.php initialisation to the caller in GlobalFunctions.php.
** Moved Sanitizer.php constants and global variables to static class members. Introduced an accessor function for the attribs regex, as a new place to put code formerly at file level.
** Moved Language.php initialisation of $wgLanguageNames to Language::getLanguageNames(). Removed the global variable, marked "private" since forever.
* In two places: don't use error_log() with type=3 to append to a file, HipHop doesn't support it. Use file_put_contents() with FILE_APPEND instead.
* Work around the terrible breakage of class_exists() by using MWInit::classExists() instead in various places. In WebInstaller::getPageByName(), the class_exists() was marked with a fixme comment already, so I replaced it with an autoloader solution.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/85327
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/78508
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Cripple the old installer (entry point is gone, supporting code immediately exits). Keeping the latter for reference still :)
* Move posix_isatty() wrapper to Maintenance.php, all CLI scripts include this
* Clarify docs on archive() deprecation and removal - hasn't been used going back thru 1.15
* Clarify docs on dbsource() deprecation and removal - was in wide use thru 1.15. 1.16 removed all extension usages
* Move the two PHP bug tests to a file with the other installer files, moved them to more logical places in new install/update sequence
* Remove mw_have_dl/mw_get_session_save_path, zero callers
* Move readconsole() and helpers to be a static method on Maintenance, no extensions have used it since 1.15 either
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/76220
|
|
|
|
|
|
|
| |
cwd. Also add it to svnignore.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/72286
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/72108
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/66751
|
|
|
|
|
|
|
|
|
|
|
| |
Removes the extension dependency on non-windows for parserTests.
Currently used on install-utils.inc readconsole(), eval.php and parserTests.inc
Maintenance scripts receive it via commandLine.inc -> Maintenance.php .. doMaintenance.php -> install-utils.inc
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/64938
|
|
|
|
|
|
|
| |
merge), these changes totally broke eval.php due to the change in scope, from global to function.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/54839
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/54653
|
|
|
|
|
|
|
| |
commandLine.inc/Maintenance.php using the full path every time.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/54312
|
|
|
|
|
|
|
|
|
|
|
| |
* Docs have been updated to indicate the standard on how to write maintenance scripts (MW.org docs will follow) Have ported vast majority of maintenance scripts to new format. Remaining ones (mostly FiveUpgrade-related) are a bit more tricky. commandLine.inc is untouched for now. Many have gotten code-style updates as well. Deleted .inc files were only used by their .php counterparts, and have been merged into single files.
* (bug 11867) Lock error on redirect table when running orphans.php
* (bug 16322) Allow maintenance scripts to accept DB user/pass over input or params
* (bug 18566) Maintenance script to un/protect pages
* initStats overhaul, now uses class SiteStatsInit. Also fixes bug 18930
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/54225
|
|
|
|
|
|
|
|
| |
Seems to have broken a bunch of stuff. Don't commit giant non-critical changes that break Setup.php and all maint scripts. Thanks!
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/52340
|
|
|
|
|
|
|
|
|
|
|
|
| |
* (bug 16322) Allow maint scripts to accept DB user/pass over input or params if no AdminSettings.php
* (bug 18768) Remove AdminSettings.php from MediaWiki core
* (bug 19157) createAndPromote error on bad password
* (bug 14201) Create AdminSettings.php during wiki installation, in the same way as LocalSettings.php
* Introduce new Maintenance class framework and port a good number of scripts over; the ones that are left are a little more complicated. Read the docs.
* Not deleting "unused" files yet, don't want to break everything at once :)
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/52336
|
|
|
|
|
|
|
| |
from one invocation to another
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/37926
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/35098
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/32855
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
balancers and connecting to foreign DBs.
* Wrote two concrete implementations. LBFactory_Simple is for general installations. LBFactory_Multi will replace the runtime configuration used on Wikimedia and allow load-balanced connections to any DB.
* Ported Special:Userrights, CentralAuth and OAI audit to the LBFactory system.
* Added ForeignDBViaLBRepo, a file repository which uses LBFactory.
* Removed $wgLoadBalancer and $wgAlternateMaster
* Improved the query group concept to allow failover and lag control
* Improved getReaderIndex(), it will now try all servers before waiting, instead of waiting after each.
* Removed the $fail parameter to getConnection(), obsolete.
* Removed the useless force() function.
* Abstracted the replication position interface to allow for future non-MySQL support.
* Rearranged Database.php. Added a few debugging features.
* Removed ancient benet-specific hack from waitForSlave.php
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/32578
|
|
|
|
|
|
|
| |
mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.)
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/23531
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/19502
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/13459
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/12472
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/11443
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/10828
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/9483
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/8285
|
|
|
|
|
|
|
|
|
| |
* output data returned by the eval; prints strings and numbers directly, var_dump()s arrays and objects
* if no returned data, print a line break. This makes things easier when doing 'echo' and you forget to add one yourself.
* Add some documentation comments
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/6265
|
|
|
|
|
|
|
| |
archives in subpackage "maintenanceArchive"
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/5060
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/4059
|