mirror of
https://github.com/php/php-src.git
synced 2026-04-17 21:11:02 +02:00
* PHP-5.6: Fixed bug #71447 (Quotes inside comments not properly handled) Fixed a few PDO tests to conform to PDO Common standards news entry #69537 Fix #69537: __debugInfo with empty string for key gives error Conflicts: Zend/zend_compile.c
41 lines
786 B
PHP
41 lines
786 B
PHP
--TEST--
|
|
PDO Common: 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 %d
|