1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 19:52:20 +02:00
Files
archived-php-src/ext/pdo_sqlite/tests/bug46542.phpt
Felipe Pena ffc0714655 - Fix test
2009-02-20 13:37:48 +00:00

21 lines
339 B
PHP

--TEST--
Bug #46542 Extending PDO class with a __call() function
--SKIPIF--
<?php # vim:ft=php
if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
?>
--FILE--
<?php
class A extends PDO
{ function __call($m, $p) {print __CLASS__."::$m\n";} }
$a = new A('sqlite:dummy.db');
$a->truc();
$a->TRUC();
?>
--EXPECT--
A::truc
A::TRUC