php5.4対応paraedit

  • ページ: Develop/Modification1
  • 投稿者: ぃぉぃぉ
  • 優先順位: 普通
  • 状態: 提案
  • カテゴリー: その他
  • 投稿日: 2012-06-24 (日) 11:11:49
  • バージョン:

メッセージparaedit

php5.4で動かしてみる。修正点確認。

hex2bin()paraedit

lib/func.php

+if(!function_exists('hex2bin'))
+{
	function hex2bin($hex_string)
	{
		// preg_match : Avoid warning : pack(): Type H: illegal hex digit ...
		// (string)   : Always treat as string (not int etc). See BugTrack2/31
		return preg_match('/^[0-9a-f]+$/i', $hex_string) ?
			pack('H*', (string)$hex_string) : $hex_string;
	}
+}

timezoneparaedit

date.timezone設定かthe date_default_timezone_set()関数の利用が必要。 php.iniに

date.timezone = Asia/Tokyo

を追加。

newの返値の参照渡しparaedit

Assigning the return value of new by reference is deprecated in xxxx

ってDprecation。

PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\lib\func.php on line 582
	$config = & new Config('AutoLink');
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\lib\convert_html.php on line 23
	$body = & new Body(++$contents_id);
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\lib\convert_html.php on line 101
		$ret_obj = & new Paragraph(' ' . substr($text, 1));
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\lib\convert_html.php on line 104
		$ret_obj = & new Inline($text);
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\lib\convert_html.php on line 115
		$ret_obj = & new DList($out);
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\lib\convert_html.php on line 126
		$ret_obj = & new Table($out);
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\lib\convert_html.php on line 137
		$ret_obj = & new YTable(csv_explode(',', substr($text, 1)));
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\lib\convert_html.php on line 151
			$ret_obj = & new Div($matches);
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\lib\convert_html.php on line 161
				$ret_obj = & new Div($matches); // Seems legacy block plugin
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\lib\convert_html.php on line 165
				$ret_obj = & new Div($matches); // Seems multiline-enabled block plugin
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\lib\convert_html.php on line 171
	$ret_obj = & new Paragraph($text);
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\lib\convert_html.php on line 204
		$obj = & new Paragraph('', $class);
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\table_edit.inc.php on line 116
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\table_edit.inc.php on line 212
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\table_edit.inc.php on line 276
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\table_edit.inc.php on line 278
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\table_edit.inc.php on line 297
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\table_edit.inc.php on line 299
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\showattached.inc.php on line 28
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\attach.inc.php on line 101
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\attach.inc.php on line 182
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\attach.inc.php on line 270
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\attach.inc.php on line 329
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\attach.inc.php on line 346
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\attach.inc.php on line 365
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\attach.inc.php on line 384
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\attach.inc.php on line 401
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\attach.inc.php on line 414
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\attach.inc.php on line 874
Deprecated: Assigning the return value of new by reference is deprecated in D:\WWW\pukiowikio\pkwk\plugin_default\attach.inc.php on line 956

それぞれ& newをnewに。

table_editparaedit

convert_htmlのElementから派生させたクラスのメソッドが元と型が違うと怒られるので、convert_htmlに合わせる

Strict Standards: Declaration of EditableTablePage::add() should be compatible with & Element::add(&$obj) in D:\WWW\pukiowikio\pkwk\plugin_default\table_edit.inc.php on line 42
Strict Standards: Declaration of EditableTable::canContain() should be compatible with Element::canContain($obj) in D:\WWW\pukiowikio\pkwk\plugin_default\table_edit.inc.php on line 164
Strict Standards: Declaration of EditableYTable::canContain() should be compatible with Element::canContain($obj) in D:\WWW\pukiowikio\pkwk\plugin_default\table_edit.inc.php on line 248

addについては、別のメソッドなので、add->addtableとする。(オリジナルElementのaddは返値あり、table_editのは返値無し)

paraedit.inc.phpparaedit

split->explode

resizeimage.inc.phpparaedit

そういえば前報告有ったのにまだ直してなかったな。 gd_infoの返値がJPG SupportからJPEG Supportに変更になった。

---		if ($gdinfo['JPG Support']) {
+++		if (($gdinfo['JPG Support']) || ($gdinfo['JPEG Support'])) {

deprecateparaedit

splitparaedit

explodeに置き換え。

  • paraedit.inc.php

eregparaedit

preg_matchに置き換え

--- ereg("pattern",....)
+++ preg_match("/pattern/i",.....)
  • calendar_viewer



トップ 編集凍結差分バックアップ添付複製名前変更リロード 新規一覧 単語検索 最終更新  ヘルプ  最終更新のRSS
Last-modified: 2012-06-26 (火) 01:36:27 (2768d)