php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61748 New PHPT test for PDO_sqlite
Submitted: 2012-04-16 21:09 UTC Modified: 2013-08-02 00:56 UTC
Votes:44
Avg. Score:3.0 ± 0.0
Reproduced:1 of 6 (16.7%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: chris at kombine dot co dot uk Assigned: yohgaki (profile)
Status: Closed Package: Testing related
PHP Version: 5.4.1RC2 OS: linux (Xubuntu 11.10 64bit)
Private report: No CVE-ID: None
 [2012-04-16 21:09 UTC] chris at kombine dot co dot uk
Description:
------------
This is my first (small) contribution to the QA testing effort. I was advised to 
submit the test here as a bug to keep track of it. 

Default php.ini


Test script:
---------------
--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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-02 00:56 UTC] yohgaki@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: yohgaki
 [2013-08-02 00:56 UTC] yohgaki@php.net
Applied.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Aug 24 22:01:26 2019 UTC