xref: /PHP-8.2/ext/pdo_sqlite/tests/bug46542.phpt (revision 74859783)
1--TEST--
2Bug #46542 Extending PDO class with a __call() function
3--EXTENSIONS--
4pdo_sqlite
5--FILE--
6<?php
7class A extends PDO
8{ function __call($m, $p) {print __CLASS__."::$m\n";} }
9
10$a = new A('sqlite:' . __DIR__ . '/dummy.db');
11
12$a->truc();
13$a->TRUC();
14
15?>
16--CLEAN--
17<?php
18unlink(__DIR__ . '/dummy.db');
19?>
20--EXPECT--
21A::truc
22A::TRUC
23