mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

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
13 lines
192 B
PHP
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;
|