Page MenuHomePhorge

Clarify comment in PhutilJSON about required PHP version
ClosedPublic

Authored by aklapper on Mon, Aug 26, 10:29.

Details

Summary

Future developers may want to clean up some code after bumping required versions, so explicitly state that JSON_UNESCAPED_SLASHES was introduced in PHP 5.4.0 and that the PHP JSON extension is a core PHP extension since PHP 8.0.0 and cannot be disabled anymore, to save time looking up stuff.

https://www.php.net/ChangeLog-5.php#5.4.0
https://www.php.net/manual/en/json.installation.php

Test Plan

Read the docs.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mon, Aug 26, 13:45

P.S. try applying D25809 to check if the red unit test becomes green

This revision was landed with ongoing or failed builds.Mon, Aug 26, 14:36
This revision was automatically updated to reflect the committed changes.

P.S. try applying D25809 to check if the red unit test becomes green

@valerio.bozzolan: It won't - my locale has always been en_US.utf8 so "my" issue isn't localization related (and it seems not to allow me to test your patch, as it "covers" your issue)...