mirror of
https://github.com/php/web-rmtools.git
synced 2026-03-24 09:12:18 +01:00
PECL exts using real_name are not found by pecl.php.net #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cmb69 on GitHub (Nov 1, 2019).
Consider pecl_http (which appears to be the only maintained PECL extension using
real_name):6a54106837/data/config/pecl/exts.ini (L242-L243)The build artifacts are currently named
php_http-*.zipand are uploaded to ahttpfolder. However, pecl.php.net expects the binary packages to bepecl_http/php_pecl_http-*. One issue isPECLExt::getPackageName():6a54106837/include/PeclExt.php (L172-L175)$this->nameis thereal_name("http"), but would have to be the original extension name ("pecl_http"). Another issue is the upload target folder:6a54106837/script/pecl.php (L330)PECLExt::getName()again returns thereal_name("http") instead of the original extension name ("pecl_http").Alternative solutions would be to adapt the respective code in php/web-pecl, or maybe even to drop support for real_name altogether and require packages to have a single name.
What do you think @weltling?
PS: see also m6w6/ext-http#97
@m6w6 commented on GitHub (Nov 4, 2019):
It had to be named ˋpecl_httpˋ because there also was a PEAR package with the name ˋhttpˋ.
Just a little history, IIRC.
@cmb69 commented on GitHub (Aug 6, 2024):
This PR can be closed, since we're going to archive this repo anyway.