- 追加された行はこの色です。
- 削除された行はこの色です。
*File List [#be3e2ef4]
dddd
*File List [#p4786165]
-[[pukiwiki/lib/init.php>#init]]
-[[pukiwiki/lib/convert_html.php>#convert]]
~
*Deprecated [#xfb24465]
返り値の宣言であるnewのキャストをひたすら書き換えていく作業
$config = & new "hoge"
*Notice [#h3906e4b]
+Undefined variable ERROR
phpの変数名である$HTTP_SERVER_VARSはphp5系統から$_POSTに変更されたので、
該当箇所を全て
$HTTP_SERVER_VARS
から
$_POST
に変更していく
~
+Only variable ERROR
返り値をnewで返している箇所で、一度変数に書き込んだ値を返答する様にする
return new "hoge";
を
$config = new "hoge"
にしていく
$ret = new "hoge";
return $ret;
の様に変数を噛ませる
~
----
~
&size(16){&font(b){Deprecated: Assigning the return value of new by reference is deprecated in [DocumentRoot]/pukiwiki/lib/func.php on line "xxx"};};
# vi [DocumentRoot]/pukiwiki/lib/func.php
-&size(16){&font(b){関数:get_autolink_pattern(& $pages)};};
- $config = &new Config('AutoLink');
&aname(init);
&size(16){&font(b){Notice: Undefined variable: HTTP_SERVER_VARS in [DocumentRoot]/pukiwiki/lib/init.php on line "xxx"};};
# vi [DocumentRoot]/pukiwiki/lib/init.php
-&size(16){&font(b){28行目};};
- unset(${$key}, $_SERVER[$key], $HTTP_SERVER_VARS[$key]);
_/_/_/_/_/
+ $config = new Config('AutoLink');
+ unset(${$key}, $_SERVER[$key], $_POST[$key]);
~
----
~
&size(16){&font(b){Deprecated: Assigning the return value of new by reference is deprecated in [DocumentRoot]/pukiwiki/lib/convert_html.php on line "xxx"};};
# vi [DocumentRoot]/pukiwiki/lib/convert_html.php
-&size(16){&font(b){関数:convert_html($lines)};};
- $body = & new Body(++$contents_id);
_/_/_/_/_/
+ $body = new Body(++$contents_id);
~
-&size(16){&font(b){関数:& toPara($class = '')};};
- $obj = & new Paragraph('', $class);
-&size(16){&font(b){141行目};};
-unset(${$ua}, $_SERVER[$ua], $HTTP_SERVER_VARS[$ua], $ua); // safety
_/_/_/_/_/
+ $obj = new Paragraph('', $class);
+unset(${$ua}, $_SERVER[$ua], $_POST[$ua], $ua); // safety
~
-&size(16){&font(b){関数:Table($out)};};
- $row[] = & new TableCell($cell, $is_template);
-&size(16){&font(b){283行目};};
- unset(${$key}, $_SERVER[$key], $HTTP_SERVER_VARS[$key]);
_/_/_/_/_/
+ $row[] = new TableCell($cell, $is_template);
+ unset(${$key}, $_SERVER[$key], $_POST[$key]);
~
-&size(16){&font(b){関数:Body($id)};};
- $this->contents = & new Element();
-&size(16){&font(b){286行目};};
-unset($REQUEST_URI, $HTTP_SERVER_VARS['REQUEST_URI']);
_/_/_/_/_/
+ $this->contents = new Element();
+unset($REQUEST_URI, $_POST['REQUEST_URI']);
~
----
~
&size(16){&font(b){Deprecated: Assigning the return value of new by reference is deprecated in [DocumentRoot]/pukiwiki/lib/config.php on line "xxx"};};
# vi [DocumentRoot]/pukiwiki/lib/config.php
-&size(16){&font(b){関数:read()};};
- $obj = & new ConfigTable('');
&aname(convert);
&size(16){&font(b){Notice: Only variable references should be returned by reference in [DocumentRoot]/pukiwiki/lib/convert_html.php on line "xxx"};};
# vi [DocumentRoot]/pukiwiki/lib/convert_html.php
-&size(16){&font(b){関数:& Factory_Div(& $root, $text)};};
- return new Div($matches);
_/_/_/_/_/
+ $obj = new ConfigTable('');
+ $ret = new Div($matches);
+ return $ret;
~
-&size(16){&font(b){関数:read()};};
- $obj = & new ConfigTable($line);
-&size(16){&font(b){関数:& Factory_Div(& $root, $text)};};
- if ($len == 0) {
- return new Div($matches); // Seems legacy block plugin
- } else if (preg_match('/\{{' . $len . '}\s*\r(.*)\r\}{' . $len . '}/', $text, $body)) {
- $matches[2] .= "\r" . $body[1] . "\r";
- return new Div($matches); // Seems multiline-enabled block plugin
- }
_/_/_/_/_/
+ $obj = new ConfigTable($line);
+ if ($len == 0) {
+ $ret = new Div($matches); // Seems legacy block plugin
+ } else if (preg_match('/\{{' . $len . '}\s*\r(.*)\r\}{' . $len . '}/', $text, $body)) {
+ $matches[2] .= "\r" . $body[1] . "\r";
+ $ret = new Div($matches); // Seems multiline-enabled block plugin
+ }
+ return $ret;
~
-&size(16){&font(b){関数:read()};};
- $obj = & new ConfigTable_Direct('', $obj);
-&size(16){&font(b){関数:& Factory_Inline($text)};};
- // Check the first letter of the line
- if (substr($text, 0, 1) == '~') {
- return new Paragraph(' ' . substr($text, 1));
- } else {
- return new Inline($text);
- }
_/_/_/_/_/
+ $obj = new ConfigTable_Direct('', $obj);
+ // Check the first letter of the line
+ if (substr($text, 0, 1) == '~') {
+ $ret = new Paragraph(' ' . substr($text, 1));
+ } else {
+ $ret = new Inline($text);
+ }
+ return $ret;
~
-&size(16){&font(b){関数:read()};};
- $obj = & new ConfigTable_Direct('', $obj);
-&size(16){&font(b){& Factory_DList(& $root, $text)};};
- return new DList($out);
_/_/_/_/_/
+ $obj = new ConfigTable_Direct('', $obj);
+ $ret = new DList($out);
+ return $ret;
~
-&size(16){&font(b){関数:read()};};
- $obj = & new ConfigTable_Sequential('', $obj);
-&size(16){&font(b){& Factory_Table(& $root, $text)};};
- return new Table($out);
_/_/_/_/_/
+ $obj = new ConfigTable_Sequential('', $obj);
+ $ret = Table($out);
+ return $ret;
~
-&size(16){&font(b){関数:& get_object($title)};};
- $this->objs[$title] = & new ConfigTable('*' . trim($title) . "\n");
-&size(16){&font(b){& Factory_YTable(& $root, $text)};};
- return new YTable(csv_explode(',', substr($text, 1)));
_/_/_/_/_/
+ $this->objs[$title] = new ConfigTable('*' . trim($title) . "\n");
+ $ret = new YTable(csv_explode(',', substr($text, 1)));
+ return $ret;
~
----
~
&size(16){&font(b){Deprecated: Assigning the return value of new by reference is deprecated in [DocumentRoot]/pukiwiki/lib/link.php on line "xxx"};};
# vi [DocumentRoot]/pukiwiki/lib/link.php
-&size(16){&font(b){関数:& links_get_objects($page, $refresh = FALSE)};};
- $obj = & new InlineConverter(NULL, array('note'));
_/_/_/_/_/
+ $obj = new InlineConverter(NULL, array('note'));