From: Ard Biesheuvel Date: Thu, 1 Apr 2004 18:23:45 +0000 (+0000) Subject: CS/WS X-Git-Tag: php-5.0.0RC2RC1~120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0956f5133c62a68021dde44d31409848f7271023;p=php CS/WS --- diff --git a/ext/interbase/tests/003.phpt b/ext/interbase/tests/003.phpt index d3e60461e5..315e0bb486 100644 --- a/ext/interbase/tests/003.phpt +++ b/ext/interbase/tests/003.phpt @@ -31,7 +31,7 @@ InterBase: misc sql types (may take a while) /* should fail, but gracefully */ @ibase_query("insert into test3 (iter) values (?)", null); - + /* if timefmt is not supported, suppress error here */ @ibase_timefmt("%m/%d/%Y %H:%M:%S"); @@ -41,7 +41,7 @@ InterBase: misc sql types (may take a while) $v_date = rand_datetime(); $v_decimal4_2 = rand_number(4,2); $v_decimal4_0 = rand_number(4,0); - $v_decimal7_2 = rand_number(7,2); + $v_decimal7_2 = rand_number(7,2); $v_decimal7_0 = rand_number(7,0); $v_numeric15_15 = rand_number(15,15); $v_numeric15_0 = $iter ? rand_number(15,0) : 0; @@ -96,7 +96,7 @@ InterBase: misc sql types (may take a while) 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"; @@ -117,13 +117,13 @@ InterBase: misc sql types (may take a while) echo " in: $v_smallint\n"; echo " out: $row->V_SMALLINT\n"; } - - if(substr($row->V_VARCHAR,0,strlen($v_varchar)) != $v_varchar){ + + 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) */ diff --git a/ext/interbase/tests/interbase.inc b/ext/interbase/tests/interbase.inc index 951835c146..668cf0d58a 100755 --- a/ext/interbase/tests/interbase.inc +++ b/ext/interbase/tests/interbase.inc @@ -52,7 +52,7 @@ function out_result($result, $table_name = "") function out_result_trap_error($result, $table_name = "") { echo "--- $table_name ---\n"; - while ($r = ibase_fetch_row($result)) { + while ($r = @ibase_fetch_row($result)) { echo join("\t",$r)."\t\n"; } echo "errmsg [" . ibase_errmsg() . "]\t\n";