|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-26 12:54 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 08:00:02 2025 UTC |
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