Bug 630635
| Summary: | Add [PHP] section to all parsed extension ini files | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Fabian Grutschus <f.grutschus> | ||||
| Component: | php | Assignee: | Remi Collet <fedora> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 13 | CC: | fedora, f.grutschus, jorton, pahan, redhat, rpm | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| URL: | http://www.php.net/ini.sections | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2010-09-11 05:52:50 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: | |||||||
| Attachments: |
|
||||||
|
Description
Fabian Grutschus
2010-09-06 13:14:43 UTC
Verified # php -m | wc -l 73 # echo "[PATH=/usr]" >/etc/php.d/test.ini # php -m | wc -l 65 Fix seems trivial, but imply to fix all extension .ini files - from php main package - from all php-pecl-package 16 packages - from other php extensions cups-php graphviz-php ice-php nntpgrab-php php-facedetect php-libpuzzle php-magickwand php-mapip php-shout rrdtool-php syck-php uuid-php From repoquery --whatprovides '/etc/php.d/*.ini' : Is it really a change needed when is so simple to simply add [PATH=xx] and [HOST=xx] in the last ini file, (/etc/php.d/z-myhost.ini, p.e.) ? Joe ? It could be useful to file an upstream bug on php project to ask to "reset" the section on each new ini file... From reading the code the section *is* reset to default before reading /etc/php.d so it should not be the case that any section in /etc/php.ini affects the php.d files in any way. Only the latter case of adding a section to a php.d ini file. This is trivial to fix in the code (move down the RESET_ACTIVE_INI_HASH() macro) and that is probably appropriate rather than changing our ini files, unless upstream disagree. That's not true, I tested it: [root@homebox crash]# php -m | wc -l 54 [root@homebox crash]# echo "[PATH=/usr]" >> /etc/php.ini [root@homebox crash]# php -m | wc -l 32 I'll create a bug entry at bugs.php.net to clarify this bug. Created attachment 443350 [details]
Reset ini hash before "each" file in php.d
The attached patch fixes the describe issue
- reset ini hash before "each" file in php.d
- fix RESET_ACTIVE_INI_HASH (to also reset is_special_section)
@Fabian : what you describe in comment #4 is link to the need to also reset "is_special_section". Remi Collet: thanks for the fast fix. I've reported this to the PHP developers here: http://bugs.php.net/bug.php?id=52786 @Fabian : if you want to try the fix, please use the test build from http://rpms.famillecollet.com/fedora/13/test/x86_64/repoview/ (php-5.3.4-0.1.201009061630.fc13.remi). Thanks for the patch, Remi; thanks to both of you for pushing this upstream. I've applied Remi's patch without change on the 5.3 branch and trunk. Thanks for pushing the report up to us! I close thid bug as upstream. The fix will be available in next release (5.3.4) |