summaryrefslogtreecommitdiff
path: root/ext/interbase/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ext/interbase/tests')
-rw-r--r--ext/interbase/tests/002.phpt2
-rw-r--r--ext/interbase/tests/003.phpt4
-rw-r--r--ext/interbase/tests/004.phpt8
-rw-r--r--ext/interbase/tests/006.phpt6
-rw-r--r--ext/interbase/tests/007.phpt14
-rw-r--r--ext/interbase/tests/008.phpt4
-rw-r--r--ext/interbase/tests/bug45373.phpt6
7 files changed, 22 insertions, 22 deletions
diff --git a/ext/interbase/tests/002.phpt b/ext/interbase/tests/002.phpt
index 37b0a4f344..6c7d780588 100644
--- a/ext/interbase/tests/002.phpt
+++ b/ext/interbase/tests/002.phpt
@@ -6,7 +6,7 @@ InterBase: connect, close and pconnect
<?php
require("interbase.inc");
-
+
ibase_connect($test_base);
out_table("test1");
ibase_close();
diff --git a/ext/interbase/tests/003.phpt b/ext/interbase/tests/003.phpt
index 8ee86d3e9e..70fa5f0d30 100644
--- a/ext/interbase/tests/003.phpt
+++ b/ext/interbase/tests/003.phpt
@@ -7,7 +7,7 @@ InterBase: misc sql types (may take a while)
require("interbase.inc");
ibase_connect($test_base);
-
+
ibase_query(
"create table test3 (
iter integer not null,
@@ -129,7 +129,7 @@ InterBase: misc sql types (may take a while)
$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";
?>
diff --git a/ext/interbase/tests/004.phpt b/ext/interbase/tests/004.phpt
index 54a6b7b9b5..4e63ce205f 100644
--- a/ext/interbase/tests/004.phpt
+++ b/ext/interbase/tests/004.phpt
@@ -6,7 +6,7 @@ InterBase: BLOB test
<?php
require("interbase.inc");
-
+
$link = ibase_connect($test_base);
ibase_query(
@@ -38,7 +38,7 @@ InterBase: BLOB test
$row = ibase_fetch_object($q);
$bl_h = ibase_blob_open($row->V_BLOB);
- $blob = '';
+ $blob = '';
while($piece = ibase_blob_get($bl_h, 1 + rand() % 1024))
$blob .= $piece;
if($blob != $blob_str)
@@ -47,7 +47,7 @@ InterBase: BLOB test
$bl_h = ibase_blob_open($link,$row->V_BLOB);
- $blob = '';
+ $blob = '';
while($piece = ibase_blob_get($bl_h, 100 * 1024))
$blob .= $piece;
if($blob != $blob_str)
@@ -108,7 +108,7 @@ InterBase: BLOB test
$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);
diff --git a/ext/interbase/tests/006.phpt b/ext/interbase/tests/006.phpt
index a32807eec0..cf360045ed 100644
--- a/ext/interbase/tests/006.phpt
+++ b/ext/interbase/tests/006.phpt
@@ -6,9 +6,9 @@ InterBase: binding (may take a while)
<?php
require("interbase.inc");
-
+
ibase_connect($test_base);
-
+
ibase_query(
"create table test6 (
iter integer,
@@ -171,7 +171,7 @@ InterBase: binding (may take a while)
echo "VARCHAR fail\n";
}
ibase_free_result($sel);
-
+
} /*for iter*/
echo "prepare and exec insert\n";
diff --git a/ext/interbase/tests/007.phpt b/ext/interbase/tests/007.phpt
index 92e7c73984..8afe6e6ca3 100644
--- a/ext/interbase/tests/007.phpt
+++ b/ext/interbase/tests/007.phpt
@@ -6,9 +6,9 @@ InterBase: array handling
<?php
require("interbase.inc");
-
+
ibase_connect($test_base);
-
+
ibase_query(
"create table test7 (
iter integer,
@@ -29,7 +29,7 @@ InterBase: array handling
ini_set('ibase.timestampformat',"%m/%d/%Y %H:%M:%S");
echo "insert\n";
-
+
for ($i = 1; $i <= 10; ++$i) {
for ($j = 1; $j <= 10; ++$j) {
for ($k = 1; $k <= 10; ++$k) {
@@ -37,7 +37,7 @@ InterBase: array handling
}
}
}
-
+
for($iter = 0; $iter < 3; $iter++) {
/* prepare data */
@@ -62,7 +62,7 @@ InterBase: array handling
$v_smallint[$i] = rand_number(5) % 32767;
$v_varchar[$i] = rand_str(1000);
}
-
+
ibase_query("insert into test7
(iter,v_multi,v_char,v_date,v_decimal,v_double,v_float,
v_integer,v_numeric,v_smallint,v_varchar)
@@ -73,7 +73,7 @@ InterBase: array handling
$row = ibase_fetch_object($sel,IBASE_FETCH_ARRAYS);
for ($i = 1; $i <= 10; ++$i) {
-
+
if(strncmp($row->V_CHAR[$i],$v_char[$i],strlen($v_char[$i])) != 0) {
echo " CHAR[$i] fail:\n";
echo " in: ".$v_char[$i]."\n";
@@ -124,7 +124,7 @@ InterBase: array handling
}/* 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);
diff --git a/ext/interbase/tests/008.phpt b/ext/interbase/tests/008.phpt
index 6728b9d7d3..c7b01dc2ed 100644
--- a/ext/interbase/tests/008.phpt
+++ b/ext/interbase/tests/008.phpt
@@ -1,9 +1,9 @@
--TEST--
InterBase: event handling
--SKIPIF--
-<?php
+<?php
if (PHP_OS == "WINNT") echo "skip";
-include("skipif.inc");
+include("skipif.inc");
?>
--FILE--
<?php
diff --git a/ext/interbase/tests/bug45373.phpt b/ext/interbase/tests/bug45373.phpt
index b83bf214e2..57ac126d07 100644
--- a/ext/interbase/tests/bug45373.phpt
+++ b/ext/interbase/tests/bug45373.phpt
@@ -6,7 +6,7 @@ Bug #45373 (php crash on query with errors in params)
<?php
require("interbase.inc");
-
+
$db = ibase_connect($test_base);
@@ -16,11 +16,11 @@ Bug #45373 (php crash on query with errors in params)
$r = ibase_execute($q, 1, 'test table not created with isql');
var_dump(ibase_fetch_assoc($r));
ibase_free_result($r);
-
+
$r = ibase_execute($q, 1, 'test table not created with isql', 1);
var_dump(ibase_fetch_assoc($r));
ibase_free_result($r);
-
+
$r = ibase_execute($q, 1);
var_dump(ibase_fetch_assoc($r));