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.

Comments

marcp’s picture

I 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.

drewish’s picture

StatusFileSize
new526 bytes

after 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.

webchick’s picture

Status: Needs review » Reviewed & tested by the community

Second patch looks good to go.

drewish’s picture

StatusFileSize
new693 bytes

here's a re-roll that's from the root.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

drumm’s picture

Committed to 5.

Anonymous’s picture

Status: Fixed » Closed (fixed)