php-src/ext/pdo/tests/bug_43663.phpt
2008-03-17 17:19:48 +00:00

23 lines
460 B
PHP

--TEST--
PDO Common: Bug #43663 (__call on classes derived from PDO)
--SKIPIF--
<?php # vim:ft=php
if (!extension_loaded('pdo')) die('skip');
?>
--FILE--
<?php
class test extends PDO{
function __call($name, array $args) {
echo "Called $name in ".__CLASS__."\n";
}
function foo() {
echo "Called foo in ".__CLASS__."\n";
}
}
$a = new test('sqlite::memory:');
$a->foo();
$a->bar();
--EXPECT--
Called foo in test
Called bar in test