cvs: php-src(PHP_5_2) /ext/pdo/tests bug47769.phpt

From: Date: Fri, 27 Mar 2009 16:53:03 +0000
Subject: cvs: php-src(PHP_5_2) /ext/pdo/tests bug47769.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-56759@lists.php.net to get a copy of this message
felipe Fri Mar 27 16:53:03 2009 UTC Added files: (Branch: PHP_5_2) /php-src/ext/pdo/tests bug47769.phpt Log: - Add test http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/tests/bug47769.phpt?view=markup&rev=1.1 Index: php-src/ext/pdo/tests/bug47769.phpt +++ php-src/ext/pdo/tests/bug47769.phpt --TEST-- Bug #47769 (Strange extends PDO) --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: Call to protected method test::isProtected() from context '' in %s on line %d

« previous php.cvs (#56759) next »