[Bug 23817] wfObjectToArray does not recurse into arrays
https://bugzilla.wikimedia.org/show_bug.cgi?id=23817 Bryan Tong Minh bryan.tongm...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED CC||bryan.tongm...@gmail.com Resolution|FIXED | --- Comment #5 from Bryan Tong Minh bryan.tongm...@gmail.com 2011-03-10 11:08:04 UTC --- I think this is still broken: $s = FormatJson::encode(array( 'a' = array( array( 'b' = 'c' ) ) ) ); print $s; {a:[{b:c}]} var_dump(FormatJson::decode($s)); object(stdClass)#11 (1) { [a]= array(1) { [0]= object(stdClass)#12 (1) { [b]= string(1) c } } } print SpecialVersion::getSvnRevision( $IP ); 82934 -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- 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
[Bug 23817] wfObjectToArray does not recurse into arrays
https://bugzilla.wikimedia.org/show_bug.cgi?id=23817 --- Comment #6 from Bryan Tong Minh bryan.tongm...@gmail.com 2011-03-10 11:44:32 UTC --- Ah, the problem is that wfObjectToArray is not called at all for json_decode. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- 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
[Bug 23817] wfObjectToArray does not recurse into arrays
https://bugzilla.wikimedia.org/show_bug.cgi?id=23817 Bryan Tong Minh bryan.tongm...@gmail.com changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED --- Comment #7 from Bryan Tong Minh bryan.tongm...@gmail.com 2011-03-10 12:05:17 UTC --- Reclosing, was based on a misunderstanding from my side. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- 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
[Bug 23817] wfObjectToArray does not recurse into arrays
https://bugzilla.wikimedia.org/show_bug.cgi?id=23817 Brion Vibber br...@pobox.com changed: What|Removed |Added AssignedTo|wikibugs-l@lists.wikimedia. |br...@pobox.com |org | -- 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
[Bug 23817] wfObjectToArray does not recurse into arrays
https://bugzilla.wikimedia.org/show_bug.cgi?id=23817 Brion Vibber br...@pobox.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #4 from Brion Vibber br...@pobox.com 2011-02-13 23:09:23 UTC --- wfObjectToArray fix patch committed on trunk with whitespace cleanup in r82090. FormatJson tweak to use Services_JSON's native associate array output applied on trunk in r82091. Both good catches and good fixes -- thanks for the patches Tim! -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- 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
[Bug 23817] wfObjectToArray does not recurse into arrays
https://bugzilla.wikimedia.org/show_bug.cgi?id=23817 Brion Vibber br...@pobox.com changed: What|Removed |Added Blocks||26250 -- 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
[Bug 23817] wfObjectToArray does not recurse into arrays
https://bugzilla.wikimedia.org/show_bug.cgi?id=23817 Ashar Voultoiz has...@free.fr changed: What|Removed |Added Keywords||need-review, patch CC||has...@free.fr -- 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
[Bug 23817] wfObjectToArray does not recurse into arrays
https://bugzilla.wikimedia.org/show_bug.cgi?id=23817 --- Comment #2 from Tim Yates supreme_geek_overl...@yahoo.com 2010-06-08 01:56:56 UTC --- Created an attachment (id=7436) -- (https://bugzilla.wikimedia.org/attachment.cgi?id=7436) wfObjectToArray Patch Here is a patch for wfObjectToArray(). It isn't the prettiest, but it works. I've tested it on my wiki. -- 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
[Bug 23817] wfObjectToArray does not recurse into arrays
https://bugzilla.wikimedia.org/show_bug.cgi?id=23817 --- Comment #3 from Tim Yates supreme_geek_overl...@yahoo.com 2010-06-08 02:07:45 UTC --- Created an attachment (id=7437) -- (https://bugzilla.wikimedia.org/attachment.cgi?id=7437) FormatJson loose typing patch This separate patch changes FormatJson to use Service_JSON's built-in method for specifying loose typing, where objects are decoded as arrays. It avoids using wfObjectToArray in the first place. It works together with the other patch or separately. -- 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
[Bug 23817] wfObjectToArray does not recurse into arrays
https://bugzilla.wikimedia.org/show_bug.cgi?id=23817 --- Comment #1 from Tim Yates supreme_geek_overl...@yahoo.com 2010-06-07 03:37:21 UTC --- Oops. That line number in the error message should be 101--I added a line in the process of debugging. -- 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