Annotation of embedaddon/php/ext/pdo_sqlite/tests/bug46542.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #46542 Extending PDO class with a __call() function
! 3: --SKIPIF--
! 4: <?php # vim:ft=php
! 5: if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
! 6: ?>
! 7: --FILE--
! 8: <?php
! 9: class A extends PDO
! 10: { function __call($m, $p) {print __CLASS__."::$m\n";} }
! 11:
! 12: $a = new A('sqlite:' . __DIR__ . '/dummy.db');
! 13:
! 14: $a->truc();
! 15: $a->TRUC();
! 16:
! 17: ?>
! 18: --CLEAN--
! 19: <?php
! 20: unlink(__DIR__ . '/dummy.db');
! 21: ?>
! 22: --EXPECT--
! 23: A::truc
! 24: A::TRUC
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>