FreedomKnight's Blog
  • Home
  • Tag
  • Author
  • Help

json

A collection of 1 post

php

PHP 對空字串的 json_encode 跟 json_decode

這兩天好好的研究一下 php 的 source code ,接著打算試著回饋補釘給 php 上游 因此我到 php bug reporting 找了一個看起來蠻簡單的 bug 來修 傳送門 把重點整理出來一下 Test script: --------------- var_dump( json_decode( json_encode( "" ) ) ); Expected result: ---------------- null Actual

  • FreedomKnight
    FreedomKnight
2 min read
FreedomKnight's Blog © 2026
Latest Posts Facebook Twitter Ghost