diff --git a/test/repro/issue_27165_str_replace_array_value_coerce.php b/test/repro/issue_27165_str_replace_array_value_coerce.php deleted file mode 100644 index ae337bd2ac8..00000000000 --- a/test/repro/issue_27165_str_replace_array_value_coerce.php +++ /dev/null @@ -1,5 +0,0 @@ -format(strtotime('2024-02-29')), PHP_EOL; diff --git a/test/repro/issue_27385_numfmt_create_aot.php b/test/repro/issue_27385_numfmt_create_aot.php deleted file mode 100644 index dc70189ef22..00000000000 --- a/test/repro/issue_27385_numfmt_create_aot.php +++ /dev/null @@ -1,4 +0,0 @@ -getReturnType(), PHP_EOL; -$tz = timezone_open('UTC'); -echo 'ok=', $tz instanceof DateTimeZone ? '1' : '0', PHP_EOL; diff --git a/test/repro/issue_27981_strftime_reflection.php b/test/repro/issue_27981_strftime_reflection.php deleted file mode 100644 index 365d88d36db..00000000000 --- a/test/repro/issue_27981_strftime_reflection.php +++ /dev/null @@ -1,13 +0,0 @@ -getParameters()[1]; - echo "$fn ret=", (string) $r->getReturnType(); - echo ' ts=', (string) $p->getType(); - echo ' default=', var_export($p->getDefaultValue(), true); - echo PHP_EOL; -} -echo 'strftime=', strftime('%Y', timestamp: 0), PHP_EOL; diff --git a/test/repro/issue_28202_28230_string_trim_mode.php b/test/repro/issue_28202_28230_string_trim_mode.php deleted file mode 100644 index 1dfe27c35ac..00000000000 --- a/test/repro/issue_28202_28230_string_trim_mode.php +++ /dev/null @@ -1,8 +0,0 @@ -getMessage(), PHP_EOL; -} -echo 'enum=', enum_exists('StringTrimMode') ? '1' : '0', PHP_EOL; diff --git a/test/repro/issue_28342_readline_reflection.php b/test/repro/issue_28342_readline_reflection.php deleted file mode 100644 index 6da0e74d13c..00000000000 --- a/test/repro/issue_28342_readline_reflection.php +++ /dev/null @@ -1,4 +0,0 @@ -hasReturnType() ? (string) $r->getReturnType() : '-', PHP_EOL; diff --git a/test/repro/issue_28411_memoryusage_phantom.php b/test/repro/issue_28411_memoryusage_phantom.php deleted file mode 100644 index 8ac87d851a7..00000000000 --- a/test/repro/issue_28411_memoryusage_phantom.php +++ /dev/null @@ -1,7 +0,0 @@ - 0 ? "usage_ok\n" : "usage_bad\n"; diff --git a/test/repro/issue_28473.php b/test/repro/issue_28473.php deleted file mode 100644 index f59bbc60892..00000000000 --- a/test/repro/issue_28473.php +++ /dev/null @@ -1,23 +0,0 @@ -getMessage(), "\n"; } -try { array_filter([], null, 0, 1); echo "array_filter/4:ok\n"; } catch (Throwable $e) { echo 'array_filter/4:', get_class($e), ':', $e->getMessage(), "\n"; } -try { array_reduce(); echo "array_reduce/0:ok\n"; } catch (Throwable $e) { echo 'array_reduce/0:', get_class($e), ':', $e->getMessage(), "\n"; } -try { array_reduce([]); echo "array_reduce/1:ok\n"; } catch (Throwable $e) { echo 'array_reduce/1:', get_class($e), ':', $e->getMessage(), "\n"; } -try { array_reduce([], function ($a, $b) { return $a; }, 0, 1); echo "array_reduce/4:ok\n"; } catch (Throwable $e) { echo 'array_reduce/4:', get_class($e), ':', $e->getMessage(), "\n"; } -try { array_walk(); echo "array_walk/0:ok\n"; } catch (Throwable $e) { echo 'array_walk/0:', get_class($e), ':', $e->getMessage(), "\n"; } -$walkOne = []; -try { array_walk($walkOne); echo "array_walk/1:ok\n"; } catch (Throwable $e) { echo 'array_walk/1:', get_class($e), ':', $e->getMessage(), "\n"; } -try { array_walk($walkOne, function () {}, null, 1); echo "array_walk/4:ok\n"; } catch (Throwable $e) { echo 'array_walk/4:', get_class($e), ':', $e->getMessage(), "\n"; } -$a = [1, 2, 0, 3]; -$filtered = array_filter($a); -echo 'array_filter_ok:', implode(',', $filtered), "\n"; -$sum = array_reduce([1, 2, 3], function ($c, $v) { return $c + $v; }, 0); -echo 'array_reduce_ok:', (string) $sum, "\n"; -$w = [1, 2]; -array_walk($w, function (&$v) { $v *= 2; }); -echo 'array_walk_ok:', implode(',', $w), "\n"; diff --git a/test/repro/issue_28475.php b/test/repro/issue_28475.php deleted file mode 100644 index 2cb6695b9c3..00000000000 --- a/test/repro/issue_28475.php +++ /dev/null @@ -1,47 +0,0 @@ -getMessage(), "\n"; - } -} -try { - function_exists('strlen', 'x'); - echo "function_exists/2:ok\n"; -} catch (Throwable $e) { - echo 'function_exists/2:', get_class($e), ':', $e->getMessage(), "\n"; -} -try { - class_exists('stdClass', true, 'x'); - echo "class_exists/3:ok\n"; -} catch (Throwable $e) { - echo 'class_exists/3:', get_class($e), ':', $e->getMessage(), "\n"; -} -try { - interface_exists('Traversable', true, 'x'); - echo "interface_exists/3:ok\n"; -} catch (Throwable $e) { - echo 'interface_exists/3:', get_class($e), ':', $e->getMessage(), "\n"; -} -try { - trait_exists('NoSuchTrait', true, 'x'); - echo "trait_exists/3:ok\n"; -} catch (Throwable $e) { - echo 'trait_exists/3:', get_class($e), ':', $e->getMessage(), "\n"; -} -try { - enum_exists('NoSuchEnum', true, 'x'); - echo "enum_exists/3:ok\n"; -} catch (Throwable $e) { - echo 'enum_exists/3:', get_class($e), ':', $e->getMessage(), "\n"; -} -echo 'function_exists_ok:', function_exists('strlen') ? '1' : '0', "\n"; -echo 'class_exists_ok:', class_exists('stdClass') ? '1' : '0', "\n"; -echo 'interface_exists_ok:', interface_exists('Traversable') ? '1' : '0', "\n"; diff --git a/test/repro/issue_28476.php b/test/repro/issue_28476.php deleted file mode 100644 index 7f120023a28..00000000000 --- a/test/repro/issue_28476.php +++ /dev/null @@ -1,25 +0,0 @@ -getMessage(), "\n"; } -try { ceil(1, 2); echo "ceil/2:ok\n"; } catch (Throwable $e) { echo 'ceil/2:', get_class($e), ':', $e->getMessage(), "\n"; } -try { floor(); echo "floor/0:ok\n"; } catch (Throwable $e) { echo 'floor/0:', get_class($e), ':', $e->getMessage(), "\n"; } -try { floor(1, 2); echo "floor/2:ok\n"; } catch (Throwable $e) { echo 'floor/2:', get_class($e), ':', $e->getMessage(), "\n"; } -try { bindec(); echo "bindec/0:ok\n"; } catch (Throwable $e) { echo 'bindec/0:', get_class($e), ':', $e->getMessage(), "\n"; } -try { bindec('1', 'x'); echo "bindec/2:ok\n"; } catch (Throwable $e) { echo 'bindec/2:', get_class($e), ':', $e->getMessage(), "\n"; } -try { hexdec(); echo "hexdec/0:ok\n"; } catch (Throwable $e) { echo 'hexdec/0:', get_class($e), ':', $e->getMessage(), "\n"; } -try { hexdec('a', 'x'); echo "hexdec/2:ok\n"; } catch (Throwable $e) { echo 'hexdec/2:', get_class($e), ':', $e->getMessage(), "\n"; } -try { random_bytes(); echo "random_bytes/0:ok\n"; } catch (Throwable $e) { echo 'random_bytes/0:', get_class($e), ':', $e->getMessage(), "\n"; } -try { random_bytes(1, 2); echo "random_bytes/2:ok\n"; } catch (Throwable $e) { echo 'random_bytes/2:', get_class($e), ':', $e->getMessage(), "\n"; } -try { random_int(); echo "random_int/0:ok\n"; } catch (Throwable $e) { echo 'random_int/0:', get_class($e), ':', $e->getMessage(), "\n"; } -try { random_int(1, 2, 3); echo "random_int/3:ok\n"; } catch (Throwable $e) { echo 'random_int/3:', get_class($e), ':', $e->getMessage(), "\n"; } -try { password_verify(); echo "password_verify/0:ok\n"; } catch (Throwable $e) { echo 'password_verify/0:', get_class($e), ':', $e->getMessage(), "\n"; } -try { password_verify('a', 'b', 'c'); echo "password_verify/3:ok\n"; } catch (Throwable $e) { echo 'password_verify/3:', get_class($e), ':', $e->getMessage(), "\n"; } -echo 'ceil_ok:', (string) ceil(1.5), "\n"; -echo 'floor_ok:', (string) floor(1.5), "\n"; -echo 'bindec_ok:', (string) bindec('1010'), "\n"; -echo 'hexdec_ok:', (string) hexdec('ff'), "\n"; -echo 'password_verify_ok:', password_verify('x', '$2y$10$invalid___________________________') ? '1' : '0', "\n"; diff --git a/test/repro/issue_28536_parseurl_phantom.php b/test/repro/issue_28536_parseurl_phantom.php deleted file mode 100644 index d322c43151c..00000000000 --- a/test/repro/issue_28536_parseurl_phantom.php +++ /dev/null @@ -1,7 +0,0 @@ -getMessage(), "\n"; -} -try { - range(1, 10, 100); - echo "span:ok\n"; -} catch (Throwable $e) { - echo 'span:', $e->getMessage(), "\n"; -} diff --git a/test/repro/issue_28563_curl_init_null.php b/test/repro/issue_28563_curl_init_null.php deleted file mode 100644 index 7a5ef8612be..00000000000 --- a/test/repro/issue_28563_curl_init_null.php +++ /dev/null @@ -1,49 +0,0 @@ -getParameters()[0]; -$type = $p->hasType() ? (string) $p->getType() : 'NONE'; -if ('?string' !== $type) { - fwrite(STDERR, "fail: Reflection type={$type}\n"); - exit(1); -} - -if (0 !== $deps) { - fwrite(STDERR, "fail: deps={$deps}\n"); - exit(1); -} - -echo "ok\n"; diff --git a/test/repro/issue_28593_openssl_encrypt_decrypt_reflection.php b/test/repro/issue_28593_openssl_encrypt_decrypt_reflection.php deleted file mode 100644 index db44daffabe..00000000000 --- a/test/repro/issue_28593_openssl_encrypt_decrypt_reflection.php +++ /dev/null @@ -1,17 +0,0 @@ -getParameters() as $i => $p) { - $t = $p->hasType() ? (string) $p->getType() : 'untyped'; - $def = $p->isDefaultValueAvailable() ? var_export($p->getDefaultValue(), true) : ''; - $ref = $p->isPassedByReference() ? '&' : ''; - echo "[$i] {$ref}{$p->getName()}:$t def=$def\n"; - } -} -dump('openssl_decrypt'); -dump('openssl_encrypt'); diff --git a/test/repro/issue_28658_simplexml_libxml_errors.php b/test/repro/issue_28658_simplexml_libxml_errors.php deleted file mode 100644 index fc98bfbc700..00000000000 --- a/test/repro/issue_28658_simplexml_libxml_errors.php +++ /dev/null @@ -1,11 +0,0 @@ -'); -echo $d === false ? "false\n" : "notfalse\n"; -$errs = libxml_get_errors(); -echo 'count=', count($errs), "\n"; -foreach ($errs as $e) { - echo 'line=', $e->line, ' code=', $e->code, ' msg=', trim($e->message), "\n"; -} diff --git a/test/repro/issue_28712_xmlreader_open_reflection.php b/test/repro/issue_28712_xmlreader_open_reflection.php deleted file mode 100644 index 74443cfeeb1..00000000000 --- a/test/repro/issue_28712_xmlreader_open_reflection.php +++ /dev/null @@ -1,29 +0,0 @@ -getParameters() as $p) { - $def = ''; - if ($p->isDefaultValueAvailable()) { - $def = var_export($p->getDefaultValue(), true); - } - $parts[] = $p->getName() - .':' - .($p->hasType() ? (string) $p->getType() : '-') - .':'.($p->isOptional() ? 'OPT' : 'REQ') - .':def='.$def; - } - echo $m, ' arity=', $rf->getNumberOfParameters(), - ' req=', $rf->getNumberOfRequiredParameters(), - ' ret=', $rf->hasReturnType() ? (string) $rf->getReturnType() : 'none', - ' [', implode(',', $parts), ']', PHP_EOL; -} - -$tmp = tempnam(sys_get_temp_dir(), 'xr'); -file_put_contents($tmp, ''); -$r = XMLReader::open(uri: $tmp, encoding: null); -echo 'named_open_null_enc=', $r instanceof XMLReader ? '1' : '0', PHP_EOL; -@unlink($tmp); diff --git a/test/repro/issue_28741_dom_htmlelement_selector_reflection.php b/test/repro/issue_28741_dom_htmlelement_selector_reflection.php deleted file mode 100644 index 6ccf77661cf..00000000000 --- a/test/repro/issue_28741_dom_htmlelement_selector_reflection.php +++ /dev/null @@ -1,37 +0,0 @@ -t', LIBXML_NOERROR); -$el = $d->documentElement; -$rc = new ReflectionClass(Dom\HTMLElement::class); -foreach (['querySelector', 'querySelectorAll', 'closest', 'matches', 'getElementsByTagName'] as $m) { - $rm = $rc->getMethod($m); - $rt = $rm->getReturnType(); - echo $m, ' arity=', $rm->getNumberOfParameters(), - ' req=', $rm->getNumberOfRequiredParameters(), - ' ret=', $rt ? (string) $rt : '(none)', "\n"; - $parts = []; - foreach ($rm->getParameters() as $p) { - $parts[] = $p->getName() - .':' - .($p->hasType() ? (string) $p->getType() : '-') - .':'.($p->isOptional() ? 'OPT' : 'REQ'); - } - echo ' params=', implode(',', $parts), "\n"; -} - -echo 'named_qs=', $el->querySelector(selectors: '#s')?->tagName ?? '(null)', "\n"; -echo 'named_tag=', $el->getElementsByTagName(qualifiedName: 'span')->length, "\n"; -echo 'pos_qs=', $el->querySelector('#s')?->tagName ?? '(null)', "\n"; -$span = $el->querySelector('#s'); -echo 'matches=', $span->matches(selectors: 'span') ? 'Y' : 'N', "\n"; -echo 'closest=', $span->closest(selectors: 'div')?->tagName ?? '(null)', "\n"; -$list = $el->querySelectorAll(selectors: 'span'); -echo 'named_qsa=', $list->length, "\n"; diff --git a/test/repro/issue_28786_xmlwriter_open_reflection.php b/test/repro/issue_28786_xmlwriter_open_reflection.php deleted file mode 100644 index 7ff9d094db5..00000000000 --- a/test/repro/issue_28786_xmlwriter_open_reflection.php +++ /dev/null @@ -1,8 +0,0 @@ -hasReturnType() ? (string) $r->getReturnType() : '(none)', "\n"; -} -$w = xmlwriter_open_memory(); -echo 'runtime=', get_debug_type($w), "\n"; \ No newline at end of file diff --git a/test/repro/issue_28814_static_method_closure_this.php b/test/repro/issue_28814_static_method_closure_this.php deleted file mode 100644 index f5f52de60d1..00000000000 --- a/test/repro/issue_28814_static_method_closure_this.php +++ /dev/null @@ -1,52 +0,0 @@ - $this; - } - - public static function classic() - { - return function () { - return $this; - }; - } - - public function inst() - { - return fn () => $this; - } -} - -foreach (['arrow' => A::arrow(), 'classic' => A::classic()] as $label => $f) { - try { - $r = $f(); - echo "$label: OK ", var_export($r, true), "\n"; - } catch (Throwable $e) { - echo "$label: ", get_class($e), ':', $e->getMessage(), "\n"; - } -} - -$o = new A(); -try { - $r = $o->inst()(); - echo 'inst: OK ', get_class($r), "\n"; -} catch (Throwable $e) { - echo 'inst: ', get_class($e), ':', $e->getMessage(), "\n"; -} - -try { - $r = (fn () => $this)(); - echo 'toplevel: OK ', var_export($r, true), "\n"; -} catch (Throwable $e) { - echo 'toplevel: ', get_class($e), ':', $e->getMessage(), "\n"; -} diff --git a/test/repro/issue_28816_final_plain_isfinal_write.php b/test/repro/issue_28816_final_plain_isfinal_write.php deleted file mode 100644 index fcdff98991f..00000000000 --- a/test/repro/issue_28816_final_plain_isfinal_write.php +++ /dev/null @@ -1,23 +0,0 @@ -isFinal() ? "1" : "0", "\n"; -$a = new A(); -try { $a->x = 99; echo "WRITE_OK\n"; } catch (Throwable $e) { echo "WRITE_ERR\n"; } diff --git a/test/repro/issue_28816_final_plain_override.php b/test/repro/issue_28816_final_plain_override.php deleted file mode 100644 index 8153484ebb0..00000000000 --- a/test/repro/issue_28816_final_plain_override.php +++ /dev/null @@ -1,14 +0,0 @@ - 1); -$f->start(); -try { - $f->resume(); -} catch (FiberError $e) { - echo 'fiber file=', var_export($e->getFile(), true), ' line=', $e->getLine(), "\n"; -} -try { - echo 1 << -1; -} catch (ArithmeticError $e) { - echo 'arith file=', basename($e->getFile()), ' line=', $e->getLine(), "\n"; -} -try { - strlen('a', 'b'); -} catch (ArgumentCountError $e) { - echo 'argc file=', basename($e->getFile()), ' line=', $e->getLine(), "\n"; -} -try { - strlen([]); -} catch (TypeError $e) { - echo 'type file=', basename($e->getFile()), ' line=', $e->getLine(), "\n"; -} diff --git a/test/repro/issue_28854_move_uploaded_named.php b/test/repro/issue_28854_move_uploaded_named.php deleted file mode 100644 index 27675b99fce..00000000000 --- a/test/repro/issue_28854_move_uploaded_named.php +++ /dev/null @@ -1,22 +0,0 @@ -getParameters() as $p) { - $names[] = $p->getName(); -} -echo 'reflection=', implode(',', $names), "\n"; - -try { - $ok = move_uploaded_file(from: '/nope-from', to: '/nope-to'); - echo 'named_from_to=', var_export($ok, true), "\n"; -} catch (Throwable $e) { - echo 'named_from_to=', get_class($e), ':', $e->getMessage(), "\n"; -} - -try { - move_uploaded_file(path: '/a', new_path: '/b'); - echo "legacy_path_accepted\n"; -} catch (Throwable $e) { - echo 'legacy_path=', $e->getMessage(), "\n"; -} diff --git a/test/repro/issue_28854_move_uploaded_named_aot.php b/test/repro/issue_28854_move_uploaded_named_aot.php deleted file mode 100644 index 365474c3afb..00000000000 --- a/test/repro/issue_28854_move_uploaded_named_aot.php +++ /dev/null @@ -1,13 +0,0 @@ -getParameters() as $p) { - echo ($p->hasType() ? (string) $p->getType() : ''), ' $', $p->getName(), - ($p->isPassedByReference() ? ' byref' : ''), - ($p->isOptional() ? ' opt' : ''), - PHP_EOL; -} -echo 'return=', $r->hasReturnType() ? (string) $r->getReturnType() : '', PHP_EOL; -$strong = false; -$bytes = openssl_random_pseudo_bytes(length: 4, strong_result: $strong); -echo 'named=', (4 === strlen($bytes) && true === $strong) ? 'ok' : 'fail', PHP_EOL; diff --git a/test/repro/issue_28892_deprecated_class_reject_profile85.php b/test/repro/issue_28892_deprecated_class_reject_profile85.php deleted file mode 100644 index 8f043b6f3b1..00000000000 --- a/test/repro/issue_28892_deprecated_class_reject_profile85.php +++ /dev/null @@ -1,17 +0,0 @@ -getNumberOfParameters(); - echo ' ret=', $r->hasReturnType() ? (string) $r->getReturnType() : 'none'; - $p = $r->getParameters()[0]; - echo ' name=', $p->getName(); - echo ' type=', (string) $p->getType(); - echo PHP_EOL; -} -$src = new DateTimeImmutable('2020-01-01 UTC'); -$m = DateTime::createFromInterface(object: $src); -$i = DateTimeImmutable::createFromInterface(object: $m); -echo 'named_dt=', $m->format('c'), PHP_EOL; -echo 'named_dti=', $i->format('c'), PHP_EOL; diff --git a/test/repro/issue_28907_cal_info_all_calendars.php b/test/repro/issue_28907_cal_info_all_calendars.php deleted file mode 100644 index 07f512922c0..00000000000 --- a/test/repro/issue_28907_cal_info_all_calendars.php +++ /dev/null @@ -1,27 +0,0 @@ -getParameters()[0]->getDefaultValue(); -if ($default !== -1) { - fwrite(STDERR, "FAIL: Reflection default={$default} want=-1\n"); - exit(1); -} - -$all = cal_info(-1); -if (!is_array($all) || count($all) !== 4) { - fwrite(STDERR, "FAIL: cal_info(-1) count=". (is_array($all) ? count($all) : gettype($all)) ."\n"); - exit(1); -} -$keys = array_keys($all); -if ($keys !== [0, 1, 2, 3]) { - fwrite(STDERR, "FAIL: keys=".implode(',', $keys)."\n"); - exit(1); -} -if (($all[0]['calname'] ?? null) !== 'Gregorian') { - fwrite(STDERR, "FAIL: missing Gregorian meta\n"); - exit(1); -} - -echo "ok\n"; diff --git a/test/repro/issue_28907_cal_info_all_calendars_aot.php b/test/repro/issue_28907_cal_info_all_calendars_aot.php deleted file mode 100644 index b0942cc01f4..00000000000 --- a/test/repro/issue_28907_cal_info_all_calendars_aot.php +++ /dev/null @@ -1,12 +0,0 @@ -getParameters()[0]; -echo 'name=', $p->getName(), PHP_EOL; -echo 'type=', (string) $p->getType(), PHP_EOL; -$tz = new DateTimeZone('UTC'); -$dt = new DateTimeImmutable('2020-01-01', $tz); -echo 'named=', $tz->getOffset(datetime: $dt), PHP_EOL; diff --git a/test/repro/issue_28930_sorting_phantom.php b/test/repro/issue_28930_sorting_phantom.php deleted file mode 100644 index 5d3659d6389..00000000000 --- a/test/repro/issue_28930_sorting_phantom.php +++ /dev/null @@ -1,7 +0,0 @@ -getMessage(), "\n"; -} -try { - echo wordwrap(string: 'aa bb', break: '-'), "\n"; -} catch (Throwable $e) { - echo get_class($e), ':', $e->getMessage(), "\n"; -} -try { - echo wordwrap('aa bb', cut_long_words: false), "\n"; -} catch (Throwable $e) { - echo get_class($e), ':', $e->getMessage(), "\n"; -} -try { - echo wordwrap('aa bb', width: 2), "\n"; -} catch (Throwable $e) { - echo get_class($e), ':', $e->getMessage(), "\n"; -} diff --git a/test/repro/issue_28940_aot_html_document_doctype.php b/test/repro/issue_28940_aot_html_document_doctype.php deleted file mode 100644 index 2e7f4279ff4..00000000000 --- a/test/repro/issue_28940_aot_html_document_doctype.php +++ /dev/null @@ -1,10 +0,0 @@ -

hi

'); -echo 'doctype_null=', $doc->doctype === null ? '1' : '0', "\n"; -echo 'doctype_name=', is_object($doc->doctype) ? $doc->doctype->name : 'n/a', "\n"; -echo 'body=', $doc->body->textContent, "\n"; - -$frag = Dom\HTMLDocument::createFromString('

yo

'); -echo 'frag_doctype_null=', $frag->doctype === null ? '1' : '0', "\n"; -echo 'frag_body=', $frag->body->textContent, "\n"; diff --git a/test/repro/issue_28956_final_plain_isfinal_write.php b/test/repro/issue_28956_final_plain_isfinal_write.php deleted file mode 100644 index b0b47b23474..00000000000 --- a/test/repro/issue_28956_final_plain_isfinal_write.php +++ /dev/null @@ -1,25 +0,0 @@ -isFinal(), "\n"; -$a = new A(); -$a->x = "c"; -echo "wrote=", $a->x, "\n"; diff --git a/test/repro/issue_28956_final_plain_override.php b/test/repro/issue_28956_final_plain_override.php deleted file mode 100644 index d5f5a56d38c..00000000000 --- a/test/repro/issue_28956_final_plain_override.php +++ /dev/null @@ -1,15 +0,0 @@ - 'H', 'u' => ['x']]), "\n"; -echo 'unused_warns=', json_encode($warns), "\n"; -$warns = []; -echo strtr('hi', ['h' => ['x']]), "\n"; -echo 'used_warns=', json_encode($warns), "\n"; -try { - echo strtr('hi', ['h' => new stdClass()]), "\n"; -} catch (Throwable $e) { - echo get_class($e), ':', $e->getMessage(), "\n"; -} diff --git a/test/repro/issue_28980_mb_convert_encoding_base64.php b/test/repro/issue_28980_mb_convert_encoding_base64.php deleted file mode 100644 index a41b40d02d0..00000000000 --- a/test/repro/issue_28980_mb_convert_encoding_base64.php +++ /dev/null @@ -1,24 +0,0 @@ -getMessage(), "\n"; -} diff --git a/test/repro/issue_28983_mb_encoding_aliases_special.php b/test/repro/issue_28983_mb_encoding_aliases_special.php deleted file mode 100644 index 69392b75cec..00000000000 --- a/test/repro/issue_28983_mb_encoding_aliases_special.php +++ /dev/null @@ -1,21 +0,0 @@ -&', 'HTML'), true), "\n"; -sort($deps); -echo 'deps: ', implode(',', array_unique($deps)), "\n"; diff --git a/test/repro/issue_29024_preg_x_brace_hex.php b/test/repro/issue_29024_preg_x_brace_hex.php deleted file mode 100644 index e4fa5b83c44..00000000000 --- a/test/repro/issue_29024_preg_x_brace_hex.php +++ /dev/null @@ -1,16 +0,0 @@ - '; - var_export($r); - echo ' ', preg_last_error_msg(), "\n"; -} -$r = @preg_match('/\x{ff}/u', "\u{ff}"); -echo '/\\x{ff}/u => '; -var_export($r); -echo ' ', preg_last_error_msg(), "\n"; -$r = @preg_replace('/\x{41}/u', 'B', 'A'); -echo 'replace='; -var_export($r); -echo ' ', preg_last_error_msg(), "\n"; diff --git a/test/repro/issue_29026_valueerror_trace_args.php b/test/repro/issue_29026_valueerror_trace_args.php deleted file mode 100644 index 1cc62db3584..00000000000 --- a/test/repro/issue_29026_valueerror_trace_args.php +++ /dev/null @@ -1,13 +0,0 @@ -getTraceAsString(), "\n"; - $t = $e->getTrace(); - echo 'fn=', ($t[0]['function'] ?? '?'), "\n"; - echo 'has_args=', (isset($t[0]['args']) ? 'yes' : 'no'), "\n"; - echo 'nargs=', (isset($t[0]['args']) ? count($t[0]['args']) : -1), "\n"; - echo 'arg0_is_array=', (isset($t[0]['args'][0]) && is_array($t[0]['args'][0]) ? 'yes' : 'no'), "\n"; -} diff --git a/test/repro/issue_29030_dom_tokenlist_classlist_jit.php b/test/repro/issue_29030_dom_tokenlist_classlist_jit.php deleted file mode 100644 index f5b39e3b01a..00000000000 --- a/test/repro/issue_29030_dom_tokenlist_classlist_jit.php +++ /dev/null @@ -1,47 +0,0 @@ -
' -); -$el = $html->getElementById('d'); - -$el->classList->add('a', 'b'); -if ($el->getAttribute('class') !== 'a b') { - fwrite(STDERR, 'class after add expected "a b", got ' . var_export($el->getAttribute('class'), true) . "\n"); - exit(1); -} -if (!$el->classList->contains('a')) { - fwrite(STDERR, "contains('a') should be true\n"); - exit(1); -} -if ($el->classList->length !== 2) { - fwrite(STDERR, 'length expected 2, got ' . $el->classList->length . "\n"); - exit(1); -} -if ($el->classList->item(0) !== 'a' || $el->classList->item(1) !== 'b') { - fwrite(STDERR, "item() mismatch\n"); - exit(1); -} -if (!$el->classList->toggle('c')) { - fwrite(STDERR, "toggle('c') should return true\n"); - exit(1); -} -if ($el->getAttribute('class') !== 'a b c') { - fwrite(STDERR, 'class after toggle expected "a b c", got ' . var_export($el->getAttribute('class'), true) . "\n"); - exit(1); -} -$el->classList->remove('b'); -if ($el->getAttribute('class') !== 'a c') { - fwrite(STDERR, 'class after remove expected "a c", got ' . var_export($el->getAttribute('class'), true) . "\n"); - exit(1); -} - -echo "ok\n"; diff --git a/test/repro/issue_29030_jit_class_string_literal.php b/test/repro/issue_29030_jit_class_string_literal.php deleted file mode 100644 index d22fd76828f..00000000000 --- a/test/repro/issue_29030_jit_class_string_literal.php +++ /dev/null @@ -1,10 +0,0 @@ -getMessage(), "\n"; } -try { eval("parent::foo();"); } catch (Throwable $e) { echo "parent:", $e->getMessage(), "\n"; } -try { eval("static::foo();"); } catch (Throwable $e) { echo "static:", $e->getMessage(), "\n"; }