]> granicus.if.org Git - php/commitdiff
- Fixed tests (removed UEXPECT(F) section)
authorFelipe Pena <felipe@php.net>
Mon, 5 Jan 2009 18:22:01 +0000 (18:22 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 5 Jan 2009 18:22:01 +0000 (18:22 +0000)
21 files changed:
ext/mysql/tests/001.phpt
ext/mysql/tests/002.phpt
ext/mysql/tests/003.phpt
ext/mysql/tests/mysql_escape_string.phpt
ext/mysql/tests/mysql_fetch_array.phpt
ext/mysql/tests/mysql_fetch_assoc.phpt
ext/mysql/tests/mysql_fetch_field.phpt
ext/mysql/tests/mysql_fetch_object.phpt
ext/mysql/tests/mysql_fetch_row.phpt
ext/mysql/tests/mysql_field_name.phpt
ext/mysql/tests/mysql_field_seek.phpt
ext/mysql/tests/mysql_field_table.phpt
ext/mysql/tests/mysql_field_type.phpt
ext/mysql/tests/mysql_pconn_max_links.phpt
ext/mysql/tests/mysql_query.phpt
ext/mysql/tests/mysql_real_escape_string.phpt
ext/mysql/tests/mysql_result.phpt
ext/mysql/tests/mysql_select_db.phpt
ext/mysql/tests/mysql_set_charset.phpt
ext/mysql/tests/mysql_tablename.phpt
ext/mysql/tests/mysql_unbuffered_query.phpt

index de3957190437d7186d021f380bee09b2a72f0d00..97eca80a3fd4a5ea3cd7adcad1e094a1bdf0e307 100755 (executable)
@@ -25,9 +25,6 @@ mysql_close($db);
 var_dump($test);
 print "done!";
 ?>
---EXPECT--
-string(2) "11"
-done!
---UEXPECTF--
+--EXPECTF--
 unicode(2) "11"
-done!
\ No newline at end of file
+done!
index 9c1250104d19f50aed839afea52079d1b4b6bcec..e5d68f265abfe4a80ed5615851b2f46e558fb57f 100755 (executable)
@@ -38,29 +38,6 @@ bool(true)
 bool(true)
 bool(true)
 resource(%d) of type (mysql result)
-array(3) {
-  ["col1"]=>
-  string(1) "1"
-  ["col2"]=>
-  string(3) "foo"
-  ["col3"]=>
-  string(3) "bar"
-}
-array(3) {
-  ["col1"]=>
-  string(1) "2"
-  ["col2"]=>
-  string(3) "foo"
-  ["col3"]=>
-  string(3) "bar"
-}
-done!
---UEXPECTF--
-resource(%d) of type (mysql link)
-bool(true)
-bool(true)
-bool(true)
-resource(%d) of type (mysql result)
 array(3) {
   [u"col1"]=>
   unicode(1) "1"
@@ -77,4 +54,4 @@ array(3) {
   [u"col3"]=>
   unicode(3) "bar"
 }
-done!
\ No newline at end of file
+done!
index 0c3717b29445f6c57917bea9329fa60173620790..5b2199782262d139b61716b2aba98294a4ab0e64 100755 (executable)
@@ -54,37 +54,6 @@ print "done!";
 ?>
 --EXPECTF--
 ==stdClass==
-object(stdClass)#%d (1) {
-  ["a"]=>
-  string(3) "one"
-}
-object(stdClass)#%d (1) {
-  ["a"]=>
-  string(3) "two"
-}
-object(stdClass)#%d (1) {
-  ["a"]=>
-  string(5) "three"
-}
-==class24==
-class24::__construct
-object(class24)#%d (1) {
-  ["a"]=>
-  string(3) "one"
-}
-class24::__construct
-object(class24)#%d (1) {
-  ["a"]=>
-  string(3) "two"
-}
-class24::__construct
-object(class24)#%d (1) {
-  ["a"]=>
-  string(5) "three"
-}
-done!
---UEXPECTF--
-==stdClass==
 object(stdClass)#%d (1) {
   [u"a"]=>
   unicode(3) "one"
@@ -113,4 +82,4 @@ object(class24)#%d (1) {
   [u"a"]=>
   unicode(5) "three"
 }
-done!
\ No newline at end of file
+done!
index 1badea8903a09ccf785f600c14710f2666feb0c7..6ff21e0ecaf224443ac63091075d294e5599cdb2 100644 (file)
@@ -23,15 +23,6 @@ var_dump(mysql_escape_string("foo" . chr(0) . "bar"));
 print "done!";
 ?>
 --EXPECTF--
-string(31) "Am I a unicode string in PHP 6?"
-string(2) "\\"
-string(2) "\""
-string(2) "\'"
-string(2) "\n"
-string(2) "\r"
-string(8) "foo\0bar"
-done!
---UEXPECTF--
 unicode(31) "Am I a unicode string in PHP 6?"
 unicode(2) "\\"
 unicode(2) "\""
@@ -39,4 +30,4 @@ unicode(2) "\'"
 unicode(2) "\n"
 unicode(2) "\r"
 unicode(8) "foo\0bar"
-done!
\ No newline at end of file
+done!
index 729523514abd9f97858df3348878042caf80e664..42e17558f0820cb15b2618379cfde91c5fa4d49d 100644 (file)
@@ -279,82 +279,6 @@ print "done!";
 ?>
 --EXPECTF--
 [005]
-array(4) {
-  [0]=>
-  string(1) "1"
-  ["id"]=>
-  string(1) "1"
-  [1]=>
-  string(1) "a"
-  ["label"]=>
-  string(1) "a"
-}
-[006]
-array(2) {
-  [0]=>
-  string(1) "2"
-  [1]=>
-  string(1) "b"
-}
-[007]
-array(4) {
-  [0]=>
-  string(1) "3"
-  ["id"]=>
-  string(1) "3"
-  [1]=>
-  string(1) "c"
-  ["label"]=>
-  string(1) "c"
-}
-[008]
-array(2) {
-  ["id"]=>
-  string(1) "4"
-  ["label"]=>
-  string(1) "d"
-}
-[009]
-array(4) {
-  [0]=>
-  string(1) "5"
-  ["id"]=>
-  string(1) "5"
-  [1]=>
-  string(1) "e"
-  ["label"]=>
-  string(1) "e"
-}
-[011]
-array(11) {
-  [0]=>
-  string(1) "1"
-  ["a"]=>
-  string(1) "2"
-  [1]=>
-  string(1) "2"
-  [2]=>
-  string(1) "3"
-  ["c"]=>
-  string(1) "3"
-  [3]=>
-  string(1) "4"
-  ["C"]=>
-  string(1) "4"
-  [4]=>
-  NULL
-  ["d"]=>
-  NULL
-  [5]=>
-  string(1) "1"
-  ["e"]=>
-  string(1) "1"
-}
-
-Warning: mysql_fetch_array(): %d is not a valid MySQL result resource in %s on line %d
-done!
---UEXPECTF--
-[005]
 array(4) {
   [0]=>
   unicode(1) "1"
index 4479a2ab3e8e07c73631add6a23ca8d6bde185c6..b0d2e5ae1ae2d6407d8e5791ea48196211afb756 100644 (file)
@@ -60,45 +60,6 @@ print "done!";
 ?>
 --EXPECTF--
 [005]
-array(2) {
-  ["id"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
-}
-[006]
-bool(false)
-[008]
-array(5) {
-  ["a"]=>
-  string(1) "2"
-  ["c"]=>
-  string(1) "3"
-  ["C"]=>
-  string(1) "4"
-  ["d"]=>
-  NULL
-  ["e"]=>
-  string(1) "1"
-}
-
-Warning: mysql_fetch_assoc(): %d is not a valid MySQL result resource in %s on line %d
-[010]
-array(5) {
-  ["id"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
-  ["_id"]=>
-  string(1) "1"
-  ["_label"]=>
-  string(2) "aa"
-  ["_foo"]=>
-  NULL
-}
-done!
---UEXPECTF--
-[005]
 array(2) {
   [u"id"]=>
   unicode(1) "1"
index c46335f9d6d143e9f2e0de4f9775e1648bec5dfc..f9b4416190f6cd40e7b716bdf3048448c308dcd2 100644 (file)
@@ -134,125 +134,6 @@ require_once('skipifconnectfailure.inc');
        print "done!";
 ?>
 --EXPECTF--
-object(stdClass)#%d (13) {
-  ["name"]=>
-  string(2) "ID"
-  ["table"]=>
-  string(4) "TEST"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
-  int(1)
-  ["not_null"]=>
-  int(1)
-  ["primary_key"]=>
-  int(1)
-  ["multiple_key"]=>
-  int(0)
-  ["unique_key"]=>
-  int(0)
-  ["numeric"]=>
-  int(1)
-  ["blob"]=>
-  int(0)
-  ["type"]=>
-  string(3) "int"
-  ["unsigned"]=>
-  int(0)
-  ["zerofill"]=>
-  int(0)
-}
-object(stdClass)#%d (13) {
-  ["name"]=>
-  string(5) "label"
-  ["table"]=>
-  string(4) "TEST"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
-  int(1)
-  ["not_null"]=>
-  int(0)
-  ["primary_key"]=>
-  int(0)
-  ["multiple_key"]=>
-  int(0)
-  ["unique_key"]=>
-  int(0)
-  ["numeric"]=>
-  int(0)
-  ["blob"]=>
-  int(0)
-  ["type"]=>
-  string(6) "string"
-  ["unsigned"]=>
-  int(0)
-  ["zerofill"]=>
-  int(0)
-}
-bool(false)
-
-Warning: mysql_fetch_field(): Bad field offset in %s on line %d
-
-Warning: mysql_fetch_field(): %d is not a valid MySQL result resource in %s on line %d
-object(stdClass)#%d (13) {
-  ["name"]=>
-  string(2) "id"
-  ["table"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
-  int(1)
-  ["not_null"]=>
-  int(0)
-  ["primary_key"]=>
-  int(0)
-  ["multiple_key"]=>
-  int(0)
-  ["unique_key"]=>
-  int(0)
-  ["numeric"]=>
-  int(1)
-  ["blob"]=>
-  int(0)
-  ["type"]=>
-  string(3) "int"
-  ["unsigned"]=>
-  int(0)
-  ["zerofill"]=>
-  int(0)
-}
-object(stdClass)#%d (13) {
-  ["name"]=>
-  string(2) "id"
-  ["table"]=>
-  string(4) "test"
-  ["def"]=>
-  string(1) "1"
-  ["max_length"]=>
-  int(0)
-  ["not_null"]=>
-  int(0)
-  ["primary_key"]=>
-  int(0)
-  ["multiple_key"]=>
-  int(0)
-  ["unique_key"]=>
-  int(0)
-  ["numeric"]=>
-  int(1)
-  ["blob"]=>
-  int(0)
-  ["type"]=>
-  string(3) "int"
-  ["unsigned"]=>
-  int(0)
-  ["zerofill"]=>
-  int(0)
-}
-done!
---UEXPECTF--
 object(stdClass)#%d (13) {
   [u"name"]=>
   unicode(2) "ID"
index cc20f738b0ec91d4078a5367062e2e7c3a172c05..4771477b2812d0cb07a0fe474a28fbe9f713cdc7 100644 (file)
@@ -78,75 +78,6 @@ mysql_close($link);
 print "done!";
 ?>
 --EXPECTF--
-object(stdClass)#%d (2) {
-  ["ID"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
-}
-object(mysql_fetch_object_test)#%d (4) {
-  ["a"]=>
-  NULL
-  ["b"]=>
-  NULL
-  ["ID"]=>
-  string(1) "2"
-  ["label"]=>
-  string(1) "b"
-}
-
-Warning: Missing argument 1 for mysql_fetch_object_construct::__construct() in %s on line %d
-
-Warning: Missing argument 2 for mysql_fetch_object_construct::__construct() in %s on line %d
-
-Notice: Undefined variable: a in %s on line %d
-
-Notice: Undefined variable: b in %s on line %d
-object(mysql_fetch_object_construct)#%d (4) {
-  ["a"]=>
-  NULL
-  ["b"]=>
-  NULL
-  ["ID"]=>
-  string(1) "3"
-  ["label"]=>
-  string(1) "c"
-}
-
-Warning: Missing argument 2 for mysql_fetch_object_construct::__construct() in %s on line %d
-
-Notice: Undefined variable: b in %s on line %d
-object(mysql_fetch_object_construct)#%d (4) {
-  ["a"]=>
-  string(1) "a"
-  ["b"]=>
-  NULL
-  ["ID"]=>
-  string(1) "4"
-  ["label"]=>
-  string(1) "d"
-}
-object(mysql_fetch_object_construct)#%d (4) {
-  ["a"]=>
-  string(1) "a"
-  ["b"]=>
-  string(1) "b"
-  ["ID"]=>
-  string(1) "5"
-  ["label"]=>
-  string(1) "e"
-}
-bool(false)
-bool(false)
-bool(false)
-bool(false)
-bool(false)
-
-Warning: mysql_fetch_object(): %d is not a valid MySQL result resource in %s on line %d
-bool(false)
-
-Fatal error: Class 'this_class_does_not_exist' not found in %s on line %d
---UEXPECTF--
 object(stdClass)#%d (2) {
   [u"ID"]=>
   unicode(1) "1"
index d9fff217add3c448dedf8acca10d7753c7b62ef7..09a44abb0ab91fcd1c3f02e9894333d6e6bea25c 100644 (file)
@@ -38,20 +38,6 @@ print "done!";
 ?>
 --EXPECTF--
 [004]
-array(2) {
-  [0]=>
-  string(1) "1"
-  [1]=>
-  string(1) "a"
-}
-[005]
-bool(false)
-
-Warning: mysql_fetch_row(): %d is not a valid MySQL result resource in %s on line %d
-bool(false)
-done!
---UEXPECTF--
-[004]
 array(2) {
   [0]=>
   unicode(1) "1"
index aeb516c8bbd70fd9e741f73ad62c0aeeb6617df4..d59e0e59d1cef1cb9f9ff0e610be2e9067310a3a 100644 (file)
@@ -44,17 +44,6 @@ print "done!";
 --EXPECTF--
 Warning: mysql_field_name() expects exactly 2 parameters, 1 given in %s on line %d
 
-Warning: mysql_field_name(): Field -1 is invalid for MySQL result index %d in %s on line %d
-string(2) "id"
-
-Warning: mysql_field_name(): Field 2 is invalid for MySQL result index %d in %s on line %d
-
-Warning: mysql_field_name(): %d is not a valid MySQL result resource in %s on line %d
-bool(false)
-done!
---UEXPECTF--
-Warning: Wrong parameter count for mysql_field_name() in %s on line %d
-
 Warning: mysql_field_name(): Field -1 is invalid for MySQL result index %d in %s on line %d
 unicode(2) "id"
 
index e5105d984d5caebe8bc564bf6cb291e3f6d7ed48..1d401bc4e31ed5b59c8644cde4dd9a8618e46beb 100644 (file)
@@ -42,103 +42,6 @@ print "done!";
 --EXPECTF--
 Warning: mysql_field_seek(): Field -1 is invalid for MySQL result index %d in %s on line %d
 bool(false)
-object(stdClass)#%d (13) {
-  ["name"]=>
-  string(2) "id"
-  ["table"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
-  int(1)
-  ["not_null"]=>
-  int(1)
-  ["primary_key"]=>
-  int(1)
-  ["multiple_key"]=>
-  int(0)
-  ["unique_key"]=>
-  int(0)
-  ["numeric"]=>
-  int(1)
-  ["blob"]=>
-  int(0)
-  ["type"]=>
-  string(3) "int"
-  ["unsigned"]=>
-  int(0)
-  ["zerofill"]=>
-  int(0)
-}
-bool(true)
-object(stdClass)#%d (13) {
-  ["name"]=>
-  string(2) "id"
-  ["table"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
-  int(1)
-  ["not_null"]=>
-  int(1)
-  ["primary_key"]=>
-  int(1)
-  ["multiple_key"]=>
-  int(0)
-  ["unique_key"]=>
-  int(0)
-  ["numeric"]=>
-  int(1)
-  ["blob"]=>
-  int(0)
-  ["type"]=>
-  string(3) "int"
-  ["unsigned"]=>
-  int(0)
-  ["zerofill"]=>
-  int(0)
-}
-bool(true)
-object(stdClass)#%d (13) {
-  ["name"]=>
-  string(5) "label"
-  ["table"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
-  int(1)
-  ["not_null"]=>
-  int(0)
-  ["primary_key"]=>
-  int(0)
-  ["multiple_key"]=>
-  int(0)
-  ["unique_key"]=>
-  int(0)
-  ["numeric"]=>
-  int(0)
-  ["blob"]=>
-  int(0)
-  ["type"]=>
-  string(6) "string"
-  ["unsigned"]=>
-  int(0)
-  ["zerofill"]=>
-  int(0)
-}
-
-Warning: mysql_field_seek(): Field %d is invalid for MySQL result index %d in %s on line %d
-bool(false)
-bool(false)
-
-Warning: mysql_field_seek(): %d is not a valid MySQL result resource in %s on line %d
-bool(false)
-done!
---UEXPECTF--
-Warning: mysql_field_seek(): Field -1 is invalid for MySQL result index %d in %s on line %d
-bool(false)
 object(stdClass)#%d (13) {
   [u"name"]=>
   unicode(2) "id"
index 5e552f8ee5ec450815bdc8848d1091371bb6a45b..05d59180e1ef8c6343c3a1e6120e19aac337124d 100644 (file)
@@ -44,17 +44,6 @@ print "done!";
 --EXPECTF--
 Warning: mysql_field_table() expects exactly 2 parameters, 1 given in %s on line %d
 
-Warning: mysql_field_table(): Field -1 is invalid for MySQL result index %d in %s on line %d
-string(4) "test"
-
-Warning: mysql_field_table(): Field 2 is invalid for MySQL result index %d in %s on line %d
-
-Warning: mysql_field_table(): %d is not a valid MySQL result resource in %s on line %d
-bool(false)
-done!
---UEXPECTF--
-Warning: Wrong parameter count for mysql_field_table() in %s on line %d
-
 Warning: mysql_field_table(): Field -1 is invalid for MySQL result index %d in %s on line %d
 unicode(4) "test"
 
index 2a72e2de88234c9124aeb9e2a16e55dbbb23b57f..995e828cd619cd2cf80965fb2c4d518a121ff9f9 100644 (file)
@@ -44,17 +44,6 @@ print "done!";
 --EXPECTF--
 Warning: mysql_field_type() expects exactly 2 parameters, 1 given in %s on line %d
 
-Warning: mysql_field_type(): Field -1 is invalid for MySQL result index %d in %s on line %d
-string(3) "int"
-
-Warning: mysql_field_type(): Field 2 is invalid for MySQL result index %d in %s on line %d
-
-Warning: mysql_field_type(): %d is not a valid MySQL result resource in %s on line %d
-bool(false)
-done!
---UEXPECTF--
-Warning: Wrong parameter count for mysql_field_type() in %s on line %d
-
 Warning: mysql_field_type(): Field -1 is invalid for MySQL result index %d in %s on line %d
 unicode(3) "int"
 
index b5b0a3a56c62d2422abbbd1c41931952c2ba4e89..b33fb4f0ba7dd51aad3cd7ceb24d5956136df9fb 100644 (file)
@@ -49,7 +49,7 @@ mysql.allow_persistent=1
        else if ($port)
                $host = sprintf("%s:%s", $host, $port);
 
-       if (!$plink = mysql_pconnect($host, 'pcontest', 'pcontest'))
+       if (!$plink = mysql_pconnect($host, $user, $passwd))
                printf("[001] Cannot connect using the second DB user created during SKIPIF, [%d] %s\n",
                        mysql_errno(), mysql_error());
 
@@ -140,20 +140,6 @@ mysql.allow_persistent=1
        print "done!";
 ?>
 --EXPECTF--
-array(2) {
-  ["id"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
-}
-array(2) {
-  ["id"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
-}
-done!
---UEXPECTF--
 array(2) {
   [u"id"]=>
   unicode(1) "1"
index d1d4dfb8e9e490597e350071c5cf276c648e4dd3..4e6907f75c7fb327827c254892918afff7c5d1d0 100644 (file)
@@ -93,19 +93,6 @@ if (false !== ($tmp = mysql_query("SELECT id FROM test", $link)))
 print "done!";
 ?>
 --EXPECTF--
-array(1) {
-  ["valid"]=>
-  string(30) "this is sql but with semicolon"
-}
-array(1) {
-  [""]=>
-  string(1) "a"
-}
-string(1) "a"
-
-Warning: mysql_query(): %d is not a valid MySQL-Link resource in %s on line %d
-done!
---UEXPECTF--
 array(1) {
   [u"valid"]=>
   unicode(30) "this is sql but with semicolon"
index 511da068bd5ab71ad65f6c75f051592d91e1b913..5877e50355faee074d21c6ea238b18369857646a 100644 (file)
@@ -33,15 +33,6 @@ assert($tmp === mysql_real_escape_string("foo" . chr(0) . "bar"));
 print "done!";
 ?>
 --EXPECTF--
-string(31) "Am I a unicode string in PHP 6?"
-string(2) "\\"
-string(2) "\""
-string(2) "\'"
-string(2) "\n"
-string(2) "\r"
-string(8) "foo\0bar"
-done!
---UEXPECTF--
 unicode(31) "Am I a unicode string in PHP 6?"
 unicode(2) "\\"
 unicode(2) "\""
@@ -49,4 +40,4 @@ unicode(2) "\'"
 unicode(2) "\n"
 unicode(2) "\r"
 unicode(8) "foo\0bar"
-done!
\ No newline at end of file
+done!
index 4217b2e3900f873a34bb69338bec9977f8e722ed..653e60626b02be440b597bffc8ecb8fa16383154 100644 (file)
@@ -70,54 +70,6 @@ bool(false)
 Warning: mysql_result(): Bad column offset specified in %s on line %d
 bool(false)
 
-Warning: mysql_result(): Bad column offset specified in %s on line %d
-bool(false)
-valid fields
-string(1) "1"
-string(1) "a"
-string(1) "1"
-string(1) "1"
-string(1) "a"
-string(1) "a"
-some invalid fields
-
-Warning: mysql_result(): unknown not found in MySQL result index %d in %s on line %d
-bool(false)
-
-Warning: mysql_result(): _test. not found in MySQL result index %d in %s on line %d
-bool(false)
-
-Warning: mysql_result():  not found in MySQL result index %d in %s on line %d
-bool(false)
-
-Warning: mysql_result(): _test. not found in MySQL result index %d in %s on line %d
-bool(false)
-_id
-string(1) "1"
-_label
-string(2) "aa"
-_foo
-NULL
-
-Warning: mysql_result(): test.id not found in MySQL result index %d in %s on line %d
-bool(false)
-
-Warning: mysql_result(): test.label not found in MySQL result index %d in %s on line %d
-bool(false)
-
-Warning: mysql_result(): %d is not a valid MySQL result resource in %s on line %d
-bool(false)
-done!
---UEXPECTF--
-Warning: mysql_result(): Unable to jump to row -1 on MySQL result index %d in %s on line %d
-bool(false)
-
-Warning: mysql_result(): Unable to jump to row 2 on MySQL result index %d in %s on line %d
-bool(false)
-
-Warning: mysql_result(): Bad column offset specified in %s on line %d
-bool(false)
-
 Warning: mysql_result(): Bad column offset specified in %s on line %d
 bool(false)
 valid fields
@@ -155,4 +107,4 @@ bool(false)
 
 Warning: mysql_result(): %d is not a valid MySQL result resource in %s on line %d
 bool(false)
-done!
\ No newline at end of file
+done!
index 3391fa6e957cd4686c63b28e4f0c1f5fb82838b7..90635ae39e20040b506a53ab56fe9aa2a8c36e46 100644 (file)
@@ -66,12 +66,6 @@ if (false !== ($tmp = mysql_select_db($db, $link)))
 print "done!\n";
 ?>
 --EXPECTF--
-string(%d) "%s"
-bool(false)
-
-Warning: mysql_select_db(): %d is not a valid MySQL-Link resource in %s on line %d
-done!
---UEXPECTF--
 unicode(%d) "%s"
 bool(false)
 
index 0fbff44e88e240ad2d86e50c2afe6ff2470d941a..19d503c9a8c014671fa1c44c9866fc81fc55a7d6 100644 (file)
@@ -53,7 +53,5 @@ mysql_close($link);
 print "done!";
 ?>
 --EXPECTF--
-done!
---UEXPECTF--
 Warning: mysql_set_charset(): Character set %s is not supported when running PHP with unicode.semantics=On. in %s on line %d
-done!
\ No newline at end of file
+done!
index 684734a7d07ca4f6cbb3a266c987ad3e809976ce..d9c39cac25b469da05928b739592df8179f33ae8 100644 (file)
@@ -44,17 +44,6 @@ print "done!";
 --EXPECTF--
 Warning: mysql_tablename() expects at least 2 parameters, 1 given in %s on line %d
 
-Warning: mysql_tablename(): Unable to jump to row -1 on MySQL result index %d in %s on line %d
-string(1) "1"
-
-Warning: mysql_tablename(): Unable to jump to row 2 on MySQL result index %d in %s on line %d
-
-Warning: mysql_tablename(): %d is not a valid MySQL result resource in %s on line %d
-bool(false)
-done!
---UEXPECTF--
-Warning: Wrong parameter count for mysql_tablename() in %s on line %d
-
 Warning: mysql_tablename(): Unable to jump to row -1 on MySQL result index %d in %s on line %d
 unicode(1) "1"
 
index 6701ce52a062884817cb20cdd61d8ca93caedf66..9979a9cce660ddda4e5b2f5434776daba256e671 100644 (file)
@@ -87,19 +87,6 @@ if (false !== ($tmp = mysql_unbuffered_query("SELECT id FROM test", $link)))
 print "done!";
 ?>
 --EXPECTF--
-array(1) {
-  ["valid"]=>
-  string(30) "this is sql but with semicolon"
-}
-bool(true)
-resource(%d) of type (mysql result)
-int(0)
-
-Notice: mysql_close(): Function called without first fetching all rows from a previous unbuffered query in %s on line %d
-
-Warning: mysql_unbuffered_query(): %d is not a valid MySQL-Link resource in %s on line %d
-done!
---UEXPECTF--
 array(1) {
   [u"valid"]=>
   unicode(30) "this is sql but with semicolon"