summaryrefslogtreecommitdiff
path: root/ext/sybase_ct/tests/test.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sybase_ct/tests/test.inc')
-rw-r--r--ext/sybase_ct/tests/test.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/sybase_ct/tests/test.inc b/ext/sybase_ct/tests/test.inc
index daf33007a..ebd399a25 100644
--- a/ext/sybase_ct/tests/test.inc
+++ b/ext/sybase_ct/tests/test.inc
@@ -1,7 +1,7 @@
<?php
/* This file is part of PHP test framework for ext/sybase_ct
*
- * $Id: test.inc,v 1.4 2004/02/10 20:39:08 thekid Exp $
+ * $Id: test.inc,v 1.4.6.2 2007/03/11 12:56:44 tony2001 Exp $
*/
// Change if needed
@@ -28,7 +28,7 @@
// {{{ public static bool static_handler(int msgnumber, int severity, int state, int line, string text)
// Handles server messages
- function static_handler($msgnumber, $severity, $state, $line, $text) {
+ static function static_handler($msgnumber, $severity, $state, $line, $text) {
return sybase_msg_handler($msgnumber, $severity, $state, $line, $text);
}
// }}}
@@ -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);
}
// }}}
?>