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

       Web browser: ---
             Bug #: 39825
           Summary: Special:Version can warn about '#' comments in
                    .git/config
           Product: MediaWiki
           Version: 1.20-git
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: Special pages
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


I upgraded to MediaWiki wmf/1.20wmf10 and now Special:Version prints the
following deprecation warning, one I don't recall seeing before, about my
.git/config file in one of my extensions:
  Deprecated: Comments starting with '#' are deprecated in 
.../extensions/E3Experiments/.git//config on line 6 in .../includes/GitInfo.php
on line 139".

I do have a # comment line in that config file.  But '#' is a completely legit
comment symbol in .git/config [1].  GitInfo.php invokes PHP's parse_ini_file()
which in PHP 5.3 deprecates '#'.[2]

The workaround is to use ';' for comments in .git/config.

[1] http://www.kernel.org/pub/software/scm/git/docs/git-config.html#_syntax
[2] http://php.net/manual/en/function.parse-ini-file.php

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to