1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/oss-fuzz-465488618.phpt
2025-12-08 16:19:06 +01:00

17 lines
375 B
PHP

--TEST--
OSS-Fuzz #465488618: Dump function signature with dynamic class const lookup default argument
--FILE--
<?php
class A {
public function test(int $x) {}
}
class B extends A {
public function test(string $x = Foo::{C}) {}
}
?>
--EXPECTF--
Fatal error: Declaration of B::test(string $x = <expression>) must be compatible with A::test(int $x) in %s on line %d