ID:               26312
 Updated by:       [EMAIL PROTECTED]
 Reported By:      wilfrid at digifactory dot fr
-Status:           Open
+Status:           Bogus
 Bug Type:         *Database Functions
 Operating System: redhat 9
 PHP Version:      5.0.0b2 (beta2)
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This is a PEAR bug, please report it on the PEAR bug system at:
http://pear.php.net/bugs/


Previous Comments:
------------------------------------------------------------------------

[2003-11-19 05:37:25] wilfrid at digifactory dot fr

Description:
------------
In the standard include DB/common.php (/usr/local/lib/php) there is a
bug on the raiseError function : 
Fatal error: Only variables or references can be returned by reference
in /usr/local/lib/php/DB/common.php on line 298  

At this line, there is this : 
return PEAR::raiseError(null, $code, $mode, $options,
$userinfo,'DB_Error', true);

I don't know what is the problem (i'm just transfering severals website
on a new server using php5), but the website have no problem on the
previous server using php4...

Reproduce code:
---------------
    function &raiseError($code = DB_ERROR, $mode = null, $options =
null,
                         $userinfo = null, $nativecode = null)
    {
        // The error is yet a DB error object
        if (is_object($code)) {
            // because we the static PEAR::raiseError, our global
            // handler should be used if it is set
            if ($mode === null && !empty($this->_default_error_mode))
{
                $mode    = $this->_default_error_mode;
                $options = $this->_default_error_options;
            }
            return PEAR::raiseError($code, null, $mode, $options, null,
null, true);
        }

        if ($userinfo === null) {
            $userinfo = $this->last_query;
        }

        if ($nativecode) {
            $userinfo .= " [nativecode=$nativecode]";
        }

        return PEAR::raiseError(null, $code, $mode, $options,
$userinfo,
                                  'DB_Error', true);
    }


Actual result:
--------------
return PEAR::raiseError(null, $code, $mode, $options,
$userinfo,'DB_Error', true);



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26312&edit=1

Reply via email to