$HTTP_SERVER_VARSから
$_POSTに変更していく
return new "hoge";を
$ret = new "hoge"; return $ret;の様に変数を噛ませる
Notice: Undefined variable: HTTP_SERVER_VARS in [DocumentRoot]/pukiwiki/lib/init.php on line "xxx"
# vi [DocumentRoot]/pukiwiki/lib/init.php
- unset(${$key}, $_SERVER[$key], $HTTP_SERVER_VARS[$key]);_/_/_/_/_/
+ unset(${$key}, $_SERVER[$key], $_POST[$key]);
-unset(${$ua}, $_SERVER[$ua], $HTTP_SERVER_VARS[$ua], $ua); // safety_/_/_/_/_/
+unset(${$ua}, $_SERVER[$ua], $_POST[$ua], $ua); // safety
- unset(${$key}, $_SERVER[$key], $HTTP_SERVER_VARS[$key]);_/_/_/_/_/
+ unset(${$key}, $_SERVER[$key], $_POST[$key]);
-unset($REQUEST_URI, $HTTP_SERVER_VARS['REQUEST_URI']);_/_/_/_/_/
+unset($REQUEST_URI, $_POST['REQUEST_URI']);
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
- return new Div($matches);_/_/_/_/_/
+ $ret = new Div($matches); + return $ret;
- 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 - }_/_/_/_/_/
+ 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;
- // 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;
- return new DList($out);_/_/_/_/_/
+ $ret = new DList($out); + return $ret;
- return new Table($out);_/_/_/_/_/
+ $ret = Table($out); + return $ret;
- return new YTable(csv_explode(',', substr($text, 1)));_/_/_/_/_/
+ $ret = new YTable(csv_explode(',', substr($text, 1))); + return $ret;