Merge branch 'QA_3_4' into QA_3_5
Conflicts: libraries/common.lib.php
This commit is contained in:
commit
3fadd41b41
@ -152,7 +152,11 @@ class PMA_Error extends PMA_Message
|
||||
*/
|
||||
public function getHash()
|
||||
{
|
||||
$backtrace = PMA_isSerializable($this->getBacktrace()) ? serialize($this->getBacktrace()) : '';
|
||||
try {
|
||||
$backtrace = serialize($this->getBacktrace());
|
||||
} catch(Exception $e){
|
||||
$backtrace = '';
|
||||
}
|
||||
if (null === $this->_hash) {
|
||||
$this->_hash = md5(
|
||||
$this->getNumber() .
|
||||
|
||||
@ -3832,21 +3832,4 @@ function PMA_printButton()
|
||||
echo '<input type="button" id="print" value="' . __('Print') . '" />';
|
||||
echo '</p>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether a variable is serializable.
|
||||
*
|
||||
* @param object $var object which needs to be checked for serializability
|
||||
*
|
||||
* @return whether the object is serializable.
|
||||
*/
|
||||
function PMA_isSerializable($var)
|
||||
{
|
||||
try {
|
||||
serialize($var);
|
||||
return true;
|
||||
} catch(Exception $e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user