ID:               45578
 Updated by:       [EMAIL PROTECTED]
 Reported By:      basilio dot vera at softonic dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         MySQLi related
 Operating System: Linux RH
 PHP Version:      5.2CVS-2008-07-21
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #44043


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

[2008-07-21 17:27:41] [EMAIL PROTECTED]

Please don't change the summary..

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

[2008-07-21 16:38:58] basilio dot vera at softonic dot com

Obviously you must activate in the error reporting the strict errors.

error_reporting  =  E_ALL | E_STRICT

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

[2008-07-21 16:36:42] basilio dot vera at softonic dot com

After test it with the windows zip, I see "PHP Version => 5.2.7-dev"
with a phpinfo()...

I'm getting the same errors.


Strict Standards: Declaration of myTry1::bind_param() should be
compatible with that of mysqli_stmt::bind_param() in...
Strict Standards: Declaration of myTry2::bind_param() should be
compatible with that of mysqli_stmt::bind_param() in...

Strict Standards: Declaration of myTry3::bind_param() should be
compatible with that of mysqli_stmt::bind_param() in...

Strict Standards: Declaration of myTry4::bind_param() should be
compatible with that of mysqli_stmt::bind_param() in...

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

[2008-07-21 10:02:16] basilio dot vera at softonic dot com

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 this bug report at http://bugs.php.net/?id=45578&edit=1

Reply via email to