Skip to content

[Sync-En] misc: add the namespace caveats to define(), defined() and constant() - #3464

Merged
lacatoire merged 1 commit into
masterfrom
sync-en/3455-namespaces
Sep 1, 2026
Merged

[Sync-En] misc: add the namespace caveats to define(), defined() and constant()#3464
lacatoire merged 1 commit into
masterfrom
sync-en/3455-namespaces

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Translation of php/doc-en#5256 (commit 5dc2dea): the three pages now state that the constant name is taken as a plain string, is not resolved against the current namespace and ignores use aliases, that define() keeps a leading separator where defined() and constant() strip it, and that separators must be escaped in double-quoted strings. EN-Revision updated.

Fixes: #3455

…constant()

Translation of php/doc-en#5256 (commit 5dc2dea): the three pages state that the
name is taken as a plain string, is not resolved against the current namespace
and ignores use aliases, that define() keeps a leading separator where defined()
and constant() strip it, and that separators must be escaped in double-quoted
strings. EN-Revision updated.
@lacatoire
lacatoire merged commit d91cfcb into master Sep 1, 2026
5 checks passed
@lacatoire
lacatoire deleted the sync-en/3455-namespaces branch September 1, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sync EN] Add namespace caveats to define(), defined(), and constant() (#5256)

1 participant