Exclude E_STRICT from error_reporting for PHP 5.4
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Exclude E_STRICT from error_reporting for PHP 5.4 |
| | | - Copy all skins in installto script (#1488376) |
| | | - Prevent from folder selection on virtual folder collapsing (#1488346) |
| | | |
| | |
| | | if ($attrib['type']) { |
| | | $this->type = $attrib['type']; |
| | | } |
| | | |
| | | if ($attrib['newline']) { |
| | | $this->newline = true; |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | * @package HTML |
| | | */ |
| | | |
| | | class html_hiddenfield extends html_inputfield |
| | | class html_hiddenfield extends html |
| | | { |
| | | protected $tagname = 'input'; |
| | | protected $type = 'hidden'; |
| | | protected $fields_arr = array(); |
| | | protected $newline = true; |
| | | protected $allowed = array('type','name','value','onchange','disabled','readonly'); |
| | | |
| | | /** |
| | | * Constructor |
| | |
| | | die("Fatal error: ini_set/set_include_path does not work."); |
| | | } |
| | | |
| | | ini_set('error_reporting', E_ALL&~E_NOTICE); |
| | | ini_set('error_reporting', E_ALL &~ (E_NOTICE | E_STRICT)); |
| | | |
| | | // increase maximum execution time for php scripts |
| | | // (does not work in safe mode) |
| | |
| | | * @param int Level of the error |
| | | * @param string Error message |
| | | */ |
| | | public function error_handler($errno, $errstr) |
| | | public static function error_handler($errno, $errstr) |
| | | { |
| | | throw new ErrorException($errstr, 0, $errno); |
| | | } |
| | |
| | | * @param string New name to set for this group |
| | | * @return boolean New name on success, false if no data was changed |
| | | */ |
| | | function rename_group($gid, $newname) |
| | | function rename_group($gid, $newname, &$new_gid) |
| | | { |
| | | // make sure we have a unique name |
| | | $name = $this->unique_groupname($newname); |
| | |
| | | * @access public |
| | | * @return bool true if parameter is an error |
| | | */ |
| | | function isError($data, $code = null) |
| | | static function isError($data, $code = null) |
| | | { |
| | | if (!is_object($data) || !is_a($data, 'PEAR_Error')) { |
| | | return false; |