diff options
| author | Johannes Schlüter <johannes@php.net> | 2009-02-17 14:42:26 +0000 |
|---|---|---|
| committer | Johannes Schlüter <johannes@php.net> | 2009-02-17 14:42:26 +0000 |
| commit | 162aed0aedad595331424bce4e5fc12dfaa53897 (patch) | |
| tree | 92b4e9fc016b9a8df5969d5e5d203ca7a266bf7b /ext/pdo_sqlite | |
| parent | a7eb83fef5489d91661eee4e90611d351c5569b0 (diff) | |
| download | php-git-162aed0aedad595331424bce4e5fc12dfaa53897.tar.gz | |
MFH: Fix #46542 Extending PDO class with a __call() function doesn't work
as expected
Diffstat (limited to 'ext/pdo_sqlite')
| -rw-r--r-- | ext/pdo_sqlite/tests/bug46542.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/pdo_sqlite/tests/bug46542.phpt b/ext/pdo_sqlite/tests/bug46542.phpt new file mode 100644 index 0000000000..e08cc14c1b --- /dev/null +++ b/ext/pdo_sqlite/tests/bug46542.phpt @@ -0,0 +1,20 @@ +--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 |
