https://bugzilla.wikimedia.org/show_bug.cgi?id=22278

           Summary: eregi deprecated in PHP 5.3 - SpecialUpload.php line
                    1501
           Product: MediaWiki
           Version: 1.15.1
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Uploading
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: du...@leinninger.com
                CC: gpaum...@wikimedia.org


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

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to