From: Antony Dovgal Date: Sun, 11 Mar 2007 12:54:54 +0000 (+0000) Subject: fix tests X-Git-Tag: php-5.2.2RC1~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8ede1ec08dd4bab73d9ed88afb29d5ee80e56d6;p=php fix tests --- diff --git a/ext/sybase_ct/tests/test.inc b/ext/sybase_ct/tests/test.inc index 48aa7d23b3..8352120a5e 100644 --- a/ext/sybase_ct/tests/test.inc +++ b/ext/sybase_ct/tests/test.inc @@ -78,7 +78,8 @@ // {{{ mixed sybase_select_single(resource dbh, string query) // Fires an SQL query and returns the first value from the first row function sybase_select_single($dbh, $query) { - return array_shift(sybase_fetch_row(sybase_query($query, $dbh))); + $a = sybase_fetch_row(sybase_query($query, $dbh)); + return array_shift($a); } // }}} ?>