diff options
author | SVN Migration <svn@php.net> | 2004-01-26 01:59:15 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2004-01-26 01:59:15 +0000 |
commit | c99a4f4747eac00e5e7fb44eb9e6467e258b30c6 (patch) | |
tree | 99ab150cf56eb6b75e0c0327d0b608e74445df58 /ext/sqlite/tests/sqlite_006.phpt | |
parent | 3507f040622d2267950f26c69b6ac30c1beb94f4 (diff) | |
download | php-git-RELEASE_1_3b6.tar.gz |
This commit was manufactured by cvs2svn to create tag 'RELEASE_1_3b6'.RELEASE_1_3b6
Diffstat (limited to 'ext/sqlite/tests/sqlite_006.phpt')
-rw-r--r-- | ext/sqlite/tests/sqlite_006.phpt | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/ext/sqlite/tests/sqlite_006.phpt b/ext/sqlite/tests/sqlite_006.phpt deleted file mode 100644 index 4e6e5f19ed..0000000000 --- a/ext/sqlite/tests/sqlite_006.phpt +++ /dev/null @@ -1,55 +0,0 @@ ---TEST-- -sqlite: regular functions ---INI-- -sqlite.assoc_case=0 ---SKIPIF-- -<?php # vim:ft=php -if (!extension_loaded("sqlite")) print "skip"; ?> ---FILE-- -<?php -include "blankdb.inc"; - -$data = array( - array("one", "uno"), - array("two", "dos"), - array("three", "tres"), - ); - -sqlite_query("CREATE TABLE strings(a,b)", $db); - -function implode_args() -{ - $args = func_get_args(); - $sep = array_shift($args); - return implode($sep, $args); -} - -foreach ($data as $row) { - sqlite_query("INSERT INTO strings VALUES('" . sqlite_escape_string($row[0]) . "','" . sqlite_escape_string($row[1]) . "')", $db); -} - -sqlite_create_function($db, "implode", "implode_args"); - -$r = sqlite_query("SELECT implode('-', a, b) from strings", $db); -while ($row = sqlite_fetch_array($r, SQLITE_NUM)) { - var_dump($row); -} - -sqlite_close($db); - -echo "DONE!\n"; -?> ---EXPECT-- -array(1) { - [0]=> - string(7) "one-uno" -} -array(1) { - [0]=> - string(7) "two-dos" -} -array(1) { - [0]=> - string(10) "three-tres" -} -DONE! |