~ubuntu-branches/ubuntu/lucid/phpmyadmin/lucid

« back to all changes in this revision

Viewing changes to libraries/Error_Handler.class.php

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2010-03-08 15:25:00 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100308152500-6e8hmuqc5co39de5
Tags: 4:3.3.0-1
* New upstream version.
* Rediff debian/patches.
* Fix permissions on mediawiki export extension.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
/**
4
4
 * Holds class PMA_Error_Handler
5
5
 *
6
 
 * @version $Id: Error_Handler.class.php 12298 2009-03-22 12:25:17Z lem9 $
 
6
 * @version $Id: Error_Handler.class.php 13031 2009-10-11 12:27:21Z lem9 $
7
7
 * @package phpMyAdmin
8
8
 */
9
9
 
88
88
     * E_COMPILE_WARNING,
89
89
     * and most of E_STRICT raised in the file where set_error_handler() is called.
90
90
     *
 
91
     * Do not use the context parameter as we want to avoid storing the
 
92
     * complete $GLOBALS inside $_SESSION['errors']
 
93
     *
91
94
     * @uses    E_USER_NOTICE
92
95
     * @uses    E_USER_WARNING
93
96
     * @uses    E_STRICT
110
113
     * @param   string  $errstr
111
114
     * @param   string  $errfile
112
115
     * @param   integer $errline
113
 
     * @param   array   $errcontext
114
116
     */
115
 
    public function handleError($errno, $errstr, $errfile, $errline, $errcontext)
 
117
    public function handleError($errno, $errstr, $errfile, $errline)
116
118
    {
117
119
        // create error object
118
 
        $error = new PMA_Error($errno, $errstr, $errfile, $errline, $errcontext);
 
120
        $error = new PMA_Error($errno, $errstr, $errfile, $errline);
119
121
 
120
122
        // do not repeat errors
121
123
        $this->_errors[$error->getHash()] = $error;