Skip to content
Permalink
Browse files
Merge pull request #129 from wkpark/support-php7
Support php7
  • Loading branch information
wkpark committed Nov 5, 2020
2 parents e6290c1 + d429b98 commit db07a246deb7c4583ff55ce163a8ebc76ec118aa
Showing with 98 additions and 343 deletions.
  1. +1 −2 lib/Gettext/MO.php
  2. +1 −2 lib/Gettext/PO.php
  3. +0 −1 lib/Gettext/TGettext.php
  4. +1 −1 lib/HTTPClient.php
  5. +3 −5 lib/JSON.php
  6. +1 −1 lib/PageIndex.php
  7. +1 −1 lib/cache.text.php
  8. +1 −1 lib/confutils.php
  9. +4 −5 lib/diff3.php
  10. +13 −14 lib/difflib.php
  11. +4 −5 lib/fckpacker.php
  12. +1 −2 lib/indexer.DBA.php
  13. +0 −1 lib/metadata.php
  14. +2 −2 lib/metadb.compact.php
  15. +1 −1 lib/metadb.dba.php
  16. +1 −1 lib/metadb.text.php
  17. +1 −3 lib/openid.php
  18. +1 −1 lib/pagekey.base.php
  19. +1 −1 lib/pagekey.base64url.php
  20. +1 −1 lib/pagekey.compat.php
  21. +1 −1 lib/pagekey.utf8fs.php
  22. +1 −2 lib/rcslite.php
  23. +3 −3 lib/stemmer.ko.php
  24. +1 −1 lib/timer.php
  25. +1 −1 lib/titleindexer.es.php
  26. +1 −1 lib/titleindexer.mysql.php
  27. +1 −1 lib/titleindexer.mysqli.php
  28. +1 −1 lib/titleindexer.sqlite.php
  29. +1 −1 lib/titleindexer.text.php
  30. +0 −1 lib/unicode.php
  31. +1 −2 lib/version.CVS.php
  32. +1 −1 lib/version.Git.php
  33. +1 −1 lib/version.RCS.php
  34. +1 −3 lib/version.RcsLite.php
  35. +0 −1 lib/win32fix.php
  36. +1 −1 monisetup.php
  37. +0 −1 plugin/ABBR.php
  38. +0 −1 plugin/Anchor.php
  39. +0 −1 plugin/Attachment.php
  40. +0 −2 plugin/Attachments.php
  41. +0 −2 plugin/BabelFish.php
  42. +0 −2 plugin/Bar.php
  43. +0 −1 plugin/Blog.php
  44. +0 −1 plugin/BlogArchives.php
  45. +0 −1 plugin/BlogCategories.php
  46. +0 −1 plugin/BlogChanges.php
  47. +0 −1 plugin/Calendar.php
  48. +0 −2 plugin/Cite.php
  49. +0 −1 plugin/Clip.php
  50. +0 −1 plugin/Comment.php
  51. +0 −1 plugin/Diff.php
  52. +0 −1 plugin/Draw.php
  53. +1 −2 plugin/DueDate.php
  54. +0 −2 plugin/Echo.php
  55. +0 −1 plugin/EditToolbar.php
  56. +0 −1 plugin/EngDic.php
  57. +0 −2 plugin/FastSearch.php
  58. +0 −1 plugin/FullSearch.php
  59. +0 −1 plugin/Gallery.php
  60. +0 −1 plugin/GoogleTrans.php
  61. +0 −2 plugin/ISBN.php
  62. +0 −1 plugin/Icon.php
  63. +0 −1 plugin/ImportUrl.php
  64. +1 −1 plugin/Include.php
  65. +0 −1 plugin/Info.php
  66. +0 −1 plugin/InputForm.php
  67. +0 −1 plugin/JME.php
  68. +0 −1 plugin/Keywords.php
  69. +0 −2 plugin/LikePages.php
  70. +0 −1 plugin/LineHeight.php
  71. +0 −1 plugin/MailTo.php
  72. +0 −1 plugin/MathChooser.php
  73. +0 −1 plugin/Media.php
  74. +0 −1 plugin/MoniCalendar.php
  75. +0 −1 plugin/Navigation.php
  76. +0 −2 plugin/OeKaki.php
  77. +0 −1 plugin/PGBR.php
  78. +0 −1 plugin/Play.php
  79. +0 −1 plugin/PluginInfo.php
  80. +0 −2 plugin/RandomBanner.php
  81. +0 −1 plugin/Rating.php
  82. +0 −1 plugin/RecentChanges.php
  83. +0 −1 plugin/SearchPlugin.php
  84. +0 −1 plugin/ShowSmiley.php
  85. +0 −1 plugin/SlideShow.php
  86. +0 −1 plugin/SmileyChooser.php
  87. +0 −1 plugin/SystemInfo.php
  88. +0 −1 plugin/TTFText.php
  89. +0 −1 plugin/Test.php
  90. +0 −1 plugin/TextDict.php
  91. +0 −1 plugin/Tour.php
  92. +0 −2 plugin/TwinPages.php
  93. +0 −2 plugin/UWL.php
  94. +0 −1 plugin/UploadFile.php
  95. +0 −1 plugin/UploadForm.php
  96. +0 −1 plugin/UploadedFiles.php
  97. +0 −1 plugin/UrlMapping.php
  98. +0 −1 plugin/VisualTour.php
  99. +0 −2 plugin/Vote.php
  100. +0 −1 plugin/atom.php
  101. +0 −1 plugin/autogoto.php
  102. +0 −1 plugin/autosave.php
  103. +0 −2 plugin/backup.php
  104. +1 −2 plugin/bbs.php
  105. +0 −2 plugin/blogrss.php
  106. +0 −1 plugin/bookmark.php
  107. +0 −1 plugin/bts.php
  108. +0 −1 plugin/cacheadmin.php
  109. +0 −1 plugin/chat.php
  110. +0 −2 plugin/chmod.php
  111. +0 −1 plugin/css.php
  112. +1 −2 plugin/dot.php
  113. +0 −1 plugin/download.php
  114. +0 −1 plugin/filter.php
  115. +1 −2 plugin/filter/abbr.php
  116. +0 −1 plugin/filter/antispam.php
  117. +0 −1 plugin/filter/cite.php
  118. +0 −1 plugin/filter/fiximgpath.php
  119. +0 −1 plugin/filter/indexer_ko.php
  120. +0 −1 plugin/filter/nforge.php
  121. +0 −1 plugin/filter/sample.php
  122. +1 −2 plugin/filter/simplere.php
  123. +0 −1 plugin/filter/texturize.php
  124. +0 −1 plugin/fixmoin.php
  125. +1 −3 plugin/foaf.php
  126. +0 −2 plugin/format.php
  127. +0 −1 plugin/freemind.php
  128. +0 −1 plugin/function/returnHello.php
  129. +0 −1 plugin/function/toc.php
  130. +0 −1 plugin/home.php
  131. +0 −1 plugin/html2pdf.php
  132. +1 −1 plugin/identicon.php
  133. +0 −1 plugin/latex2png.php
  134. +0 −1 plugin/login.php
  135. +0 −2 plugin/man_get.php
  136. +0 −1 plugin/markup.php
  137. +0 −1 plugin/minilogin.php
  138. +0 −2 plugin/moniedit.php
  139. +0 −2 plugin/moztab.php
  140. +0 −1 plugin/msgfmt.php
  141. +0 −1 plugin/msgtrans.php
  142. +0 −2 plugin/new.php
  143. +0 −1 plugin/notitle.php
  144. +0 −1 plugin/pageview.php
  145. +0 −1 plugin/print.php
  146. +0 −2 plugin/processor/abc.php
  147. +0 −1 plugin/processor/bbcode.php
  148. +0 −1 plugin/processor/blog.php
  149. +0 −1 plugin/processor/bts.php
  150. +0 −1 plugin/processor/chat.php
  151. +0 −2 plugin/processor/diff.php
  152. +0 −2 plugin/processor/dot.php
  153. +0 −1 plugin/processor/enscript.php
  154. +0 −1 plugin/processor/freemind.php
  155. +0 −1 plugin/processor/geshi.php
  156. +0 −2 plugin/processor/gnuplot.php
  157. +0 −1 plugin/processor/hello.php
  158. +0 −1 plugin/processor/itex.php
  159. +0 −1 plugin/processor/jade.php
  160. +0 −1 plugin/processor/jmol.php
  161. +0 −1 plugin/processor/latex.php
  162. +0 −1 plugin/processor/linuxdoc.php
  163. +0 −1 plugin/processor/live3d.php
  164. +0 −1 plugin/processor/man.php
  165. +2 −3 plugin/processor/markdown.php
  166. +0 −2 plugin/processor/metapost.php
  167. +0 −1 plugin/processor/mimetex.php
  168. +1 −1 plugin/processor/mixdown.php
  169. +1 −2 plugin/processor/monimarkup.php
  170. +1 −1 plugin/processor/parsedown.php
  171. +0 −2 plugin/processor/pic.php
  172. +0 −1 plugin/processor/po.php
  173. +0 −1 plugin/processor/pre.php
  174. +0 −2 plugin/processor/python.php
  175. +0 −1 plugin/processor/randomquote.php
  176. +0 −1 plugin/processor/sfd.php
  177. +1 −1 plugin/processor/table.php
  178. +1 −2 plugin/processor/text_xml.php
  179. +1 −3 plugin/processor/textile.php
  180. +0 −2 plugin/processor/tpl_.php
  181. +0 −1 plugin/processor/vim.php
  182. +0 −1 plugin/processor/xslt.php
  183. +0 −1 plugin/processor/xsltproc.php
  184. +0 −2 plugin/quicklinks.php
  185. +0 −1 plugin/rawblog.php
  186. +0 −1 plugin/rawtext.php
  187. +0 −1 plugin/rcs.php
  188. +0 −2 plugin/rcspurge.php
  189. +0 −1 plugin/rdf_blog.php
  190. +0 −1 plugin/referer.php
  191. +0 −2 plugin/restore.php
  192. +0 −1 plugin/revert.php
  193. +1 −3 plugin/rss.php
  194. +0 −1 plugin/rss_blog.php
  195. +0 −1 plugin/rss_rc.php
  196. +0 −1 plugin/scrap.php
  197. +1 −2 plugin/security/acl.php
  198. +1 −2 plugin/security/authbasic.php
  199. +2 −3 plugin/security/community.php
  200. +1 −3 plugin/security/desktop.php
  201. +1 −3 plugin/security/htaccesslogin.php
  202. +1 −3 plugin/security/mustlogin.php
  203. +1 −3 plugin/security/needtologin.php
  204. +1 −3 plugin/security/nforge.php
  205. +1 −3 plugin/security/robot.php
  206. +1 −2 plugin/security/sample.php
  207. +1 −3 plugin/security/userbased.php
  208. +1 −3 plugin/security/wikimaster.php
  209. +0 −1 plugin/sendping.php
  210. +0 −2 plugin/subscribe.php
  211. +0 −1 plugin/theme.php
  212. +0 −1 plugin/ticket.php
  213. +0 −1 plugin/trackback.php
  214. +0 −2 plugin/urlencode.php
  215. +1 −1 plugin/user/g4.php
  216. +1 −1 plugin/user/nforge.php
  217. +1 −1 plugin/user/xe17.php
  218. +0 −2 plugin/userform.php
  219. +0 −1 plugin/userinfo.php
  220. +0 −1 plugin/whois.php
  221. +7 −8 wiki.php
  222. +1 −2 wikihttpd.php
  223. +2 −3 wikilib.php
  224. +0 −2 wikismiley.php
@@ -56,7 +56,7 @@ class File_Gettext_MO extends File_Gettext
* @return object File_Gettext_MO
* @param string $file path to GNU MO file
*/
function File_Gettext_MO($file = '')
function __construct($file = '')
{
$this->file = $file;
}
@@ -332,4 +332,3 @@ function save($file = null)
return true;
}
}
?>
@@ -38,7 +38,7 @@ class File_Gettext_PO extends File_Gettext
* @return object File_Gettext_PO
* @param string path to GNU PO file
*/
function File_Gettext_PO($file = '')
function __construct($file = '')
{
$this->file = $file;
}
@@ -139,4 +139,3 @@ function save($file = null)
return true;
}
}
?>
@@ -277,4 +277,3 @@ function raiseError($error = null, $code = null)
return exit($code);
}
}
?>
@@ -65,7 +65,7 @@ class HTTPClient {
*
* @author Andreas Gohr <andi@splitbrain.org>
*/
function HTTPClient(){
function __construct(){
$this->agent = 'Mozilla/4.0 (compatible; HTTP Client; '.PHP_OS.')';
$this->timeout = 15;
$this->cookies = array();
@@ -130,7 +130,7 @@ class Services_JSON
* bubble up with an error, so all return values
* from encode() should be checked with isError()
*/
function Services_JSON($use = 0)
function __construct($use = 0)
{
$this->use = $use;
}
@@ -780,7 +780,7 @@ function isError($data, $code = null)

class Services_JSON_Error extends PEAR_Error
{
function Services_JSON_Error($message = 'unknown error', $code = null,
function __construct($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{
parent::PEAR_Error($message, $code, $mode, $options, $userinfo);
@@ -794,13 +794,11 @@ function Services_JSON_Error($message = 'unknown error', $code = null,
*/
class Services_JSON_Error
{
function Services_JSON_Error($message = 'unknown error', $code = null,
function __construct($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{

}
}

}

?>
@@ -18,7 +18,7 @@ class PageIndex extends TitleIndexer_Text {
*/
var $chunksize = 2000;

function PageIndex($name = 'pageindex')
function __construct($name = 'pageindex')
{
global $Config;

@@ -74,7 +74,7 @@ class Cache_Text {
*/
var $hash = 'md5';

function Cache_Text($arena = 'default', $cache_info = false)
function __construct($arena = 'default', $cache_info = false)
{
global $Config;

@@ -8,7 +8,7 @@
*/

class Config_base {
function Config_base($configfile = 'config.php', $vars = array())
function __construct($configfile = 'config.php', $vars = array())
{
if (file_exists($configfile)) {
$this->config = $this->_getConfig($configfile, $vars);
@@ -14,7 +14,7 @@
class _Diff3_Block {
var $type = 'diff3';

function _Diff3_Block ($orig = false, $final1 = false, $final2 = false) {
function __construct ($orig = false, $final1 = false, $final2 = false) {
$this->orig = $orig ? $orig : array();
$this->final1 = $final1 ? $final1 : array();
$this->final2 = $final2 ? $final2 : array();
@@ -43,7 +43,7 @@ function is_conflict () {
class _Diff3_CopyBlock extends _Diff3_Block {
var $type = 'copy';

function _Diff3_CopyBlock ($lines = false) {
function __construct ($lines = false) {
$this->orig = $lines ? $lines : array();
$this->final1 = &$this->orig;
$this->final2 = &$this->orig;
@@ -59,7 +59,7 @@ function is_conflict () {
}

class _Diff3_BlockBuilder {
function _Diff3_BlockBuilder () {
function __construct () {
$this->_init();
}

@@ -104,7 +104,7 @@ function finish() {


class Diff3 {
function Diff3 ($orig, $final1, $final2) {
function __construct ($orig, $final1, $final2) {
$eng = new _DiffEngine;
$this->ConflictingBlocks = 0; //Conflict counter
$this->blocks = $this->__diff3($eng->diff($orig, $final1),
@@ -211,4 +211,3 @@ function merged_output($label1 = false, $label2 = false) {
// c-hanging-comment-ender-p: nil
// indent-tabs-mode: nil
// End:
?>
@@ -35,7 +35,7 @@ function nfinal() {
class _DiffOp_Copy extends _DiffOp {
var $type = 'copy';

function _DiffOp_Copy ($orig, $_final = false) {
function __construct ($orig, $_final = false) {
if (!is_array($_final))
$_final = $orig;
$this->orig = $orig;
@@ -51,7 +51,7 @@ function &reverse() {
class _DiffOp_Delete extends _DiffOp {
var $type = 'delete';

function _DiffOp_Delete ($lines) {
function __construct ($lines) {
$this->orig = $lines;
$this->_final = false;
}
@@ -65,7 +65,7 @@ function &reverse() {
class _DiffOp_Add extends _DiffOp {
var $type = 'add';

function _DiffOp_Add ($lines) {
function __construct ($lines) {
$this->_final = $lines;
$this->orig = false;
}
@@ -79,7 +79,7 @@ function &reverse() {
class _DiffOp_Change extends _DiffOp {
var $type = 'change';

function _DiffOp_Change ($orig, $_final) {
function __construct ($orig, $_final) {
$this->orig = $orig;
$this->_final = $_final;
}
@@ -510,7 +510,7 @@ class Diff
* (Typically these are lines from a file.)
* @param $to_lines array An array of strings.
*/
function Diff($from_lines, $to_lines) {
function __construct($from_lines, $to_lines) {
$eng = new _DiffEngine;
$this->edits = $eng->diff($from_lines, $to_lines);
//$this->_check($from_lines, $to_lines);
@@ -663,13 +663,13 @@ class MappedDiff
* @param $mapped_to_lines array This array should
* have the same number of elements as $to_lines.
*/
function MappedDiff($from_lines, $to_lines,
function __construct($from_lines, $to_lines,
$mapped_from_lines, $mapped_to_lines) {

USE_ASSERTS && assert(sizeof($from_lines) == sizeof($mapped_from_lines));
USE_ASSERTS && assert(sizeof($to_lines) == sizeof($mapped_to_lines));

$this->Diff($mapped_from_lines, $mapped_to_lines);
parent::__construct($mapped_from_lines, $mapped_to_lines);

$xi = $yi = 0;
for ($i = 0; $i < sizeof($this->edits); $i++) {
@@ -858,7 +858,7 @@ function _changed($orig, $_final) {
define('NBSP', "\r"); // iso-8859-x non-breaking space.

class _HWLDF_WordAccumulator {
function _HWLDF_WordAccumulator ($tags = array(), $nbsp = '&nbsp;', $html = null) {
function __construct ($tags = array(), $nbsp = '&nbsp;', $html = null) {
if (empty($tags))
$tags = array("<del class='diff-removed'>", "</del>",
"<ins class='diff-added'>", "</ins>");
@@ -938,7 +938,7 @@ function getLines() {

class WordLevelDiff extends MappedDiff
{
function WordLevelDiff ($orig_lines, $final_lines,
function __construct ($orig_lines, $final_lines,
$charset="euc-kr",$tags=array()) {
if (strtolower($charset) == 'euc-kr') # two bytes sequence rule
$this->charset_rule='[\xb0-\xfd][\xa1-\xfe]|';
@@ -949,7 +949,7 @@ function WordLevelDiff ($orig_lines, $final_lines,
list ($orig_words, $orig_stripped) = $this->_split($orig_lines);
list ($final_words, $final_stripped) = $this->_split($final_lines);

$this->MappedDiff($orig_words, $final_words,
parent::__construct($orig_words, $final_words,
$orig_stripped, $final_stripped);
$this->tags=$tags;
}
@@ -1018,7 +1018,7 @@ function all ($tags = array(), $nbsp = '', $html = null) {
*/
class UnifiedDiffFormatter extends DiffFormatter
{
function UnifiedDiffFormatter($context_lines = 3) {
function __construct($context_lines = 3) {
$this->leading_context_lines = $context_lines;
$this->trailing_context_lines = $context_lines;
}
@@ -1050,7 +1050,7 @@ function _changed($orig, $_final) {
*/
class InlineDiffFormatter extends DiffFormatter
{
function InlineDiffFormatter($context_lines = 10000) {
function __construct($context_lines = 10000) {
$this->leading_context_lines = $context_lines;
$this->trailing_context_lines = $context_lines;
}
@@ -1104,7 +1104,7 @@ class PlainDiffFormatter
{
var $trailing_cr = "\n";

function PlainDiffFormatter() {
function __construct() {
}

function _lines($lines, $prefix = '') {
@@ -1143,4 +1143,3 @@ function format($diff) {
}
}
// vim:et:sts=4:
?>
@@ -41,7 +41,7 @@ class FCKConstantProcessor
var $_Constants ;
var $_ConstantsRegexPart ;

function FCKConstantProcessor()
function __construct()
{
$this->RemoveDeclaration = TRUE ;
$this->HasConstants = FALSE ;
@@ -109,7 +109,7 @@ class FCKFunctionProcessor

var $_IsGlobal ;

function FCKFunctionProcessor( $function, $parameters, $isGlobal )
function __construct( $function, $parameters, $isGlobal )
{
$this->_Function = $function ;
$this->_Parameters = $isGlobal ? NULL : $parameters ;
@@ -209,7 +209,7 @@ function _RenewPrefix()

class FCKJavaScriptCompressor
{
function FCKJavaScriptCompressor()
function __construct()
{}

function Revision()
@@ -378,7 +378,7 @@ class FCKStringsProcessor
{
var $_ProtectedStrings ;

function FCKStringsProcessor()
function __construct()
{
$_ProtectedStrings = array() ;
}
@@ -463,4 +463,3 @@ function _RestoreStringsMatch( $match )
}

// vim:et:sts=4:sw=4:
?>
@@ -17,7 +17,7 @@ class Indexer_dba {
var $prefix = '';
var $use_stemming = 0; // 0: noop / 1: fake stemming / 2: using KoreanStemmer

function Indexer_dba($arena,$mode='r',$type, $prefix = '') {
function __construct($arena,$mode='r',$type, $prefix = '') {
global $DBInfo;

$this->index_dir=$DBInfo->cache_dir.'/index';
@@ -445,4 +445,3 @@ function searchPages($words) {
}

// vim:et:sts=4:sw=4:
?>
@@ -83,4 +83,3 @@ function _get_metadata($body) {
}

// vim:et:sts=4:sw=4:
?>
@@ -28,7 +28,7 @@ class MetaDB_compact extends MetaDB {
var $storage;
var $aux = array();

function MetaDB_compact()
function __construct()
{
$args = func_get_args();
$num = func_num_args();
@@ -267,7 +267,7 @@ class Storage_dba {
var $db = null;

// init class
function Storage_dba($dbname, $dba_type)
function __construct($dbname, $dba_type)
{
$this->dbname = !empty($dbname) ? $dbname : 'temp.db';
$this->dba_type = !empty($dba_type) ? $dba_type : 'db4';
@@ -12,7 +12,7 @@ class MetaDB_dba extends MetaDB {
var $metadb;
var $aux = array();

function MetaDB_dba($file, $type = 'db4') {
function __construct($file, $type = 'db4') {
if (function_exists('dba_open'))
$this->metadb = @dba_open($file.".cache", 'r', $type);
}
@@ -12,7 +12,7 @@ class MetaDB_text extends MetaDB {
var $alias; // alias metadata
var $db; // extra aliases from the AliasPageNames

function MetaDB_text($db = array()) {
function __construct($db = array()) {
// open aliasname metadata
$this->alias = new Cache_Text('aliasname');
$this->db = $db;
@@ -21,7 +21,7 @@ class SimpleOpenID{
var $_user_agent_ = "Simple OpenID PHP Class";
var $_request = 'CURL_Request';

function SimpleOpenID() {
function __construct() {
if (!function_exists('curl_exec')) {
require_once('HTTPClient.php');
$this->_request='HTTP_Request';
@@ -296,5 +296,3 @@ function ValidateWithServer() {
}
}
}

?>
@@ -7,7 +7,7 @@
//

class PageKey_base {
function getPageKey($pagename) {
function __construct($pagename) {
}

function pageToKeyname($pagename) {
@@ -11,7 +11,7 @@
class PageKey_base64url extends PageKey_base {
var $text_dir;

function PageKey_base64url($conf) {
function __construct($conf) {
if (is_object($conf)) {
$this->text_dir = $conf->text_dir;
} else {

0 comments on commit db07a24

Please sign in to comment.