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

       Web browser: ---
             Bug #: 35580
           Summary: ProfilerSimpleUDP does not check for function_exists(
                    'socket_create' )
           Product: MediaWiki
           Version: 1.18
          Platform: All
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: ques...@rambler.ru
    Classification: Unclassified
   Mobile Platform: ---


When debugging my extension, sometimes I get the following error in Chrome
console (it seems to be catched at server-side then thrown by client-side of
ResourceLoader):

mw.loader.implement("jquery.ui.map",
["http://localmoscow.priv/extensions/JQGmap/jquery-ui-map-3.0-beta/ui/jquery.ui.map.js";],
{}, {});
mw.loader.implement("jquery.ui.map.services",
["http://localmoscow.priv/extensions/JQGmap/jquery-ui-map-3.0-beta/ui/jquery.ui.map.services.js";],
{}, {});

Fatal error: Call to undefined function socket_create() in
E:\www\1.18wmf1\includes\profiler\ProfilerSimpleUDP.php on line 23
Uncaught SyntaxError: Unexpected identifier

Call Stack:
    0.0002      74080   1. {main}() E:\www\1.18wmf1\load.php:0
    0.1287   12406104   2. wfLogProfilingData() E:\www\1.18wmf1\load.php:50
    0.1287   12407648   3. ProfilerSimpleUDP->logData()
E:\www\1.18wmf1\includes\GlobalFunctions.php:903

The target machine is Windows Server 2003 SP2 with
e:\www\1.18wmf1\includes\profiler>php -v
PHP 5.2.9-2 (cli) (built: Apr  9 2009 08:23:19)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

I know that PHP is really old, however version check of 1.18wmf1 does not
refuse to run at this configuration.

Also, I think there probably should be "Component" entry for profiler in
Bugzilla.

-- 
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 on the CC list for the bug.

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

Reply via email to