[30-Nov-2017 16:29:38 PRC] PHP Fatal error: Call to a member function getName() on a non-object in ****/webroot/phpmyadmin/libraries/common.inc.php on line 733
common.inc.php on line 733php
_if (!isset($_REQUEST['server']) && ! isset($_REQUEST['set_theme'])) {_ 修改下這裏 $GLOBALS['server'] = $_REQUEST['server']; $tmp = $_SESSION['PMA_Theme_Manager']->getThemeCookie(); if (empty($tmp)) { $tmp = $_SESSION['PMA_Theme_Manager']->theme_default; } $_SESSION['PMA_Theme_Manager']->setActiveTheme($tmp); unset($tmp); } /** * the theme object * @global PMA_Theme $_SESSION['PMA_Theme'] */ $_SESSION['PMA_Theme'] = $_SESSION['PMA_Theme_Manager']->theme; echo json_encode($_SESSION['PMA_Theme_Manager']); echo exit; // BC /** * the active theme * @global string $GLOBALS['theme'] */ --》》$GLOBALS['theme'] = $_SESSION['PMA_Theme']->getName();
{ "themes": { "original": { "version": "2.9", "name": "Original", "id": "original", "path": "./themes/original", "img_path": "./themes/original/img/", "mtime_info": 1490749376, "filesize_info": 206 }, "pmahomme": { "version": "1.1", "name": "pmahomme", "id": "pmahomme", "path": "./themes/pmahomme", "img_path": "./themes/pmahomme/img/", "mtime_info": 1490749376, "filesize_info": 377 } }, "cookie_name": "pma_theme", "per_server": false, "active_theme": "pmahomme", "theme": "1.1", "theme_default": "pmahomme" }
PHP5添加了一項新的功能:Reflection get_defined_vars — 返回由全部已定義變量所組成的數組 hash_equals — 可防止時序攻擊的字符串比較web
bool hash_equals ( string $known_string , string $user_string ) 比較兩個字符串,不管它們是否相等,本函數的時間消耗是恆定的。 本函數能夠用在須要防止時序攻擊的字符串比較場景中, 例如,能夠用在比較 crypt() 密碼哈希值的場景。json