ID:               47769
 Updated by:       [email protected]
 Reported By:      admin at d9tx dot com
-Status:           Assigned
+Status:           Closed
 Bug Type:         PDO related
 Operating System: xp sp3
 PHP Version:      5.3.0RC1
 Assigned To:      felipe
 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.

Fixed in 5.3CVS and HEAD.


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

[2009-03-25 06:43:50] admin at d9tx dot com

Description:
------------
if extends pdo, then visibility keyword work failure.

Reproduce code:
---------------
class test extends PDO
{
    private function isPrivate()
    {
        echo 'this is a private method.';
    }
}

$test = new test('sqlite:./test/mydb.sq3');
$test->isPrivate();
// bad output: this is a private method.

Expected result:
----------------
class test extends PDO
{
    private function isPrivate()
    {
        echo 'this is a private method.';
    }
}

$test = new test('sqlite:./test/mydb.sq3');
$test->isPrivate();
// Expected output: Fatal error: Call to private method
test::isPrivate() from



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


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

Reply via email to