Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extensions naming conventions to ext_skel.php #4155

Closed
wants to merge 2 commits into from

Conversation

petk
Copy link
Member

@petk petk commented May 12, 2019

Naming conventions, for the new extensions:

  • first character is a letter
  • followed by any number of letters
  • preferred are lower case letters, but optionally allowed also upper case letters, numbers and underscores.

Synced with:

https://github.com/php/web-pecl/blob/4eb380c54af31f48d7c41b2b4e427e814b1b5f8d/public_html/package-new.php#L58

and https://bugs.php.net/bug.php?id=77968

@petk petk added the Feature label May 12, 2019
Copy link
Member

@KalleZ KalleZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can then remove the strtolower() call below, but very nice!

@vjardin
Copy link
Contributor

vjardin commented May 12, 2019

LGTM too.

ext/ext_skel.php Outdated Show resolved Hide resolved
petk added 2 commits May 13, 2019 23:10
- first character is a letter
- followed by any number of letters
- prefferred are lower case letters, but optionally allowed also upper
  case letters, numbers and underscores.
@petk petk force-pushed the patch-ext-skel-naming-conventions branch from 2a549da to f8ca7cc Compare May 13, 2019 21:59
@petk
Copy link
Member Author

petk commented May 13, 2019

So far, this script now still converts the extension name to lowercase... Yet, PECL site allows creating extension with uppercase letters. pecl install FOO is the same as pecl install foo. :/

@KalleZ
Copy link
Member

KalleZ commented May 13, 2019

@petk Ah well in that case it is all good :)

@petk
Copy link
Member Author

petk commented May 14, 2019

Applied then via 44952cd to PHP-7.4+.

@petk petk closed this May 14, 2019
@petk petk deleted the patch-ext-skel-naming-conventions branch May 14, 2019 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants