From: Alexandre Rossi <niol@zincube.net>
Description: Lower string size for unit test to work without PHP PCRE JIT
    Without PCRE  JIT, the first call to preg_match() hits
    PREG_BACKTRACK_LIMIT_ERROR.
Forwarded: https://github.com/vrana/adminer/issues/1373

--- adminer.git.orig/tests/unit/json_exact.php	2026-10-30 11:04:24.816695808 +0100
+++ adminer.git/tests/unit/json_exact.php	2026-10-30 11:06:29.739121499 +0100
@@ -71,10 +71,13 @@
 }
 
 // long strings must not exceed the PCRE limits
-foreach (array(str_repeat('a', 1e7), str_repeat('a\"', 3e6), str_repeat('\\\\', 3e6)) as $i => $long) {
+foreach (array(str_repeat('a', 1e5), str_repeat('a\"', 3e5), str_repeat('\\\\', 3e5)) as $i => $long) {
 	$decoded = json_decode_exact('["' . $long . '",' . "123456789.123456789]");
 	if (!is_array($decoded) || strlen($decoded[0]) != strlen(json_decode('"' . $long . '"')) || json_scalar($decoded[1]) !== '123456789.123456789') {
-		echo "Long string $i is not decoded, preg_last_error: " . preg_last_error() . "\n";
+		if (!is_array($decoded)) echo "Decoded long string $i is not an array.\n";
+		elseif (sizeof($decoded) != 2) echo "Decoded long string $i is not an array of size 2.\n";
+		elseif (strlen($decoded[0]) != strlen(json_decode('"' . $long . '"'))) echo "Decoded long string $i first item has different length than the long string.\n";
+		elseif (json_scalar($decoded[1]) !== '123456789.123456789') echo "Decoded long string $i second item is not the long float.\n";
 		$errors++;
 	} elseif (json_encode_exact($decoded, 64 | 256) === '') {
 		echo "Long string $i is not encoded, preg_last_error: " . preg_last_error() . "\n";
