At several points I'm getting warnings for notice: Undefined variable: bytes in includes/unicode.inc on line 469.
The only code flow I can see that would cause it is if $multibyte != UNICODE_MULTIBYTE and $start == 0. I'm not certain that $bytes = 0 is correct but it's no worse than what's happening now.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | unicode.inc_142337_0.patch | 693 bytes | drewish |
| #2 | unicode.inc_142337.patch | 526 bytes | drewish |
| unicode.inc_.patch | 427 bytes | drewish |
Comments
Comment #1
marcp commentedI can confirm that the patch fixes the problem. I saw this happen a few times -- most recently on admin/build/modules after submission of the form.
Comment #2
drewish commentedafter a little debuggering i figured out that this is happening as part of the menu rebuild. this is being called by drupal_ucfirst() which calls drupal_substr() twice once for the first character and again for the rest. so you get drupal_substr('Page', 0, 1) and drupal_substr('Page', 1). the attached patch is a little simpler.
Comment #3
webchickSecond patch looks good to go.
Comment #4
drewish commentedhere's a re-roll that's from the root.
Comment #5
dries commentedCommitted to CVS HEAD. Thanks.
Comment #6
drummCommitted to 5.
Comment #7
(not verified) commented