Last modified: 2011-04-30 01:16:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19897, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17897 - Uninitialized string offset
Uninitialized string offset
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.14.x
PC Linux
: Normal blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-09 21:43 UTC by Luigi Corsaro
Modified: 2011-04-30 01:16 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
screen snapshots of the web page, in the bottom of the page the nested words (105.74 KB, image/png)
2009-03-09 21:43 UTC, Luigi Corsaro
Details

Description Luigi Corsaro 2009-03-09 21:43:56 UTC
Created attachment 5905 [details]
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
Comment 1 Chad H. 2009-03-11 13:28:35 UTC
If $t = '', this will happen, because the index 0 doesn't exist. Fixed in r48311.


Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links