diff options
| author | Yasuo Ohgaki <yohgaki@php.net> | 2013-08-02 09:52:50 +0900 |
|---|---|---|
| committer | Yasuo Ohgaki <yohgaki@php.net> | 2013-08-02 09:52:50 +0900 |
| commit | 1c32b97bc30ae9c3af138910ad8a05497dfb909c (patch) | |
| tree | c21a24ffb8f0647217365e695bfc130f49ec8937 /ext | |
| parent | d884ec15e93fa153c845961f5e4c35ef9240eedd (diff) | |
| parent | cb13f8318b39f72798c3756dcfe55daae4c932e2 (diff) | |
| download | php-git-1c32b97bc30ae9c3af138910ad8a05497dfb909c.tar.gz | |
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Add user contributed test. Bug #61748
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/pdo_sqlite/tests/pdo_sqlite_createfunction_002.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_002.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_002.phpt new file mode 100644 index 0000000000..a1d890ac1b --- /dev/null +++ b/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_002.phpt @@ -0,0 +1,17 @@ +--TEST-- +PDO_sqlite: Testing sqliteCreateFunction() produces warning when +un-callable function passed +--CREDITS-- +Chris MacPherson chris@kombine.co.uk +--SKIPIF-- +<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?> +--FILE-- +<?php + +$db = new PDO( 'sqlite::memory:'); + +$db->sqliteCreateFunction('bar-alias', 'bar'); + +?> +--EXPECTF-- +Warning: PDO::sqliteCreateFunction(): function 'bar' is not callable in %s on line %d |
