alecpl
2012-03-04 66d2152ab57b1267552c75243919945b1ffc49bb
Exclude E_STRICT from error_reporting for PHP 5.4


6 files modified
18 ■■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
program/include/html.php 9 ●●●●● patch | view | raw | blame | history
program/include/iniset.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_charset.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_contacts.php 2 ●●● patch | view | raw | blame | history
program/lib/PEAR.php 2 ●●● patch | view | raw | blame | history
CHANGELOG
@@ -1,6 +1,7 @@
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)
program/include/html.php
@@ -335,10 +335,6 @@
        if ($attrib['type']) {
            $this->type = $attrib['type'];
        }
        if ($attrib['newline']) {
            $this->newline = true;
        }
    }
    /**
@@ -381,11 +377,12 @@
 * @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
program/include/iniset.php
@@ -68,7 +68,7 @@
    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)
program/include/rcube_charset.php
@@ -78,7 +78,7 @@
     * @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);
    }
program/include/rcube_contacts.php
@@ -883,7 +883,7 @@
     * @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);
program/lib/PEAR.php
@@ -263,7 +263,7 @@
     * @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;