thekid Sat Nov 8 14:24:38 2008 UTC Modified files: (Branch: PHP_5_2) /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.1.4.1&r2=1.1.4.2&diff_format=u Index: php-src/ext/sybase_ct/tests/bug30312.phpt diff -u php-src/ext/sybase_ct/tests/bug30312.phpt:1.1.4.1 php-src/ext/sybase_ct/tests/bug30312.phpt:1.1.4.2 --- php-src/ext/sybase_ct/tests/bug30312.phpt:1.1.4.1 Wed Mar 14 11:46:06 2007 +++ php-src/ext/sybase_ct/tests/bug30312.phpt Sat Nov 8 14:24:38 2008 @@ -6,7 +6,7 @@ <?php /* This file is part of PHP test framework for ext/sybase_ct * - * $Id: bug30312.phpt,v 1.1.4.1 2007/03/14 11:46:06 thekid Exp $ + * $Id: bug30312.phpt,v 1.1.4.2 2008/11/08 14:24:38 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