From b458fcb87f8759c18e9cfe48bc54a9ce96eedf94 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Wed, 1 May 2019 23:27:04 +0300 Subject: Move ext/interbase to pecl/database/interbase https://wiki.php.net/rfc/deprecate-and-remove-ext-interbase --- ext/interbase/tests/002.phpt | 33 --- ext/interbase/tests/003.phpt | 183 -------------- ext/interbase/tests/004.phpt | 182 -------------- ext/interbase/tests/005.phpt | 289 ---------------------- ext/interbase/tests/006.phpt | 300 ----------------------- ext/interbase/tests/007.phpt | 183 -------------- ext/interbase/tests/008.phpt | 48 ---- ext/interbase/tests/bug45373.phpt | 47 ---- ext/interbase/tests/bug45575.phpt | 22 -- ext/interbase/tests/bug46247.phpt | 35 --- ext/interbase/tests/bug46543.phpt | 28 --- ext/interbase/tests/ibase_affected_rows_001.phpt | 32 --- ext/interbase/tests/ibase_close_001.phpt | 23 -- ext/interbase/tests/ibase_drop_db_001.phpt | 31 --- ext/interbase/tests/ibase_errmsg_001.phpt | 22 -- ext/interbase/tests/ibase_free_query_001.phpt | 28 --- ext/interbase/tests/ibase_num_fields_001.phpt | 25 -- ext/interbase/tests/ibase_num_params_001.phpt | 32 --- ext/interbase/tests/ibase_param_info_001.phpt | 53 ---- ext/interbase/tests/ibase_rollback_001.phpt | 41 ---- ext/interbase/tests/ibase_trans_001.phpt | 21 -- ext/interbase/tests/ibase_trans_002.phpt | 34 --- ext/interbase/tests/interbase.inc | 120 --------- ext/interbase/tests/skipif.inc | 8 - 24 files changed, 1820 deletions(-) delete mode 100644 ext/interbase/tests/002.phpt delete mode 100644 ext/interbase/tests/003.phpt delete mode 100644 ext/interbase/tests/004.phpt delete mode 100644 ext/interbase/tests/005.phpt delete mode 100644 ext/interbase/tests/006.phpt delete mode 100644 ext/interbase/tests/007.phpt delete mode 100644 ext/interbase/tests/008.phpt delete mode 100644 ext/interbase/tests/bug45373.phpt delete mode 100644 ext/interbase/tests/bug45575.phpt delete mode 100644 ext/interbase/tests/bug46247.phpt delete mode 100644 ext/interbase/tests/bug46543.phpt delete mode 100644 ext/interbase/tests/ibase_affected_rows_001.phpt delete mode 100644 ext/interbase/tests/ibase_close_001.phpt delete mode 100644 ext/interbase/tests/ibase_drop_db_001.phpt delete mode 100644 ext/interbase/tests/ibase_errmsg_001.phpt delete mode 100644 ext/interbase/tests/ibase_free_query_001.phpt delete mode 100644 ext/interbase/tests/ibase_num_fields_001.phpt delete mode 100644 ext/interbase/tests/ibase_num_params_001.phpt delete mode 100644 ext/interbase/tests/ibase_param_info_001.phpt delete mode 100644 ext/interbase/tests/ibase_rollback_001.phpt delete mode 100644 ext/interbase/tests/ibase_trans_001.phpt delete mode 100644 ext/interbase/tests/ibase_trans_002.phpt delete mode 100644 ext/interbase/tests/interbase.inc delete mode 100644 ext/interbase/tests/skipif.inc (limited to 'ext/interbase/tests') diff --git a/ext/interbase/tests/002.phpt b/ext/interbase/tests/002.phpt deleted file mode 100644 index 6c7d780588..0000000000 --- a/ext/interbase/tests/002.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -InterBase: connect, close and pconnect ---SKIPIF-- - ---FILE-- - ---EXPECT-- ---- test1 --- -1 test table not created with isql ---- ---- test1 --- -1 test table not created with isql ---- diff --git a/ext/interbase/tests/003.phpt b/ext/interbase/tests/003.phpt deleted file mode 100644 index 70fa5f0d30..0000000000 --- a/ext/interbase/tests/003.phpt +++ /dev/null @@ -1,183 +0,0 @@ ---TEST-- -InterBase: misc sql types (may take a while) ---SKIPIF-- - ---FILE-- -V_CHAR,0,strlen($v_char)) != $v_char){ - echo " CHAR fail:\n"; - echo " in: $v_char\n"; - echo " out: $row->V_CHAR\n"; - } - if($row->V_DATE != $v_date){ - echo " DATE fail\n"; - echo " in: $v_date\n"; - echo " out: $row->V_DATE\n"; - } - if($row->V_DECIMAL4_2 != $v_decimal4_2){ - echo " DECIMAL4_2 fail\n"; - echo " in: $v_decimal4_2\n"; - echo " out: $row->V_DECIMAL4_2\n"; - } - if($row->V_DECIMAL4_0 != $v_decimal4_0){ - echo " DECIMAL4_0 fail\n"; - echo " in: $v_decimal4_0\n"; - echo " out: $row->V_DECIMAL4_0\n"; - } - if($row->V_DECIMAL7_2 != $v_decimal7_2){ - echo " DECIMAL7_2 fail\n"; - echo " in: $v_decimal7_2\n"; - echo " out: $row->V_DECIMAL7_2\n"; - } - if($row->V_DECIMAL7_0 != $v_decimal7_0){ - echo " DECIMAL7_0 fail\n"; - echo " in: $v_decimal7_0\n"; - echo " out: $row->V_DECIMAL7_0\n"; - } - if($row->V_NUMERIC15_15 != $v_numeric15_15){ - echo " NUMERIC15_15 fail\n"; - echo " in: $v_numeric15_15\n"; - echo " out: $row->V_NUMERIC15_15\n"; - } - if($row->V_NUMERIC15_0 != (string)$v_numeric15_0){ - echo " NUMERIC15_0 fail\n"; - echo " in: $v_numeric15_0\n"; - echo " out: $row->V_NUMERIC15_0\n"; - } - - if(abs($row->V_DOUBLE - $v_double) > abs($v_double / 1E15)){ - echo " DOUBLE fail\n"; - echo " in: $v_double\n"; - echo " out: $row->V_DOUBLE\n"; - } - if(abs($row->V_FLOAT - $v_float) > abs($v_float / 1E7)){ - echo " FLOAT fail\n"; - echo " in: $v_float\n"; - echo " out: $row->V_FLOAT\n"; - } - if($row->V_INTEGER != $v_integer){ - echo " INTEGER fail\n"; - echo " in: $v_integer\n"; - echo " out: $row->V_INTEGER\n"; - } - if($row->V_SMALLINT != $v_smallint){ - echo " SMALLINT fail\n"; - echo " in: $v_smallint\n"; - echo " out: $row->V_SMALLINT\n"; - } - - if(substr($row->V_VARCHAR,0,strlen($v_varchar)) != $v_varchar){ - echo " VARCHAR fail:\n"; - echo " in: $v_varchar\n"; - echo " out: $row->V_VARCHAR\n"; - } - - ibase_free_result($sel); - } /* for($iter) */ - - /* check for correct handling of duplicate field names */ - $q = ibase_query('SELECT 1 AS id, 2 AS id, 3 AS id, 4 AS id, 5 AS id, 6 AS id, 7 AS id, 8 AS id, 9 AS id, - 10 AS id, 11 AS id, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 FROM rdb$database'); - var_dump(ibase_fetch_assoc($q)); - - ibase_close(); - echo "end of test\n"; -?> ---EXPECT-- -array(22) { - ["ID"]=> - int(1) - ["ID_01"]=> - int(2) - ["ID_02"]=> - int(3) - ["ID_03"]=> - int(4) - ["ID_04"]=> - int(5) - ["ID_05"]=> - int(6) - ["ID_06"]=> - int(7) - ["ID_07"]=> - int(8) - ["ID_08"]=> - int(9) - ["ID_09"]=> - int(10) - ["ID_10"]=> - int(11) - ["CONSTANT"]=> - int(12) - ["CONSTANT_01"]=> - int(13) - ["CONSTANT_02"]=> - int(14) - ["CONSTANT_03"]=> - int(15) - ["CONSTANT_04"]=> - int(16) - ["CONSTANT_05"]=> - int(17) - ["CONSTANT_06"]=> - int(18) - ["CONSTANT_07"]=> - int(19) - ["CONSTANT_08"]=> - int(20) - ["CONSTANT_09"]=> - int(21) - ["CONSTANT_10"]=> - int(22) -} -end of test diff --git a/ext/interbase/tests/004.phpt b/ext/interbase/tests/004.phpt deleted file mode 100644 index 20f314ee6b..0000000000 --- a/ext/interbase/tests/004.phpt +++ /dev/null @@ -1,182 +0,0 @@ ---TEST-- -InterBase: BLOB test ---SKIPIF-- - ---FILE-- -V_BLOB); - - $blob = ''; - while($piece = ibase_blob_get($bl_h, 1 + rand() % 1024)) - $blob .= $piece; - if($blob != $blob_str) - echo " BLOB 1 fail (1)\n"; - ibase_blob_close($bl_h); - - $bl_h = ibase_blob_open($link,$row->V_BLOB); - - $blob = ''; - while($piece = ibase_blob_get($bl_h, 100 * 1024)) - $blob .= $piece; - if($blob != $blob_str) - echo " BLOB 1 fail (2)\n"; - ibase_blob_close($bl_h); - ibase_free_result($q); - unset($blob); - - echo "create blob 2\n"; - - ibase_query("INSERT INTO test4 (v_integer, v_blob) VALUES (2, ?)", $blob_str); - - echo "test blob 2\n"; - - $q = ibase_query("SELECT v_blob FROM test4 WHERE v_integer = 2"); - $row = ibase_fetch_object($q,IBASE_TEXT); - - if($row->V_BLOB != $blob_str) - echo " BLOB 2 fail\n"; - ibase_free_result($q); - unset($blob); - - - echo "create blob 3\n"; - - $bl_h = ibase_blob_create($link); - - ibase_blob_add($bl_h, "+----------------------------------------------------------------------+\n"); - ibase_blob_add($bl_h, "| PHP HTML Embedded Scripting Language Version 3.0 |\n"); - ibase_blob_add($bl_h, "+----------------------------------------------------------------------+\n"); - ibase_blob_add($bl_h, "| Copyright (c) 1997-2000 PHP Development Team (See Credits file) |\n"); - ibase_blob_add($bl_h, "+----------------------------------------------------------------------+\n"); - ibase_blob_add($bl_h, "| This program is free software; you can redistribute it and/or modify |\n"); - ibase_blob_add($bl_h, "| it under the terms of one of the following licenses: |\n"); - ibase_blob_add($bl_h, "| |\n"); - ibase_blob_add($bl_h, "| A) the GNU General Public License as published by the Free Software |\n"); - ibase_blob_add($bl_h, "| Foundation; either version 2 of the License, or (at your option) |\n"); - ibase_blob_add($bl_h, "| any later version. |\n"); - ibase_blob_add($bl_h, "| |\n"); - ibase_blob_add($bl_h, "| B) the PHP License as published by the PHP Development Team and |\n"); - ibase_blob_add($bl_h, "| included in the distribution in the file: LICENSE |\n"); - ibase_blob_add($bl_h, "| |\n"); - ibase_blob_add($bl_h, "| This program is distributed in the hope that it will be useful, |\n"); - ibase_blob_add($bl_h, "| but WITHOUT ANY WARRANTY; without even the implied warranty of |\n"); - ibase_blob_add($bl_h, "| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |\n"); - ibase_blob_add($bl_h, "| GNU General Public License for more details. |\n"); - ibase_blob_add($bl_h, "| |\n"); - ibase_blob_add($bl_h, "| You should have received a copy of both licenses referred to here. |\n"); - ibase_blob_add($bl_h, "| If you did not, or have any questions about PHP licensing, please |\n"); - ibase_blob_add($bl_h, "| contact core@php.net. |\n"); - ibase_blob_add($bl_h, "+----------------------------------------------------------------------+\n"); - $bl_s = ibase_blob_close($bl_h); - ibase_query("INSERT INTO test4 (v_integer, v_blob) VALUES (3, ?)", $bl_s); - ibase_commit(); - echo "echo blob 3\n"; - - $q = ibase_query("SELECT v_blob FROM test4 WHERE v_integer = 3"); - $row = ibase_fetch_object($q); - ibase_commit(); - ibase_close(); - - $link = ibase_connect($test_base); - ibase_blob_echo($link, $row->V_BLOB); - ibase_free_result($q); - - echo "fetch blob 3\n"; - $q = ibase_query("SELECT v_blob FROM test4 WHERE v_integer = 3"); - $row = ibase_fetch_object($q,IBASE_TEXT); - echo $row->V_BLOB; - ibase_free_result($q); - - ibase_close(); - unlink($name); - echo "end of test\n"; -?> ---EXPECT-- -import blob 1 -test blob 1 -create blob 2 -test blob 2 -create blob 3 -echo blob 3 -+----------------------------------------------------------------------+ -| PHP HTML Embedded Scripting Language Version 3.0 | -+----------------------------------------------------------------------+ -| Copyright (c) 1997-2000 PHP Development Team (See Credits file) | -+----------------------------------------------------------------------+ -| This program is free software; you can redistribute it and/or modify | -| it under the terms of one of the following licenses: | -| | -| A) the GNU General Public License as published by the Free Software | -| Foundation; either version 2 of the License, or (at your option) | -| any later version. | -| | -| B) the PHP License as published by the PHP Development Team and | -| included in the distribution in the file: LICENSE | -| | -| This program is distributed in the hope that it will be useful, | -| but WITHOUT ANY WARRANTY; without even the implied warranty of | -| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | -| GNU General Public License for more details. | -| | -| You should have received a copy of both licenses referred to here. | -| If you did not, or have any questions about PHP licensing, please | -| contact core@php.net. | -+----------------------------------------------------------------------+ -fetch blob 3 -+----------------------------------------------------------------------+ -| PHP HTML Embedded Scripting Language Version 3.0 | -+----------------------------------------------------------------------+ -| Copyright (c) 1997-2000 PHP Development Team (See Credits file) | -+----------------------------------------------------------------------+ -| This program is free software; you can redistribute it and/or modify | -| it under the terms of one of the following licenses: | -| | -| A) the GNU General Public License as published by the Free Software | -| Foundation; either version 2 of the License, or (at your option) | -| any later version. | -| | -| B) the PHP License as published by the PHP Development Team and | -| included in the distribution in the file: LICENSE | -| | -| This program is distributed in the hope that it will be useful, | -| but WITHOUT ANY WARRANTY; without even the implied warranty of | -| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | -| GNU General Public License for more details. | -| | -| You should have received a copy of both licenses referred to here. | -| If you did not, or have any questions about PHP licensing, please | -| contact core@php.net. | -+----------------------------------------------------------------------+ -end of test diff --git a/ext/interbase/tests/005.phpt b/ext/interbase/tests/005.phpt deleted file mode 100644 index 9a9acfd092..0000000000 --- a/ext/interbase/tests/005.phpt +++ /dev/null @@ -1,289 +0,0 @@ ---TEST-- -InterBase: transactions ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -default transaction: -empty table ---- test5 --- ---- -one row ---- test5 --- -1 ---- -after rollback table empty again ---- test5 --- ---- -one row ---- test5 --- -2 ---- -one row ---- test5 --- -2 ---- -one row... again. ---- test5 --- -2 ---- -one row. ---- test5 --- -2 ---- -one row ---- test5 --- -2 ---- -two rows ---- test5 --- -2 -3 ---- -two rows again ---- test5 --- -2 -4 ---- -one row in second transaction ---- test5 --- -2 ---- -three rows in third transaction ---- test5 --- -2 -3 -4 ---- -three rows in fourth transaction with deadlock ---- test5 --- -2 -3 -4 -errmsg [lock conflict on no wait transaction deadlock %a] ---- -three rows ---- test5 --- -2 -3 -4 ---- -four rows ---- test5 --- -2 -3 -4 -5 ---- -four rows again ---- test5 --- -2 -3 -4 -5 ---- -end of test diff --git a/ext/interbase/tests/006.phpt b/ext/interbase/tests/006.phpt deleted file mode 100644 index b3ced2337b..0000000000 --- a/ext/interbase/tests/006.phpt +++ /dev/null @@ -1,300 +0,0 @@ ---TEST-- -InterBase: binding (may take a while) ---SKIPIF-- - ---FILE-- -V_CHAR,0,strlen($v_char)) != $v_char) { - echo " CHAR fail:\n"; - echo " in: $v_char\n"; - echo " out: $row->V_CHAR\n"; - } - if($row->V_DATE != $v_date) { - echo " DATE fail\n"; - echo " in: $v_date\n"; - echo " out: $row->V_DATE\n"; - } - if($row->V_DECIMAL != $v_decimal) { - echo " DECIMAL fail\n"; - echo " in: $v_decimal\n"; - echo " out: $row->V_DECIMAL\n"; - } - if(abs($row->V_DOUBLE - $v_double) > abs($v_double / 1E15)) { - echo " DOUBLE fail\n"; - echo " in: $v_double\n"; - echo " out: $row->V_DOUBLE\n"; - } - if(abs($row->V_FLOAT - $v_float) > abs($v_float / 1E7)) { - echo " FLOAT fail\n"; - echo " in: $v_float\n"; - echo " out: $row->V_FLOAT\n"; - } - if($row->V_INTEGER != $v_integer) { - echo " INTEGER fail\n"; - echo " in: $v_integer\n"; - echo " out: $row->V_INTEGER\n"; - } - if ($row->V_NUMERIC != $v_numeric) { - echo " NUMERIC fail\n"; - echo " in: $v_numeric\n"; - echo " out: $row->V_NUMERIC\n"; - } - if ($row->V_SMALLINT != $v_smallint) { - echo " SMALLINT fail\n"; - echo " in: $v_smallint\n"; - echo " out: $row->V_SMALLINT\n"; - } - if ($row->V_VARCHAR != $v_varchar) { - echo " VARCHAR fail:\n"; - echo " in: $v_varchar\n"; - echo " out: $row->V_VARCHAR\n"; - } - ibase_free_result($sel); - }/* for($iter)*/ - - echo "select\n"; - for($iter = 0; $iter < 3; $iter++) { - /* prepare data */ - $v_char = rand_str(1000); - $v_date = (int)rand_number(10,0,0); - $v_decimal = rand_number(12,3); - $v_double = rand_number(20); - $v_float = rand_number(7); - $v_integer = rand_number(9,0); - $v_numeric = rand_number(4,2); - $v_smallint = rand_number(5) % 32767; - $v_varchar = rand_str(10000); - - /* clear table*/ - ibase_query("delete from test6"); - - /* make one record */ - ibase_query("insert into test6 - (iter, v_char,v_date,v_decimal, - v_integer,v_numeric,v_smallint,v_varchar) - values (666, '$v_char',?,$v_decimal, $v_integer, - $v_numeric, $v_smallint, '$v_varchar')",$v_date); - - /* test all types */ - if(!($sel = ibase_query( - "select iter from test6 where v_char = ?", $v_char)) || - !ibase_fetch_row($sel)) { - echo "CHAR fail\n"; - } - ibase_free_result($sel); - if(!($sel = ibase_query( - "select iter from test6 where v_date = ?", $v_date)) || - !ibase_fetch_row($sel)) { - echo "DATE fail\n"; - } - ibase_free_result($sel); - if(!($sel = ibase_query( - "select iter from test6 where v_decimal = ?", $v_decimal)) || - !ibase_fetch_row($sel)) { - echo "DECIMAL fail\n"; - } - ibase_free_result($sel); - if(!($sel = ibase_query( - "select iter from test6 where v_integer = ?", $v_integer)) || - !ibase_fetch_row($sel)) { - echo "INTEGER fail\n"; - } - ibase_free_result($sel); - if(!($sel = ibase_query( - "select iter from test6 where v_numeric = ?", $v_numeric)) || - !ibase_fetch_row($sel)) { - echo "NUMERIC fail\n"; - } - ibase_free_result($sel); - if(!($sel = ibase_query( - "select iter from test6 where v_smallint = ?", $v_smallint)) || - !ibase_fetch_row($sel)) { - echo "SMALLINT fail\n"; - } - ibase_free_result($sel); - if(!($sel = ibase_query( - "select iter from test6 where v_varchar = ?", $v_varchar)) || - !ibase_fetch_row($sel)) { - echo "VARCHAR fail\n"; - } - ibase_free_result($sel); - - } /*for iter*/ - - echo "prepare and exec insert\n"; - - /* prepare table */ - ibase_query("delete from test6"); - - /* prepare query */ - $query = ibase_prepare( - "insert into test6 (v_integer) values (?)"); - - for($i = 0; $i < 10; $i++) { - ibase_execute($query, $i); - } - - out_table("test6"); - - ibase_free_query($query); - - echo "prepare and exec select\n"; - - /* prepare query */ - $query = ibase_prepare("select * from test6 - where v_integer between ? and ?"); - - $low_border = 2; - $high_border = 6; - - $res = ibase_execute($query, $low_border, $high_border); - out_result($res, "test6"); - ibase_free_result($res); - - $low_border = 0; - $high_border = 4; - $res = ibase_execute($query, $low_border, $high_border); - out_result($res, "test6"); - ibase_free_result($res); - - $res = ibase_execute($query, "5", 7.499); - out_result($res, "test6"); - ibase_free_result($res); - - ibase_free_query($query); - - /* test execute procedure */ - $query = ibase_prepare("execute procedure add1(?)"); - $res = array(); - for ($i = 0; $i < 10; $i++) { - $res[] = ibase_execute($query,$i); - } - ibase_free_query($query); - foreach ($res as $r) { - out_result($r, "proc add1"); - ibase_free_result($r); - } - - ibase_close(); - echo "end of test\n"; -?> ---EXPECT-- -insert -select -prepare and exec insert ---- test6 --- - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 ---- -prepare and exec select ---- test6 --- - 2 - 3 - 4 - 5 - 6 ---- ---- test6 --- - 0 - 1 - 2 - 3 - 4 ---- ---- test6 --- - 5 - 6 - 7 ---- ---- proc add1 --- -1 ---- ---- proc add1 --- -2 ---- ---- proc add1 --- -3 ---- ---- proc add1 --- -4 ---- ---- proc add1 --- -5 ---- ---- proc add1 --- -6 ---- ---- proc add1 --- -7 ---- ---- proc add1 --- -8 ---- ---- proc add1 --- -9 ---- ---- proc add1 --- -10 ---- -end of test diff --git a/ext/interbase/tests/007.phpt b/ext/interbase/tests/007.phpt deleted file mode 100644 index 8afe6e6ca3..0000000000 --- a/ext/interbase/tests/007.phpt +++ /dev/null @@ -1,183 +0,0 @@ ---TEST-- -InterBase: array handling ---SKIPIF-- - ---FILE-- -V_CHAR[$i],$v_char[$i],strlen($v_char[$i])) != 0) { - echo " CHAR[$i] fail:\n"; - echo " in: ".$v_char[$i]."\n"; - echo " out: ".$row->V_CHAR[$i]."\n"; - } - if($row->V_DATE[$i] != $v_date[$i]) { - echo " DATE[$i] fail\n"; - echo " in: ".$v_date[$i]."\n"; - echo " out: ".$row->V_DATE[$i]."\n"; - } - if($row->V_DECIMAL[$i] != $v_decimal[$i]) { - echo " DECIMAL[$i] fail\n"; - echo " in: ".$v_decimal[$i]."\n"; - echo " out: ".$row->V_DECIMAL[$i]."\n"; - } - if(abs($row->V_DOUBLE[$i] - $v_double[$i]) > abs($v_double[$i] / 1E15)) { - echo " DOUBLE[$i] fail\n"; - echo " in: ".$v_double[$i]."\n"; - echo " out: ".$row->V_DOUBLE[$i]."\n"; - } - if(abs($row->V_FLOAT[$i] - $v_float[$i]) > abs($v_float[$i] / 1E7)) { - echo " FLOAT[$i] fail\n"; - echo " in: ".$v_float[$i]."\n"; - echo " out: ".$row->V_FLOAT[$i]."\n"; - } - if($row->V_INTEGER[$i] != $v_integer[$i]) { - echo " INTEGER[$i] fail\n"; - echo " in: ".$v_integer[$i]."\n"; - echo " out: ".$row->V_INTEGER[$i]."\n"; - } - if ($row->V_NUMERIC[$i] != $v_numeric[$i]) { - echo " NUMERIC[$i] fail\n"; - echo " in: ".$v_numeric[$i]."\n"; - echo " out: ".$row->V_NUMERIC[$i]."\n"; - } - if ($row->V_SMALLINT[$i] != $v_smallint[$i]) { - echo " SMALLINT[$i] fail\n"; - echo " in: ".$v_smallint[$i]."\n"; - echo " out: ".$row->V_SMALLINT[$i]."\n"; - } - if ($row->V_VARCHAR[$i] != $v_varchar[$i]) { - echo " VARCHAR[$i] fail:\n"; - echo " in: ".$v_varchar[$i]."\n"; - echo " out: ".$row->V_VARCHAR[$i]."\n"; - } - } - ibase_free_result($sel); - }/* for($iter) */ - - echo "select\n"; - - $sel = ibase_query("SELECT v_multi[5,5,5],v_multi[10,10,10] FROM test7 WHERE iter = 0"); - print_r(ibase_fetch_row($sel)); - ibase_free_result($sel); - - for($iter = 1; $iter <= 3; $iter++) { - - if(!($sel = ibase_query( - "select iter from test7 where v_char[$iter] LIKE ?", $v_char[$iter]."%")) || - !ibase_fetch_row($sel)) { - echo "CHAR fail\n"; - } - ibase_free_result($sel); - - if(!($sel = ibase_query( - "select iter from test7 where v_date[$iter] = ?", $v_date[$iter])) || - !ibase_fetch_row($sel)) { - echo "DATE fail\n"; - } - ibase_free_result($sel); - if(!($sel = ibase_query( - "select iter from test7 where v_decimal[$iter] = ?", $v_decimal[$iter])) || - !ibase_fetch_row($sel)) { - echo "DECIMAL fail\n"; - } - ibase_free_result($sel); - if(!($sel = ibase_query( - "select iter from test7 where v_integer[$iter] = ?", $v_integer[$iter])) || - !ibase_fetch_row($sel)) { - echo "INTEGER fail\n"; - } - ibase_free_result($sel); - if(!($sel = ibase_query( - "select iter from test7 where v_numeric[$iter] = ?", $v_numeric[$iter])) || - !ibase_fetch_row($sel)) { - echo "NUMERIC fail\n"; - } - ibase_free_result($sel); - if(!($sel = ibase_query( - "select iter from test7 where v_smallint[$iter] = ?", $v_smallint[$iter])) || - !ibase_fetch_row($sel)) { - echo "SMALLINT fail\n"; - } - ibase_free_result($sel); - } - ibase_close(); - echo "end of test\n"; -?> ---EXPECT-- -insert -select -Array -( - [0] => 125 - [1] => 1000 -) -end of test diff --git a/ext/interbase/tests/008.phpt b/ext/interbase/tests/008.phpt deleted file mode 100644 index c7b01dc2ed..0000000000 --- a/ext/interbase/tests/008.phpt +++ /dev/null @@ -1,48 +0,0 @@ ---TEST-- -InterBase: event handling ---SKIPIF-- - ---FILE-- - 5) echo "FAIL ($count)\n"; -echo "end of test\n"; - -?> ---EXPECT-- -end of test diff --git a/ext/interbase/tests/bug45373.phpt b/ext/interbase/tests/bug45373.phpt deleted file mode 100644 index 57ac126d07..0000000000 --- a/ext/interbase/tests/bug45373.phpt +++ /dev/null @@ -1,47 +0,0 @@ ---TEST-- -Bug #45373 (php crash on query with errors in params) ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -array(2) { - ["I"]=> - int(1) - ["C"]=> - string(32) "test table not created with isql" -} - -Notice: ibase_execute(): Statement expects 2 arguments, 3 given in %s on line %d -array(2) { - ["I"]=> - int(1) - ["C"]=> - string(32) "test table not created with isql" -} - -Warning: ibase_execute(): Statement expects 2 arguments, 1 given in %s on line %d - -Warning: ibase_fetch_assoc() expects parameter 1 to be resource, bool given in %s on line %d -NULL diff --git a/ext/interbase/tests/bug45575.phpt b/ext/interbase/tests/bug45575.phpt deleted file mode 100644 index ca0fa831e0..0000000000 --- a/ext/interbase/tests/bug45575.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -Bug #45575 (Segfault with invalid non-string as event handler callback) ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Warning: ibase_set_event_handler(): Callback argument is not a callable function in %s on line %d - -Warning: ibase_set_event_handler(): Callback argument 1 is not a callable function in %s on line %d diff --git a/ext/interbase/tests/bug46247.phpt b/ext/interbase/tests/bug46247.phpt deleted file mode 100644 index f682ff66f0..0000000000 --- a/ext/interbase/tests/bug46247.phpt +++ /dev/null @@ -1,35 +0,0 @@ ---TEST-- -Bug #46247 (ibase_set_event_handler() is allowing to pass callback without event) ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Warning: Wrong parameter count for ibase_set_event_handler() in %s on line %d - -Warning: ibase_set_event_handler(): supplied argument is not a valid InterBase link resource in %s on line %d - -Warning: ibase_set_event_handler(): Callback argument foo is not a callable function in %s on line %d - -Warning: ibase_set_event_handler(): Callback argument foo is not a callable function in %s on line %d - -Warning: ibase_set_event_handler(): supplied argument is not a valid InterBase link resource in %s on line %d diff --git a/ext/interbase/tests/bug46543.phpt b/ext/interbase/tests/bug46543.phpt deleted file mode 100644 index 88f38a6bd1..0000000000 --- a/ext/interbase/tests/bug46543.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -Bug #46543 (ibase_trans() memory leaks when using wrong parameters) ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Warning: ibase_trans(): supplied resource is not a valid Firebird/InterBase link resource in %sbug46543.php on line %d - -Warning: ibase_trans(): supplied resource is not a valid Firebird/InterBase link resource in %sbug46543.php on line %d - -Warning: ibase_trans(): supplied resource is not a valid Firebird/InterBase link resource in %sbug46543.php on line %d - -Warning: ibase_trans(): supplied resource is not a valid Firebird/InterBase link resource in %sbug46543.php on line %d diff --git a/ext/interbase/tests/ibase_affected_rows_001.phpt b/ext/interbase/tests/ibase_affected_rows_001.phpt deleted file mode 100644 index 398a84c8bb..0000000000 --- a/ext/interbase/tests/ibase_affected_rows_001.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -ibase_affected_rows(): Basic test ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -int(3) -int(0) - -Warning: ibase_query(): Dynamic SQL Error SQL error code = -104 %s on line %d -int(0) diff --git a/ext/interbase/tests/ibase_close_001.phpt b/ext/interbase/tests/ibase_close_001.phpt deleted file mode 100644 index 80c17314d0..0000000000 --- a/ext/interbase/tests/ibase_close_001.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -ibase_close(): Basic test ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -bool(true) -bool(true) -bool(true) - -Warning: ibase_close() expects parameter 1 to be resource, string given in %s on line %d -NULL diff --git a/ext/interbase/tests/ibase_drop_db_001.phpt b/ext/interbase/tests/ibase_drop_db_001.phpt deleted file mode 100644 index 5aabb8bffe..0000000000 --- a/ext/interbase/tests/ibase_drop_db_001.phpt +++ /dev/null @@ -1,31 +0,0 @@ ---TEST-- -ibase_drop_db(): Basic test ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -resource(%d) of type (Firebird/InterBase link) -bool(true) - -Warning: ibase_drop_db() expects parameter 1 to be resource, int given in %s on line %d -NULL - -Warning: ibase_drop_db() expects parameter 1 to be resource, null given in %s on line %d -NULL diff --git a/ext/interbase/tests/ibase_errmsg_001.phpt b/ext/interbase/tests/ibase_errmsg_001.phpt deleted file mode 100644 index ad0e827f98..0000000000 --- a/ext/interbase/tests/ibase_errmsg_001.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -ibase_errmsg(): Basic test ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Warning: ibase_query(): Dynamic SQL Error SQL error code = -104 %s on line %d -string(%d) "Dynamic SQL Error SQL error code = -104 %s" -bool(false) diff --git a/ext/interbase/tests/ibase_free_query_001.phpt b/ext/interbase/tests/ibase_free_query_001.phpt deleted file mode 100644 index 069f0f0424..0000000000 --- a/ext/interbase/tests/ibase_free_query_001.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -ibase_free_query(): Basic test ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -bool(true) - -Warning: ibase_free_query(): supplied resource is not a valid Firebird/InterBase query resource in %s on line %d -bool(false) - -Warning: ibase_free_query(): supplied resource is not a valid Firebird/InterBase query resource in %s on line %d -bool(false) diff --git a/ext/interbase/tests/ibase_num_fields_001.phpt b/ext/interbase/tests/ibase_num_fields_001.phpt deleted file mode 100644 index 3c4074e244..0000000000 --- a/ext/interbase/tests/ibase_num_fields_001.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -ibase_num_fields(): Basic test ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -int(2) - -Warning: ibase_num_fields() expects parameter 1 to be resource, int given in %s on line %d -NULL - -Warning: ibase_num_fields() expects exactly 1 parameter, 0 given in %s on line %d -NULL diff --git a/ext/interbase/tests/ibase_num_params_001.phpt b/ext/interbase/tests/ibase_num_params_001.phpt deleted file mode 100644 index 709c9b769b..0000000000 --- a/ext/interbase/tests/ibase_num_params_001.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -ibase_num_params(): Basic test ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -int(2) - -Warning: ibase_num_params() expects exactly 1 parameter, 0 given in %s on line %d -NULL - -Warning: ibase_prepare(): Dynamic SQL Error SQL error code = -206 %s in %s on line %d - -Warning: ibase_num_params() expects parameter 1 to be resource, bool given in %s on line %d -NULL diff --git a/ext/interbase/tests/ibase_param_info_001.phpt b/ext/interbase/tests/ibase_param_info_001.phpt deleted file mode 100644 index 31fe196ce6..0000000000 --- a/ext/interbase/tests/ibase_param_info_001.phpt +++ /dev/null @@ -1,53 +0,0 @@ ---TEST-- -ibase_param_info(): Basic test ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -array(10) { - [0]=> - string(0) "" - ["name"]=> - string(0) "" - [1]=> - string(0) "" - ["alias"]=> - string(0) "" - [2]=> - string(0) "" - ["relation"]=> - string(0) "" - [3]=> - string(1) "4" - ["length"]=> - string(1) "4" - [4]=> - string(7) "INTEGER" - ["type"]=> - string(7) "INTEGER" -} ---- -bool(false) ---- - -Warning: ibase_param_info() expects exactly 2 parameters, 1 given in %s on line %d -NULL diff --git a/ext/interbase/tests/ibase_rollback_001.phpt b/ext/interbase/tests/ibase_rollback_001.phpt deleted file mode 100644 index 3cde5e9d46..0000000000 --- a/ext/interbase/tests/ibase_rollback_001.phpt +++ /dev/null @@ -1,41 +0,0 @@ ---TEST-- -ibase_rollback(): Basic test ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -array(1) { - [0]=> - int(3) -} -bool(true) -array(1) { - [0]=> - int(0) -} -bool(true) - -Warning: ibase_rollback(): invalid transaction handle (expecting explicit transaction start) in %s on line %d -bool(false) diff --git a/ext/interbase/tests/ibase_trans_001.phpt b/ext/interbase/tests/ibase_trans_001.phpt deleted file mode 100644 index cceb60e9a1..0000000000 --- a/ext/interbase/tests/ibase_trans_001.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -ibase_trans(): Basic test ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -resource(%d) of type (Firebird/InterBase transaction) -resource(%d) of type (Firebird/InterBase transaction) -bool(true) -bool(true) diff --git a/ext/interbase/tests/ibase_trans_002.phpt b/ext/interbase/tests/ibase_trans_002.phpt deleted file mode 100644 index be7c073ca3..0000000000 --- a/ext/interbase/tests/ibase_trans_002.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -ibase_trans(): Basic operations ---SKIPIF-- - ---FILE-- - ---EXPECT-- -int(1) -array(2) { - ["I"]=> - int(100) - ["C"]=> - string(3) "100" -} diff --git a/ext/interbase/tests/interbase.inc b/ext/interbase/tests/interbase.inc deleted file mode 100644 index eb762b5d90..0000000000 --- a/ext/interbase/tests/interbase.inc +++ /dev/null @@ -1,120 +0,0 @@ - diff --git a/ext/interbase/tests/skipif.inc b/ext/interbase/tests/skipif.inc deleted file mode 100644 index c854f5bc99..0000000000 --- a/ext/interbase/tests/skipif.inc +++ /dev/null @@ -1,8 +0,0 @@ - -- cgit v1.2.1