php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #35454 User-defined functions page does not specify legal format
Submitted: 2005-11-28 17:50 UTC Modified: 2005-11-29 14:23 UTC
From: richard at phase dot org Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: richard at phase dot org
New email:
PHP Version: OS:

 

 [2005-11-28 17:50 UTC] richard at phase dot org
Description:
------------
The documentation on user-defined functions (http://www.php.net/manual/en/language.functions.php) does not specify the format of a legal function name (wheras http://www.php.net/manual/en/language.variables.php does  contain a regexp specifying legal variable names, for example.)

Can such information be added?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-29 14:23 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

"Function names follow the same rules as other labels in PHP. A valid function name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular expression, it would be expressed thus: [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*."
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 12:01:34 2025 UTC