php / php/doc-en

Constant Name Regular Expression Note

Open
#2,772 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
XML
Stars
596
Forks
890
Avg merge
1d 15h
Merged PRs (30d)
55

Description

From manual page: https://php.net/language.constants


I think the note concerning the possible names of constants is incorrect.

Note: For our purposes here, a letter is a-z, A-Z, and the ASCII characters from 128 through 255 (0x80-0xff).

As fair as my knowledge goes, the x80-xFF is not ASCII/UTF code points, but applies to any bytes from 10000000 to 11111111. AT least that is how it works with variables and other names. I also tested it and emojis as names work fine.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the constants manual page linked in the issue and review the note about valid constant names. Verify the terminology and behavior described there, then update the note so it accurately explains the relevant byte or character range; the work is done when the documentation matches the observed naming behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.