id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	modified_flg
1956	PHP5.4でoutput_handlerに関するWarning	adachi	adachi	"'''概要'''

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
"	バグ指摘	closed	中	EC-CUBE2.12.3	フロント	2.12.2	修正済			1
