summaryrefslogtreecommitdiff
path: root/ext/pdo/tests/bug_43663.phpt
blob: 25af588bbed731ae430fc0f8a5d022131609cea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
PDO Common: Bug #43663 (__call on classes derived from PDO)
--FILE--
--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