rasmus                                   Mon, 03 Aug 2009 04:57:31 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=286715

Log:
Given that we have a DB connection by the time we get here,
mysql_affected_rows() cannot return false.

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/mysql/tests/mysql_affected_rows.phpt

Modified: php/php-src/branches/PHP_5_3/ext/mysql/tests/mysql_affected_rows.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/mysql/tests/mysql_affected_rows.phpt       
2009-08-03 04:01:57 UTC (rev 286714)
+++ php/php-src/branches/PHP_5_3/ext/mysql/tests/mysql_affected_rows.phpt       
2009-08-03 04:57:31 UTC (rev 286715)
@@ -12,8 +12,8 @@
 $tmp    = NULL;
 $link   = NULL;

-if (false !== ($tmp = @mysql_affected_rows()))
-       printf("[001] Expecting boolean/false, got %s/%s\n", gettype($tmp), 
$tmp);
+if (0 !== ($tmp = @mysql_affected_rows()))
+       printf("[001] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);

 if (null !== ($tmp = @mysql_affected_rows($link)))
        printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);

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

Reply via email to