xref: /php-src/Zend/tests/gh16509.phpt (revision 7cc327fd)
1--TEST--
2GH-16509: Incorrect lineno reported for function redeclaration
3--SKIPIF--
4<?php
5$tracing = extension_loaded("Zend OPcache")
6    && ($conf = opcache_get_configuration()["directives"])
7    && array_key_exists("opcache.jit", $conf)
8    &&  $conf["opcache.jit"] === "tracing";
9if (PHP_OS_FAMILY === "Windows" && PHP_INT_SIZE == 8 && $tracing) {
10    $url = "https://github.com/php/php-src/pull/14919#issuecomment-2259003979";
11    die("xfail Test fails on Windows x64 (VS17) and tracing JIT; see $url");
12}
13?>
14--FILE--
15<?php
16
17include __DIR__ . '/gh16509.inc';
18include __DIR__ . '/gh16509.inc';
19
20?>
21--EXPECTF--
22Fatal error: Cannot redeclare function test() (previously declared in %sgh16509.inc:3) in %sgh16509.inc on line 3
23