ID:               30967
 Updated by:       [EMAIL PROTECTED]
 Reported By:      rbro at hotmail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         MySQLi related
 Operating System: Linux
 PHP Version:      5CVS-2004-12-02 (dev)
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




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

[2004-12-02 21:34:42] rbro at hotmail dot com

Description:
------------
I'm running into a problem when trying to extend a class that extends
mysqli.  I cannot access any of the properties.  This is related to bug
28430 except here I am extending the class one level further.

Reproduce code:
---------------
<?php
error_reporting(E_ALL);

class a extends mysqli { }

class b extends a { }

$mysqli = new mysqli('localhost', 'username', 'password', 'db');
echo $mysqli->warning_count."\n";

$a = new a('localhost', 'username', 'password', 'db');
echo $a->warning_count."\n";

$b = new b('localhost', 'username', 'password', 'db');
echo $b->warning_count."\n";
?>


Expected result:
----------------
0
0
0


Actual result:
--------------
0
0

Notice: Undefined property:  b::$warning_count in
/var/www/html/test.php on line 15


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


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

Reply via email to