thekid          Mon Nov 10 11:51:35 2008 UTC

  Modified files:              
    /php-src/ext/sybase_ct/tests        bug30312.phpt 
  Log:
  - MFB: Made this test independent of date format
  
http://cvs.php.net/viewvc.cgi/php-src/ext/sybase_ct/tests/bug30312.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/sybase_ct/tests/bug30312.phpt
diff -u php-src/ext/sybase_ct/tests/bug30312.phpt:1.3 
php-src/ext/sybase_ct/tests/bug30312.phpt:1.4
--- php-src/ext/sybase_ct/tests/bug30312.phpt:1.3       Fri Aug 10 13:28:11 2007
+++ php-src/ext/sybase_ct/tests/bug30312.phpt   Mon Nov 10 11:51:35 2008
@@ -6,7 +6,7 @@
 <?php
 /* This file is part of PHP test framework for ext/sybase_ct
  *
- * $Id: bug30312.phpt,v 1.3 2007/08/10 13:28:11 jani Exp $
+ * $Id: bug30312.phpt,v 1.4 2008/11/10 11:51:35 thekid Exp $
  */
 
   require('test.inc');
@@ -14,14 +14,14 @@
 
   $db= sybase_connect_ex();
 
-  $query= sybase_unbuffered_query('select getdate()');
+  $query= sybase_unbuffered_query('select datepart(yy, getdate())');
   $array= sybase_fetch_array($query);
   var_dump($array[0]);
 
-  $query= sybase_unbuffered_query('select getdate()');
+  $query= sybase_unbuffered_query('select datepart(yy, getdate())');
   $array= sybase_fetch_array($query);
   var_dump($array[0]);
 ?>
 --EXPECTF--
-string(%d) "%s %d %d %d:%d%s"
-string(%d) "%s %d %d %d:%d%s"
+int(%d)
+int(%d)



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to