Project

General

Profile

Backport(バックポート) #3645

PHP5.2.x環境でjson_encodeの呼び出し時にWarningが発生する

Added by 誠二 天重 over 9 years ago. Updated almost 4 years ago.

Status:
Invalid(無効)
Priority:
Normal(通常)
Assignee:
-
Target version:
Start date:
2012-04-23
Due date:
% Done:

0%


Description

Overview (現象)

Causes (原因)

json_encode の第2引数はPHP5.3.0で追加されたもので、それ以前のバージョンで実行されることを考慮されていなかったことが原因。

参考: PHP: json_encode - Manual

Way to fix (修正内容)

JSON_PRETTY_PRINT が定義されていない場合に json_encode の第2引数を指定しないように修正する。


Related issues

Copied from OpenPNE 3 - Bug(バグ) #3026: PHP5.2.x環境でjson_encodeの呼び出し時にWarningが発生する Fixed(完了) 2012-04-23

History

#1 Updated by 誠二 天重 over 9 years ago

  • Copied from Bug(バグ) #3026: PHP5.2.x環境でjson_encodeの呼び出し時にWarningが発生する added

#2 Updated by isao sano over 9 years ago

  • Target version changed from OpenPNE 3.8.12 to OpenPNE 3.8.x

#4 Updated by kaoru n almost 4 years ago

  • Status changed from New(新規) to Invalid(無効)

#3028 と重複しているためこのチケットは無効とします

Also available in: Atom PDF