mirror of
https://github.com/php/php-src.git
synced 2026-04-03 22:22:18 +02:00
Merge branch 'PHP-5.5'
* PHP-5.5: Add user contributed test. Bug #61748
This commit is contained in:
17
ext/pdo_sqlite/tests/pdo_sqlite_createfunction_002.phpt
Normal file
17
ext/pdo_sqlite/tests/pdo_sqlite_createfunction_002.phpt
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user