[wp-trac] [WordPress Trac] #26153: test_json_encode_decode fails in PHP 5.4

WordPress Trac noreply at wordpress.org
Fri Nov 22 03:38:48 UTC 2013


#26153: test_json_encode_decode fails in PHP 5.4
-----------------------------+------------------------------
 Reporter:  georgestephanis  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  low              |   Milestone:  Awaiting Review
Component:  Unit Tests       |     Version:  trunk
 Severity:  minor            |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------------------

Comment (by SergeyBiryukov):

 FWIW, I could not reproduce the issue on PHP 5.4.6. The test runs
 successfully for me, and I didn't disable E_STRICT warnings or anything
 like that.

 > On 5.2, they will include the class automatically, and test cleanly. On
 5.4, it'll just test the native functions.

 PHP 5.2 has native `json_encode()` and `json_decode()` too, so the version
 doesn't matter here. What matters is whether PHP was compiled with the
 JSON extension (see #18015).

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26153#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list