Ticket #1956 (closed バグ指摘: 修正済)

Opened 8 years ago

Last modified 8 years ago

PHP5.4でoutput_handlerに関するWarning

Reported by: adachi Owned by: adachi
Priority: Milestone: EC-CUBE2.12.3
Component: フロント Version: 2.12.2
Keywords: Cc:
修正済み: yes

Description (last modified by adachi) (diff)

概要

PHP5.4環境で実行時、以下のWarningが発生する

PHP Warning:  Unknown: function 'NULL' not found or invalid function name in Unknown on line 0

原因

.htaccessの設定値が間違っている可能性がある

以下の箇所で、明示的にNULLで初期化しているが、正しくはnoneだと思われる.

対応

.htaccessを以下に変更。

php_value output_handler NULL
↓
php_value output_handler none

ただしこの修正により、Noticeが発生する.

[Wed Oct 24 06:42:59 2012] [error] [client 192.168.26.141] PHP Notice:  ob_end_clean(): failed to delete buffer. No buffer to delete in /home/web/www.ec-cube.net/html/require.php on line 35

ob_get_length()の判定も加えるとよい?

if (ob_get_level() > 0 && ob_get_length() > 0) {
    while (ob_end_clean());
}

参考URL: http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=11143&forum=2&post_id=52812

Change History

comment:1 Changed 8 years ago by adachi

  • Description modified (diff)

comment:2 Changed 8 years ago by adachi

  • 修正済み set

r22071 で対応済

comment:3 Changed 8 years ago by adachi

  • Status changed from new to closed
  • Resolution set to 修正済
Note: See TracTickets for help on using tickets.