PukiWiki/error/Notice
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
ns-lab
nowsky system-lab
DigiLoog
Linux
Windows
開始行:
*File List [#p4786165]
-[[pukiwiki/lib/init.php>#init]]
-[[pukiwiki/lib/convert_html.php>#convert]]
~
*Notice [#h3906e4b]
+Undefined variable ERROR
phpの変数名である$HTTP_SERVER_VARSはphp5系統から$_POSTに...
該当箇所を全て
$HTTP_SERVER_VARS
から
$_POST
に変更していく
~
+Only variable ERROR
返り値をnewで返している箇所で、一度変数に書き込んだ値を返...
return new "hoge";
を
$ret = new "hoge";
return $ret;
の様に変数を噛ませる
~
----
~
&aname(init);
&size(16){&font(b){Notice: Undefined variable: HTTP_SERVE...
# vi [DocumentRoot]/pukiwiki/lib/init.php
-&size(16){&font(b){28行目};};
- unset(${$key}, $_SERVER[$key], $HTTP_SERVER_VARS[$k...
_/_/_/_/_/
+ unset(${$key}, $_SERVER[$key], $_POST[$key]);
~
-&size(16){&font(b){141行目};};
-unset(${$ua}, $_SERVER[$ua], $HTTP_SERVER_VARS[$ua], $u...
_/_/_/_/_/
+unset(${$ua}, $_SERVER[$ua], $_POST[$ua], $ua); // saf...
~
-&size(16){&font(b){283行目};};
- unset(${$key}, $_SERVER[$key], $HTTP_SERVER_VARS[$k...
_/_/_/_/_/
+ unset(${$key}, $_SERVER[$key], $_POST[$key]);
~
-&size(16){&font(b){286行目};};
-unset($REQUEST_URI, $HTTP_SERVER_VARS['REQUEST_URI']);
_/_/_/_/_/
+unset($REQUEST_URI, $_POST['REQUEST_URI']);
~
----
~
&aname(convert);
&size(16){&font(b){Notice: Only variable references shoul...
# vi [DocumentRoot]/pukiwiki/lib/convert_html.php
-&size(16){&font(b){関数:& Factory_Div(& $root, $text)};};
- return new Div($matches);
_/_/_/_/_/
+ $ret = new Div($matches);
+ return $ret;
~
-&size(16){&font(b){関数:& Factory_Div(& $root, $text)};};
- if ($len == 0) {
- return new Div($matches); // Seems lega...
- } else if (preg_match('/\{{' . $len . '}\s*...
- $matches[2] .= "\r" . $body[1] . "\r";
- return new Div($matches); // Seems mult...
- }
_/_/_/_/_/
+ if ($len == 0) {
+ $ret = new Div($matches); // Seems lega...
+ } else if (preg_match('/\{{' . $len . '}\s*...
+ $matches[2] .= "\r" . $body[1] . "\r";
+ $ret = new Div($matches); // Seems mult...
+ }
+ return $ret;
~
-&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);
- }
_/_/_/_/_/
+ // 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){& Factory_DList(& $root, $text)};};
- return new DList($out);
_/_/_/_/_/
+ $ret = new DList($out);
+ return $ret;
~
-&size(16){&font(b){& Factory_Table(& $root, $text)};};
- return new Table($out);
_/_/_/_/_/
+ $ret = Table($out);
+ return $ret;
~
-&size(16){&font(b){& Factory_YTable(& $root, $text)};};
- return new YTable(csv_explode(',', substr($text...
_/_/_/_/_/
+ $ret = new YTable(csv_explode(',', substr($text...
+ return $ret;
~
終了行:
*File List [#p4786165]
-[[pukiwiki/lib/init.php>#init]]
-[[pukiwiki/lib/convert_html.php>#convert]]
~
*Notice [#h3906e4b]
+Undefined variable ERROR
phpの変数名である$HTTP_SERVER_VARSはphp5系統から$_POSTに...
該当箇所を全て
$HTTP_SERVER_VARS
から
$_POST
に変更していく
~
+Only variable ERROR
返り値をnewで返している箇所で、一度変数に書き込んだ値を返...
return new "hoge";
を
$ret = new "hoge";
return $ret;
の様に変数を噛ませる
~
----
~
&aname(init);
&size(16){&font(b){Notice: Undefined variable: HTTP_SERVE...
# vi [DocumentRoot]/pukiwiki/lib/init.php
-&size(16){&font(b){28行目};};
- unset(${$key}, $_SERVER[$key], $HTTP_SERVER_VARS[$k...
_/_/_/_/_/
+ unset(${$key}, $_SERVER[$key], $_POST[$key]);
~
-&size(16){&font(b){141行目};};
-unset(${$ua}, $_SERVER[$ua], $HTTP_SERVER_VARS[$ua], $u...
_/_/_/_/_/
+unset(${$ua}, $_SERVER[$ua], $_POST[$ua], $ua); // saf...
~
-&size(16){&font(b){283行目};};
- unset(${$key}, $_SERVER[$key], $HTTP_SERVER_VARS[$k...
_/_/_/_/_/
+ unset(${$key}, $_SERVER[$key], $_POST[$key]);
~
-&size(16){&font(b){286行目};};
-unset($REQUEST_URI, $HTTP_SERVER_VARS['REQUEST_URI']);
_/_/_/_/_/
+unset($REQUEST_URI, $_POST['REQUEST_URI']);
~
----
~
&aname(convert);
&size(16){&font(b){Notice: Only variable references shoul...
# vi [DocumentRoot]/pukiwiki/lib/convert_html.php
-&size(16){&font(b){関数:& Factory_Div(& $root, $text)};};
- return new Div($matches);
_/_/_/_/_/
+ $ret = new Div($matches);
+ return $ret;
~
-&size(16){&font(b){関数:& Factory_Div(& $root, $text)};};
- if ($len == 0) {
- return new Div($matches); // Seems lega...
- } else if (preg_match('/\{{' . $len . '}\s*...
- $matches[2] .= "\r" . $body[1] . "\r";
- return new Div($matches); // Seems mult...
- }
_/_/_/_/_/
+ if ($len == 0) {
+ $ret = new Div($matches); // Seems lega...
+ } else if (preg_match('/\{{' . $len . '}\s*...
+ $matches[2] .= "\r" . $body[1] . "\r";
+ $ret = new Div($matches); // Seems mult...
+ }
+ return $ret;
~
-&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);
- }
_/_/_/_/_/
+ // 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){& Factory_DList(& $root, $text)};};
- return new DList($out);
_/_/_/_/_/
+ $ret = new DList($out);
+ return $ret;
~
-&size(16){&font(b){& Factory_Table(& $root, $text)};};
- return new Table($out);
_/_/_/_/_/
+ $ret = Table($out);
+ return $ret;
~
-&size(16){&font(b){& Factory_YTable(& $root, $text)};};
- return new YTable(csv_explode(',', substr($text...
_/_/_/_/_/
+ $ret = new YTable(csv_explode(',', substr($text...
+ return $ret;
~
ページ名: