ID:               47769
 Updated by:       [email protected]
 Reported By:      admin at d9tx dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         PDO related
 Operating System: xp sp3
 PHP Version:      5.3.0RC1
-Assigned To:      
+Assigned To:      felipe


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