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
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php