diff options
Diffstat (limited to 'ext/interbase/tests')
| -rw-r--r-- | ext/interbase/tests/003.phpt | 26 | ||||
| -rw-r--r-- | ext/interbase/tests/006.phpt | 4 | ||||
| -rwxr-xr-x | ext/interbase/tests/skipif.inc | 8 |
3 files changed, 21 insertions, 17 deletions
diff --git a/ext/interbase/tests/003.phpt b/ext/interbase/tests/003.phpt index 4be516701..bc4338ad4 100644 --- a/ext/interbase/tests/003.phpt +++ b/ext/interbase/tests/003.phpt @@ -3,7 +3,7 @@ InterBase: misc sql types (may take a while) --SKIPIF-- <?php include("skipif.inc"); ?> --FILE-- -<?php /* $Id: 003.phpt 160078 2004-05-30 16:20:25Z abies $ */ +<?php /* $Id: 003.phpt 321992 2012-01-10 05:26:20Z mariuz $ */ require("interbase.inc"); ibase_connect($test_base); @@ -21,7 +21,7 @@ InterBase: misc sql types (may take a while) v_numeric15_0 numeric(15,0), v_double double precision, v_float float, - v_integer integer, + v_integer integer, v_smallint smallint, v_varchar varchar(10000) )"); @@ -157,27 +157,27 @@ array(22) { int(10) ["ID_10"]=> int(11) - ["FIELD_00"]=> + ["CONSTANT"]=> int(12) - ["FIELD_01"]=> + ["CONSTANT_01"]=> int(13) - ["FIELD_02"]=> + ["CONSTANT_02"]=> int(14) - ["FIELD_03"]=> + ["CONSTANT_03"]=> int(15) - ["FIELD_04"]=> + ["CONSTANT_04"]=> int(16) - ["FIELD_05"]=> + ["CONSTANT_05"]=> int(17) - ["FIELD_06"]=> + ["CONSTANT_06"]=> int(18) - ["FIELD_07"]=> + ["CONSTANT_07"]=> int(19) - ["FIELD_08"]=> + ["CONSTANT_08"]=> int(20) - ["FIELD_09"]=> + ["CONSTANT_09"]=> int(21) - ["FIELD_10"]=> + ["CONSTANT_10"]=> int(22) } end of test diff --git a/ext/interbase/tests/006.phpt b/ext/interbase/tests/006.phpt index 2aeb0739d..331d2437f 100644 --- a/ext/interbase/tests/006.phpt +++ b/ext/interbase/tests/006.phpt @@ -3,7 +3,7 @@ InterBase: binding (may take a while) --SKIPIF-- <?php include("skipif.inc"); ?> --FILE-- -<?php /* $Id: 006.phpt 160078 2004-05-30 16:20:25Z abies $ */ +<?php /* $Id: 006.phpt 316521 2011-09-12 09:56:45Z mariuz $ */ require("interbase.inc"); @@ -210,7 +210,7 @@ InterBase: binding (may take a while) out_result($res, "test6"); ibase_free_result($res); - $res = ibase_execute($query, "5", 7.5); + $res = ibase_execute($query, "5", 7.499); out_result($res, "test6"); ibase_free_result($res); diff --git a/ext/interbase/tests/skipif.inc b/ext/interbase/tests/skipif.inc index 78c0d5ca3..2430e7ca6 100755 --- a/ext/interbase/tests/skipif.inc +++ b/ext/interbase/tests/skipif.inc @@ -1,5 +1,9 @@ -<?php /* $Id: skipif.inc 155152 2004-04-01 16:25:51Z abies $ */ +<?php /* $Id: skipif.inc 317169 2011-09-22 22:07:02Z tyrael $ */ -if (!extension_loaded("interbase")) print "skip"; +if (!extension_loaded("interbase")) print "skip interbase extension not available"; +require("interbase.inc"); +if(!@ibase_connect($test_base)){ + die("skip cannot connnect"); +} ?> |
