1--TEST-- 2Passing unknown named args to a non-existing ctor 3--FILE-- 4<?php 5 6class Test {} 7 8try { 9 new stdClass(x: "nope"); 10} catch (Error $e) { 11 echo $e->getMessage(), "\n"; 12} 13 14try { 15 new Test(x: "nope"); 16} catch (Error $e) { 17 echo $e->getMessage(), "\n"; 18} 19 20?> 21--EXPECT-- 22Unknown named parameter $x 23Unknown named parameter $x 24