Ticket #1956 (closed バグ指摘: 修正済)
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
Note: See
TracTickets for help on using
tickets.