下載
軟體開發
帳戶
下載
軟體開發
登入
我忘記帳戶名和密碼了
新增帳戶
語言
手冊
語言
手冊
×
登入
登入名稱
密碼
×
我忘記帳戶名和密碼了
繁體中文翻譯狀態
類別:
軟體
人
PersonalForge
Magazine
Wiki
搜尋
OSDN
>
軟體搜索
>
Internet
>
WWW/HTTP
>
Dynamic Content
>
XOOPS
>
Ticket List/Search
>
待辦事項 #3069
XOOPS
描述
專案概要
開發人員儀表板
專案的網頁
Developers
Image Gallery
List of RSS Feeds
活動
使用統計
歷史
檔案下載
發布列表
Stats
原始碼
儲存庫列表
CVS
查看儲存庫
待辦事項
待辦事項列表
里程碑列表
類型列表
元件列表
List of frequently used tickets/RSS
新增待辦事項
文檔
溝通
討論區
討論區列表
幫助論壇 (1)
公開討論 (1)
通信論壇
通信論壇列表
xoops-cvslog
新聞
待辦事項 #3069
待辦事項列表
新增待辦事項
RSS
smartyのerror_reportingのコントロールが効かない
啟用日期:
2003-09-24 19:46
最後更新:
2004-01-07 22:06
監視
ON
OFF
回報者:
toshimitsu
負責人:
(無)
類型:
問題回報
狀態:
關閉
元件:
(無)
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
無
細節
回覆
Xoops2.0.4 errorhandler.phpでエラーハンドルしているが、
そのため、
[code]/class/smarty/Smarty.class.phpline 1068
$_smarty_old_error_level = $this->debugging ?
error_reporting() :error_reporting(error_reporting() &
~E_NOTICE);
[/code]
しかし、そのエラーハンドル処理のなかで、error_reportingの
値が、処理に反映されるようにしていないため、Smartyの
E_NOTICEメッセージが出る。
http://xoops.s22.xrea.com:8080/modules/newbb/viewtopic.
php?topic_id=86&forum=9
<変更案>下記案は、あまり良い例ではないけど
errorhandler.phpで、カレントのerror_reporting値を参照し
て、表示を出力をコントロールする必要があると思います。
[code]
/class/errorhandler.php from line 98 /**
* Handle an error * * @param array
$error Associative array containing error info
* @access public * @return void */
function handleError($error) {
if ($error['errno'] == E_NOTICE){
$_old_error_level = error_reporting(E_ALL);
if (($_old_error_level ==
0)||($_old_error_level == (E_ALL ^ E_NOTICE))){
//continue;
} else { $this-
>_errors[] = $error; }
error_reporting($_old_error_level);
} if ($error
['errno'] == E_USER_ERROR) {
$this->_isFatal = true;
exit(); } }
[/code]
Ticket History (3/6 Histories)
Show older Histories
2004-01-07 22:06
Updated by:
onokazu
Ticket Close date
is changed to
2004-01-07 22:06
處理結果
Update from
無
to
修正
狀態
Update from
開啟
to
關閉
評語
回覆
Logged In: YES
user_id=754
error_reportingが外部からも反映されるように修正しました。
2008-12-06 15:01
Updated by: None
評語
回覆
hello, good site.
2009-03-01 18:00
Updated by: None
評語
回覆
Beautiful site! momrf
2009-03-07 20:30
Updated by: None
評語
回覆
I like your work! 000-easter-egg-hunt-spring-festival.016qet.us/ ">10 iwcey
2009-03-07 21:40
Updated by: None
評語
回覆
Great portal! 9-10-little-rabbits-easter.016qet.us/ ">1 xzmor
2009-03-17 02:07
Updated by: None
評語
回覆
Beautiful portal! 000.f37rj8.us/ ">Patrick deuel i weigh 1 xcgfm
Attachment File List (
0
)
Attachment File List
No attachments
編輯
新增評語
You are not logged in.
I you are not logged in, your comment will be treated as an anonymous post. »
登入
新增評語
預覽
提交
そのため、
[code]/class/smarty/Smarty.class.phpline 1068
$_smarty_old_error_level = $this->debugging ?
error_reporting() :error_reporting(error_reporting() &
~E_NOTICE);
[/code]
しかし、そのエラーハンドル処理のなかで、error_reportingの
値が、処理に反映されるようにしていないため、Smartyの
E_NOTICEメッセージが出る。
http://xoops.s22.xrea.com:8080/modules/newbb/viewtopic.
php?topic_id=86&forum=9
<変更案>下記案は、あまり良い例ではないけど
errorhandler.phpで、カレントのerror_reporting値を参照し
て、表示を出力をコントロールする必要があると思います。
[code]
/class/errorhandler.php from line 98 /**
* Handle an error * * @param array
$error Associative array containing error info
* @access public * @return void */
function handleError($error) {
if ($error['errno'] == E_NOTICE){
$_old_error_level = error_reporting(E_ALL);
if (($_old_error_level ==
0)||($_old_error_level == (E_ALL ^ E_NOTICE))){
//continue;
} else { $this-
>_errors[] = $error; }
error_reporting($_old_error_level);
} if ($error
['errno'] == E_USER_ERROR) {
$this->_isFatal = true;
exit(); } }
[/code]