18 lines
353 B
PHP
18 lines
353 B
PHP
--TEST--
|
|
OSS-Fuzz #371445205 (Heap-use-after-free in attr_free)
|
|
--FILE--
|
|
<?php
|
|
#[Attribute]
|
|
class MyAttrib{}
|
|
#[MyAttrib(notinterned:'')]
|
|
class Test1{}
|
|
$attr=(new ReflectionClass(Test1::class))->getAttributes()[0];
|
|
try {
|
|
$attr->newInstance();
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Unknown named parameter $notinterned
|