php-src/ext/dl_test/dl_test.stub.php
Ilija Tovilo 452c5ac989
Fix incorrect filename of dl()'d internal consts (#16721)
We should only attempt to fetch the current filename for user constants. dl()
may attempt to register internal constants after execution has already started,
thus incorrectly linking the user file invoking dl().

See GH-16663
2024-11-07 14:53:12 +01:00

13 lines
192 B
PHP

<?php
/**
* @generate-class-entries
* @undocumentable
*/
function dl_test_test1(): void {}
function dl_test_test2(string $str = ""): string {}
/** @var int */
const DL_TEST_CONST = 42;