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

From: Date: Fri, 29 May 2009 12:55:55 +0000
Subject: cvs: php-src(PHP_5_3) /ext/mysqli/tests 057.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-58401@lists.php.net to get a copy of this message
uw Fri May 29 12:55:55 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/mysqli/tests 057.phpt Log: MFH - 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.4.6.4&r2=1.4.6.5&diff_format=u Index: php-src/ext/mysqli/tests/057.phpt diff -u php-src/ext/mysqli/tests/057.phpt:1.4.6.4 php-src/ext/mysqli/tests/057.phpt:1.4.6.5 --- php-src/ext/mysqli/tests/057.phpt:1.4.6.4 Thu May 28 14:33:42 2009 +++ php-src/ext/mysqli/tests/057.phpt Fri May 29 12:55:55 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 (#58401) next »