svn: /php/php-src/branches/PHP_5_3/ext/mysql/tests/ mysql_affected_rows.phpt
| From: | Rasmus Lerdorf | Date: | Mon, 03 Aug 2009 04:57:31 +0000 |
| Subject: | svn: /php/php-src/branches/PHP_5_3/ext/mysql/tests/ mysql_affected_rows.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-59971@lists.php.net to get a copy of this message | ||
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);