Last modified: 2011-04-30 01:20:38 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 T24278, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22278 - eregi deprecated in PHP 5.3 - SpecialUpload.php line 1501
eregi deprecated in PHP 5.3 - SpecialUpload.php line 1501
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.15.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-27 01:37 UTC by Duane Leinninger II
Modified: 2011-04-30 01:20 UTC (History)
4 users (show)

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


Attachments

Description Duane Leinninger II 2010-01-27 01:37:50 UTC
eregi causing error on PHP 5.3:

[Tue Jan 26 16:30:25 2010] [error] [client ***.***.***.***] PHP Deprecated:  Function eregi() is deprecated in /Library/WebServer/Sites/XXXXXX/wiki.xxxxxxxxx.com/phase3/includes/specials/SpecialUpload.php on line 1501, referer: http://wiki.xxxxxxxxx.com/index.php/Special:Upload

change from
if (eregi("<!DOCTYPE *X?HTML",$chunk)) return true;

to
if (preg_match("/<!DOCTYPE *X?HTML/i",$chunk)) return true;

to fix
Comment 1 Chad H. 2010-01-27 13:12:27 UTC
This is already fixed in trunk. Not sure if it's worth backporting a fix to the REL1_15 branch.
Comment 2 Platonides 2010-01-27 13:20:17 UTC
I don't think so. 
MediaWiki 1.16 should be out soon* and E_DEPRECATED isn't supposed to be enabled in production anyway.
Comment 3 Andrew Garrett 2010-01-27 13:22:50 UTC
I don't think MediaWiki actually supports PHP 5.3 anyway.

Or is that PHP 6?

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


Navigation
Links