cvs: php-src /ext/mysqli/tests 057.phpt

From: Date: Fri, 29 May 2009 12:55:39 +0000
Subject: cvs: php-src /ext/mysqli/tests 057.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-58400@lists.php.net to get a copy of this message
uw Fri May 29 12:55:39 2009 UTC Modified files: /php-src/ext/mysqli/tests 057.phpt Log: Behaviour is undefined with libmysql, accept whatever libmysql may return. With mysqlnd you get the defined value of -1 to indicate 'no value'. http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/057.phpt?r1=1.11&r2=1.12&diff_format=u Index: php-src/ext/mysqli/tests/057.phpt diff -u php-src/ext/mysqli/tests/057.phpt:1.11 php-src/ext/mysqli/tests/057.phpt:1.12 --- php-src/ext/mysqli/tests/057.phpt:1.11 Thu May 28 14:11:40 2009 +++ php-src/ext/mysqli/tests/057.phpt Fri May 29 12:55:39 2009 @@ -33,7 +33,11 @@ $stmt = mysqli_prepare($link, "SELECT * FROM test_store_result"); var_dump(mysqli_execute($stmt)); var_dump(mysqli_stmt_reset($stmt)); + var_dump($stmt = mysqli_prepare($link, "SELECT * FROM test_store_result")); + if ($IS_MYSQLND && $stmt->affected_rows !== -1) + printf("[001] Expecting -1, got %d\n", $stmt->affected_rows); + var_dump(mysqli_execute($stmt)); var_dump($stmt = @mysqli_prepare($link, "SELECT * FROM test_store_result"), mysqli_error($link)); var_dump(mysqli_stmt_reset($stmt)); @@ -63,7 +67,7 @@ bool(true) object(mysqli_stmt)#%d (%d) { [%u|b%"affected_rows"]=> - int(-1) + int(%s) [%u|b%"insert_id"]=> int(0) [%u|b%"num_rows"]=>

« previous php.cvs (#58400) next »