]> granicus.if.org Git - php/commitdiff
fix sybase tests
authorAntony Dovgal <tony2001@php.net>
Sun, 11 Mar 2007 12:54:48 +0000 (12:54 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 11 Mar 2007 12:54:48 +0000 (12:54 +0000)
ext/sybase_ct/tests/test.inc

index 48aa7d23b32c51767575226ce77966cbc79675af..6f9035df06a9e70750d8435fbc7ae645e6fec6aa 100644 (file)
@@ -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);
   }
   // }}}
 ?>