Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 173804
Summary: | Core PHP RPM does not have Provides for built-in modules/extensions | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tim Jackson <rpm> | ||||
Component: | php | Assignee: | Joe Orton <jorton> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4 | CC: | joshkel, sundaram | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 5.1.2-5 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-02-28 17:09:09 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 176725 | ||||||
Attachments: |
|
Description
Tim Jackson
2005-11-21 14:20:37 UTC
Complete list of built-in modules/extensions included in the php-5.0.4-10.5 package: bz2 calendar ctype curl dbx dio exif ftp gettext gmp iconv libxml mime_magic openssl pcntl pcre posix pspell session shmop SimpleXML sockets SPL ?standard (probably not necessary to include in Provides) sysvsem sysvshm sysvmsg tokenizer wddx xml yp zlib Created attachment 121396 [details]
patch against rawhide to add Provides to the core PHP package
php-xml is omitted; this is in a separate package. Not sure why phpinfo()
reports the "xml" module as existent when the php-xml package is not installed.
A nice side-effect of this will be that if any of the currently-built-in modules are ever split out into sub-packages, a "yum upgrade" or similar should pull in the new package necessary to maintain the same functionality. If it would be possible to get this into FC5 it would be great. By the way, I just found out the easy way of getting the compiled-in module list: php -m I've added this, but following my "make up an arbitrary convention as you go along" convention: - all extension modules have a "Provides: ", using the lower-case module name prefixed by "php-" the lower-casing is for consistency: otherwise we'd have php-pdo for PDO and php-SimpleXML for SimpleXML. Hope this works OK. Joe, you rock. Thanks for fixing this. Can't see a problem with lowercasing; I can't remember whether RPM is case-sensitive when processing deps but either way I'll look at doing a change upstream in PEAR_Command_Packaging that allows the generation of lowercased deps for ext modules when creating RPM spec files using "pear make-rpm-spec". Seems unambiguous whatever; I can't imagine there will ever be two extensions with identical names but differentiated by case. The main thing was to have *some* dep for packaged web apps to hang their hat on. With this fix, we've got that. Great! :) |