|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-09-24 15:24 UTC] rasmus@php.net
-Status: Open
+Status: Not a bug
[2012-09-24 15:24 UTC] rasmus@php.net
[2012-09-24 16:50 UTC] nikic@php.net
-Summary: Json is going stupid
+Summary: json_encode does not work on binary strings
[2012-09-24 16:50 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 15:00:01 2025 UTC |
Description: ------------ So, I have an array witch doesn't encode right in json... ( look the example script... ) Test script: --------------- $a = Array ( "password" => "SeRjQRVUglkeM‰‰P9L7NsjKXOY", //it's encrypted with a custom encryption system "id" => 0 ); echo json_encode($a); Expected result: ---------------- {"password":"SeRjQRVUglkeM‰‰P9L7NsjKXOY","id":0} Actual result: -------------- {"password":null,"id":0}