mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
23 lines
460 B
Plaintext
23 lines
460 B
Plaintext
|
--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
|