felipe          Fri Mar 27 16:53:03 2009 UTC

  Added files:                 (Branch: PHP_5_2)
    /php-src/ext/pdo/tests      bug47769.phpt 
  - Add test

Index: php-src/ext/pdo/tests/bug47769.phpt
+++ php-src/ext/pdo/tests/bug47769.phpt
Bug #47769 (Strange extends PDO)

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) {
        print $str ."\n";

$test = new test('sqlite:memory');

this is a protected method.
this is a private method.

Fatal error: Call to protected method test::isProtected() from context '' in %s 
on line %d

PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to