php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /opt/php-7.0.1/ext/pdo/tests/ |
files >> //opt/php-7.0.1/ext/pdo/tests/bug47769.phpt |
--TEST-- Bug #47769 (Strange extends PDO) --SKIPIF-- <?php if (!extension_loaded("pdo_sqlite")) die("skip: PDO_SQLite not available"); ?> --FILE-- <?php class test extends PDO { protected function isProtected() { echo "this is a protected method.\n"; } private function isPrivate() { echo "this is a private method.\n"; } public function quote($str, $paramtype = NULL) { $this->isProtected(); $this->isPrivate(); print $str ."\n"; } } $test = new test('sqlite::memory:'); $test->quote('foo'); $test->isProtected(); ?> --EXPECTF-- this is a protected method. this is a private method. foo Fatal error: Uncaught Error: Call to protected method test::isProtected() from context '' in %s:%d Stack trace: #0 {main} thrown in %s on line %dy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`