Last modified: 2011-01-15 17:45:49 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 T28713, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26713 - Wikihiero not rendering with PHP 5.3.4
Wikihiero not rendering with PHP 5.3.4
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikiHiero (Other open bugs)
unspecified
All All
: High trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-13 21:30 UTC by Dan Nessett
Modified: 2011-01-15 17:45 UTC (History)
2 users (show)

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


Attachments
FIxes third parameter mis-match with parser call (393 bytes, patch)
2011-01-13 21:30 UTC, Dan Nessett
Details

Description Dan Nessett 2011-01-13 21:30:42 UTC
Created attachment 7989 [details]
FIxes third parameter mis-match with parser call

I updated my PHP version from 5.2.4 to 5.3.4. As a result wikihiero no longer renders properly. I turned on PHP display_errors and the following warning appeared:

Warning: Parameter 3 to WikiHieroLoader() expected to be a reference, value given in /czdata/cz/phase3/includes/parser/Parser.php on line 3287 Call Stack: 0.0003 664008

This was followed by a stack trace.

I modified the signature of WikiHieroLoader() in wikihiero.php (see attached patch), which eliminated the warning and restored hieroglyphs rendering.

I have attached a patch.
Comment 1 Antoine "hashar" Musso (WMF) 2011-01-13 21:34:01 UTC
adds keyword, changed priority/severity
Comment 2 Dan Nessett 2011-01-13 21:45:27 UTC
(In reply to comment #1)
> adds keyword, changed priority/severity

I should have added one thing. This patch worked for MW 1.16. When I tried to change the signature on a MW 1.13.2 system, it didn't. Rendering completely hung. So, this fix should only apply to MW 1.16 systems.
Comment 3 Sam Reed (reedy) 2011-01-14 18:33:15 UTC
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/wikihiero/wikihiero.php?view=annotate

From what I can see, it's already & in trunk, and has been since before 18926 (which was just whitespace changes)

So I've no idea what happened to the copy you are using...
Comment 4 Dan Nessett 2011-01-14 19:54:33 UTC
(In reply to comment #3)
> http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/wikihiero/wikihiero.php?view=annotate
> 
> From what I can see, it's already & in trunk, and has been since before 18926
> (which was just whitespace changes)
> 
> So I've no idea what happened to the copy you are using...

This occurred on a fresh check out of REL1_16_1 (http://svn.wikimedia.org/viewvc/mediawiki/tags/REL1_16_1/). If you look at that tagged branch (http://svn.wikimedia.org/viewvc/mediawiki/tags/REL1_16_1/extensions/wikihiero/wikihiero.php?revision=79565&view=markup), the revision of Wikihiero is 79565. So, the most stable version of MW does not contain the bug fix.
Comment 5 Sam Reed (reedy) 2011-01-14 19:59:22 UTC
http://svn.wikimedia.org/viewvc/mediawiki/tags/REL1_16_1/extensions/wikihiero/wikihiero.php?annotate=79565

52	hashar	18926	// MediaWiki entry point
53	 	 	function WikiHieroLoader( $text, $attribs, &$parser ) {

And it's there in r66255.tar.gz">http://upload.wikimedia.org/ext-dist/wikihiero-MW1.16-r66255.tar.gz

I'm beyond confused
Comment 6 Antoine "hashar" Musso (WMF) 2011-01-14 20:28:45 UTC
Please note the patch is mixed up. User actually request to remove the ampersand used to pass the parser by reference.
Comment 7 Sam Reed (reedy) 2011-01-14 20:36:30 UTC
Right

r80319

Needs backporting to 1.17 and 1.16
Comment 8 Dan Nessett 2011-01-15 00:41:02 UTC
(In reply to comment #6)
> Please note the patch is mixed up. User actually request to remove the
> ampersand used to pass the parser by reference.

(In reply to comment #6)
> Please note the patch is mixed up. User actually request to remove the
> ampersand used to pass the parser by reference.

Mea Culpa. Yes, the patch was backwards. My apologies.

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


Navigation
Links