From 64cbfd80b5767dd1a53ffe7cb23b717f93c7fbdf Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 10 May 2006 00:16:32 +0000 Subject: [PATCH] * --force-normal parameter on dump scripts to force check for ICU extension --- RELEASE-NOTES | 2 ++ maintenance/backup.inc | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4d7f2696bd..9f114583f4 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -236,6 +236,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 5697) Update for Malay language (ms) * (bug 5890) Update for German language (de) * (bug 5889) Name for Sindhi language should appear as سنڌي +* --force-normal parameter on dump scripts to force check for ICU extension + == Compatibility == diff --git a/maintenance/backup.inc b/maintenance/backup.inc index 6b7150daca..02c158be71 100644 --- a/maintenance/backup.inc +++ b/maintenance/backup.inc @@ -130,6 +130,15 @@ class BackupDumper { case "server": $this->server = $val; break; + case "force-normal": + if( !function_exists( 'utf8_normalize' ) ) { + dl( "php_utfnormal.so" ); + if( !function_exists( 'utf8_normalize' ) ) { + wfDie( "Failed to load UTF-8 normalization extension. " . + "Install or remove --force-normal parameter to use slower code.\n" ); + } + } + break; default: $this->processOption( $opt, $val, $param ); } -- 2.20.1