xref: /PHP-8.1/Zend/tests/function_redecl.phpt (revision 4e0ae4db)
1--TEST--
2Function redeclaration must produce a simple fatal
3--FILE--
4<?php
5function f() {}
6function f() {}
7?>
8--EXPECTF--
9Fatal error: Cannot redeclare f() (previously declared in %s:%d) in %s on line %d
10