Closed (fixed)
Project:
Drupal core
Version:
5.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Sep 2006 at 17:26 UTC
Updated:
15 Dec 2006 at 17:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
chx commentedApplies, works, necessary.
Comment #2
Steven commentedThe lack of a description was intentional. The status report page should avoid displaying additional information when nothing is wrong.
I'd prefer a patch that simply gets rid of the PHP notice instead.
Comment #3
davemicc commentedThis patch returns a blank description string.
There is another problem here. The "severity" constants REQUIREMENT_OK, REQUIREMENT_WARNING, REQUIREMENT_ERROR, and REQUIREMENT_INFO are not defined when _unicode_check() is called from unicode_check() (only when called from unicode_requirements(), they are defined at the top of install.inc). This produces an undefined constant notice when mbstring is not correctly installed or all the time with this patch.
_unicode_check() does not need to return the severity constant at all because it already returns another constant that describes the status of unicode support. This patch removes the third array item in all the possible return values of _unicode_check() and decides which requirement constant to use with a switch statement in unicode_requirements().
Comment #4
Steven commented-1 messy code. The switch statement can be written more compact by using an associative array map.
Comment #5
davemicc commentedUses associative array map.
Comment #6
webchickAm I crazy, or is this the only thing that needs to get done?
Comment #7
webchickNevermind. ;) I should read issues. Patch in #5 no longer applies though. Re-rolling...
Comment #8
webchickGeez!! Once again, I'm an idiot. Anyway, patch in #5 applies fine and gets rid of the notices. RTBC.
Comment #9
webchickComment #10
drummCommitted to HEAD.
Comment #11
killes@www.drop.org commentedNeil, I think you committed the wrong patch (#6) while webchick recommended #5. Should this be backprted?
Comment #12
webchickAck.. yes, patch in #6 should be removed in favour of #5. Sorry about that. :( Now there's still a notice about an undefined constant REQUIREMENT_OK.
As for back-porting, it doesn't look like it. These fixes were all around stuff added by the installer. I just removed the ^ E_NOTICE from the line in common.inc in 4.7 checkout, and don't see any errors about unicode.inc, so I think 4.7 is ok (though there are a bunch of others ;)).
Comment #13
webchickMarking RTBC so Neil looks at this again. Patch in #5 of course no longer applies, but will after a patch -R of #6.
Comment #14
webchickAnd just for good measure, here's a patch that does this.
Comment #15
dries commentedCommitted to CVS HEAD. Thanks.
Comment #16
(not verified) commented