I have an older Debian server and a local install of Wordpress; I'm trying to track down why calling:
echo json_encode('?');
on the Debian server results in "\ud83dde00"
but on my local install, calling the same json_encode
line results in "\ud83d\ude00"
(which is what I'd expect to see on the Debian server too)...
Both versions of php are compiled with mbstring=all
enabled, and both use libmbfl version 1.3.2
Facepalm. Because I had
--disable-all
thejson
module wasn't being compiled in, so adding--enable-json
and recompiling then means thatecho json_encode('?');
now returns"\ud83d\ude00"