Last modified: 2011-02-04 22:07:39 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 T29099, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27099 - Regression in WebRequest: PHP warning on every non-PATHINFO'd page request
Regression in WebRequest: PHP warning on every non-PATHINFO'd page request
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.18.x
All All
: Normal blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-02 03:03 UTC by Brion Vibber
Modified: 2011-02-04 22:07 UTC (History)
3 users (show)

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


Attachments

Description Brion Vibber 2011-02-02 03:03:38 UTC
Page hits that don't have PATHINFO stuff on them but use bare script + query string such as:

http://lazarus.local/trunk/index.php?title=Special:Foobar

spew a warning like this:

<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/Library/WebServer/Documents/trunk/includes/WebRequest.php</b> on line <b>128</b><br />

This error is due to something other than an array being returned from WebRequest::getPathInfo(), which has apparently been rewritten in r81363
Comment 1 Mark A. Hershberger 2011-02-02 03:18:11 UTC
(In reply to comment #0)

> This error is due to something other than an array being returned from
> WebRequest::getPathInfo(), which has apparently been rewritten in r81363

Well, it was created in r81363.  Could you check r81373?
Comment 2 Raimond Spekking 2011-02-02 07:36:29 UTC
(In reply to comment #1)
> (In reply to comment #0)
> 
> > This error is due to something other than an array being returned from
> > WebRequest::getPathInfo(), which has apparently been rewritten in r81363
> 
> Well, it was created in r81363.  Could you check r81373?

No, does not work :-( Still seeing this warning on Translatewiki
Comment 3 Niklas Laxström 2011-02-02 08:43:31 UTC
[02-Feb-2011 07:31:03] PHP Notice:  Undefined variable: matches in /www/w/includes/WebRequest.php on line 109
Comment 4 Sam Reed (reedy) 2011-02-02 17:51:19 UTC
r81387

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


Navigation
Links