mirror of
https://github.com/php/php-src.git
synced 2026-04-28 02:33:17 +02:00
Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
--TEST--
|
||||
SPL: ArrayObject::__construct with too many arguments.
|
||||
--FILE--
|
||||
<?php
|
||||
echo "Too many arguments:\n";
|
||||
Class C implements Iterator {
|
||||
function current() {}
|
||||
function next() {}
|
||||
function key() {}
|
||||
function valid() {}
|
||||
function rewind() {}
|
||||
}
|
||||
|
||||
try {
|
||||
var_dump(new ArrayObject(new stdClass, 0, "C", "extra"));
|
||||
} catch (TypeError $e) {
|
||||
echo $e->getMessage() . "(" . $e->getLine() . ")\n";
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
Too many arguments:
|
||||
ArrayObject::__construct() expects at most 3 arguments, 4 given(12)
|
||||
Reference in New Issue
Block a user