uw Fri Jul 3 07:49:47 2009 UTC
Modified files:
/php-src/ext/mysqli/tests
mysqli_stmt_bind_param_check_param_no_change.phpt
Log:
Fixing borked test - thanks again new run-tests.php tool (and team).
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/mysqli_stmt_bind_param_check_param_no_change.phpt?r1=1.4&r2=1.5&diff_format=u
Index:
php-src/ext/mysqli/tests/mysqli_stmt_bind_param_check_param_no_change.phpt
diff -u
php-src/ext/mysqli/tests/mysqli_stmt_bind_param_check_param_no_change.phpt:1.4
php-src/ext/mysqli/tests/mysqli_stmt_bind_param_check_param_no_change.phpt:1.5
---
php-src/ext/mysqli/tests/mysqli_stmt_bind_param_check_param_no_change.phpt:1.4
Thu May 28 14:11:41 2009
+++ php-src/ext/mysqli/tests/mysqli_stmt_bind_param_check_param_no_change.phpt
Fri Jul 3 07:49:47 2009
@@ -19,7 +19,7 @@
$foo = new foo;
$foo->bar = "ÑÑбаÑ";
- echo "Test 1: \n";
+ echo "Test 1:\n";
$stmt = $link->prepare("SELECT ? FOO");
var_dump($foo); // here you can see the bar member var beeing a string
$stmt->bind_param("s", $foo->bar);
@@ -30,11 +30,11 @@
$stmt->free_result();
echo("$one\n\n");
- // it is getting worse. Binding the same var twice with different
+ // it is getting worse. Binding the same var twice with different
// types you can get unexpected results (e.g. binary trash for the
// string and misc data for the integer. See next 2 tests.
- echo "Test 2: \n";
+ echo "Test 2:\n";
$stmt = $link->prepare("SELECT ? FOO, ? BAR");
var_dump($foo);
$stmt->bind_param("si", $foo->bar, $foo->bar);
@@ -50,7 +50,7 @@
echo("$one - $two\n\n");
- echo "Test 3: \n";
+ echo "Test 3:\n";
$stmt = $link->prepare("SELECT ? FOO, ? BAR");
var_dump($foo);
$stmt->bind_param("is", $foo->bar, $foo->bar);
@@ -60,89 +60,47 @@
$stmt->fetch();
$stmt->free_result();
echo("$one - $two\n\n");
- echo "done!\n";
+ echo "done!";
?>
--EXPECTF--
-Test 1:
-object(foo)#3 (1) {
- ["bar"]=>
- string(10) "ÑÑбаÑ"
-}
-object(foo)#3 (1) {
- ["bar"]=>
- &string(10) "ÑÑбаÑ"
+Test 1:
+object(foo)#%d (1) {
+ [%u|b%"bar"]=>
+ %unicode|string%(%d) "ÑÑбаÑ"
+}
+object(foo)#%d (1) {
+ [%u|b%"bar"]=>
+ &%unicode|string%(%d) "ÑÑбаÑ"
}
ÑÑбаÑ
-Test 2:
-object(foo)#3 (1) {
- ["bar"]=>
- string(10) "ÑÑбаÑ"
+Test 2:
+object(foo)#%d (1) {
+ [%u|b%"bar"]=>
+ %unicode|string%(%d) "ÑÑбаÑ"
}
---
-object(foo)#3 (1) {
- ["bar"]=>
- &string(10) "ÑÑбаÑ"
+object(foo)#%d (1) {
+ [%u|b%"bar"]=>
+ &%unicode|string%(%d) "ÑÑбаÑ"
}
---
-object(foo)#3 (1) {
- ["bar"]=>
- &string(10) "ÑÑбаÑ"
+object(foo)#%d (1) {
+ [%u|b%"bar"]=>
+ &%unicode|string%(%d) "ÑÑбаÑ"
}
---
ÑÑÐ±Ð°Ñ - 0
-Test 3:
-object(foo)#3 (1) {
- ["bar"]=>
- string(10) "ÑÑбаÑ"
-}
-object(foo)#3 (1) {
- ["bar"]=>
- &string(10) "ÑÑбаÑ"
+Test 3:
+object(foo)#%d (1) {
+ [%u|b%"bar"]=>
+ %unicode|string%(%d) "ÑÑбаÑ"
+}
+object(foo)#%d (1) {
+ [%u|b%"bar"]=>
+ &%unicode|string%(%d) "ÑÑбаÑ"
}
0 - ÑÑбаÑ
-done!
---UEXPECTF--
-Test 1:
-object(foo)#3 (1) {
- [u"bar"]=>
- unicode(5) "ÑÑбаÑ"
-}
-object(foo)#3 (1) {
- [u"bar"]=>
- &unicode(5) "ÑÑбаÑ"
-}
-ÑÑбаÑ
-
-Test 2:
-object(foo)#3 (1) {
- [u"bar"]=>
- unicode(5) "ÑÑбаÑ"
-}
----
-object(foo)#3 (1) {
- [u"bar"]=>
- &unicode(5) "ÑÑбаÑ"
-}
----
-object(foo)#3 (1) {
- [u"bar"]=>
- &unicode(5) "ÑÑбаÑ"
-}
----
-ÑÑÐ±Ð°Ñ - 0
-
-Test 3:
-object(foo)#3 (1) {
- [u"bar"]=>
- unicode(5) "ÑÑбаÑ"
-}
-object(foo)#3 (1) {
- [u"bar"]=>
- &unicode(5) "ÑÑбаÑ"
-}
-0 - ÑÑбаÑ
-
-done!
+done!
\ No newline at end of file
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php