From:             basilio dot vera at softonic dot com
Operating system: Linux RH
PHP version:      5.2.6
PHP Bug Type:     MySQLi related
Bug description:  Can't extend the bind_param method of mysqli_stmt class 
without errors

Description:
------------
Can't extend the method "bind_param" of the mysqli_stmt class without
strict errors.

Through reflection I see that the method declaration has one declared and
needed parameter:

-- Parameter #0: { Class: NULL Allows NULL: false Passed to by reference:
false Is optional?: no }

What can I do to avoid this notice?

Reproduce code:
---------------
class myTry1 extends mysqli_stmt
{
    public function bind_param()
    {
    }
}
 
class myTry2 extends mysqli_stmt
{
    public function bind_param( $types )
    {
    }
}
 
class myTry3 extends mysqli_stmt
{
    public function bind_param( $types, $var1 )
    {
    }
}
 
class myTry4 extends mysqli_stmt
{
    public function bind_param( $types, &$var1 )
    {
    }
}

Expected result:
----------------
No errors with at least one ot these new classes.

Actual result:
--------------
Strict Notice Declaration of myTry1::bind_param() should be compatible
with that of mysqli_stmt::bind_param() in...
Strict Notice Declaration of myTry2::bind_param() should be compatible
with that of mysqli_stmt::bind_param() in...
Strict Notice Declaration of myTry3::bind_param() should be compatible
with that of mysqli_stmt::bind_param() in...
Strict Notice Declaration of myTry4::bind_param() should be compatible
with that of mysqli_stmt::bind_param() in...

-- 
Edit bug report at http://bugs.php.net/?id=45578&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45578&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45578&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45578&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45578&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45578&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45578&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45578&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45578&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45578&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45578&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45578&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45578&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45578&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45578&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45578&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45578&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45578&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45578&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45578&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45578&r=mysqlcfg

Reply via email to