Skip to content

Commit cbdbab5

Browse files
committed
Fix test with more recent version?
1 parent 225a2f7 commit cbdbab5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ext/mysqli/tests/fetch/mysqli_fetch_all_data_types_variation.phpt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ function func_mysqli_fetch_all(
4646

4747
$fields = mysqli_fetch_fields($result);
4848

49-
// I have no idea what this condition does as this seem to be some PHP 6 stuff???
50-
// if (!(gettype($php_value)=="unicode" && ($fields[1]->flags & 128))) {
51-
5249
if ($regexp_comparison) {
5350
if (!preg_match($regexp_comparison, (string)$row['label']) || !preg_match($regexp_comparison, (string)$row[1])) {
5451
printf("[%04d] Expecting %s/%s [reg exp = %s], got %s/%s resp. %s/%s. [%d] %s\n", $offset + 4,
@@ -151,10 +148,10 @@ func_mysqli_fetch_all($link, $engine, "CHAR(255)", $string255, $string255, 550)
151148
func_mysqli_fetch_all($link, $engine, "CHAR(1) NOT NULL", "a", "a", 560);
152149
func_mysqli_fetch_all($link, $engine, "CHAR(1)", NULL, NULL, 570);
153150

154-
$string65k = func_mysqli_fetch_array_make_string(65400);
151+
$string16k = func_mysqli_fetch_array_make_string(16000);
155152
func_mysqli_fetch_all($link, $engine, "VARCHAR(1)", "a", "a", 580);
156153
func_mysqli_fetch_all($link, $engine, "VARCHAR(255)", $string255, $string255, 590);
157-
func_mysqli_fetch_all($link, $engine, "VARCHAR(65400)", $string65k, $string65k, 600);
154+
func_mysqli_fetch_all($link, $engine, "VARCHAR(16000)", $string16k, $string16k, 600);
158155
func_mysqli_fetch_all($link, $engine, "VARCHAR(1) NOT NULL", "a", "a", 610);
159156
func_mysqli_fetch_all($link, $engine, "VARCHAR(1)", NULL, NULL, 620);
160157

0 commit comments

Comments
 (0)