Page MenuHomePhabricator

Uninitialized string offset
Closed, ResolvedPublic


Author: l.corsaro

screen snapshots of the web page, in the bottom of the page the nested words

Randomly the apache log throw the error

PHP Notice: Uninitialized string offset: 0 in ../includes/parser/Parser.php on line 2181

Looking the code and after various test I found that sometimes the $t variables is not an array so, I changed from ' ' == $t{0} into ' '== substr($t,0)

and seems not throw any error

Version: 1.14.x
Severity: blocker
OS: Linux
Platform: PC


parser-error.png (714×1 px, 105 KB)



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:34 PM
bzimport set Reference to bz17897.
bzimport added a subscriber: Unknown Object (MLST).

If $t = '', this will happen, because the index 0 doesn't exist. Fixed in r48311.