duangongqiong6958 2011-04-02 19:50
浏览 41
已采纳

你如何定义术语“失败的功能”?

In a presentation about Zend Server, the author lists the features of Zend Monitor. One of these features is called:

  • Zend Monitor will watch your application for failing functions

What does this mean, if you subtract error and exception monitoring? How can you detect a failing function, if not through and error or uncaught exception?

  • 写回答

2条回答 默认 最新

  • dtqysxw4659 2011-04-22 21:50
    关注

    Hope it's not too late to give an answer "from the makers" (I work on Zend Server), but the "Function Error" events (as well as "Database Error" events) are triggered when one of the watched functions (defined in the monitoring rule) returns boolean FALSE.

    This follows a pattern which is common especially in the more "traditional" PHP APIs (e.g. mysql, curl, openssl etc.) where some function will simply return FALSE to indicate failure, and you then are required to call a "get_errors()" function to see what went wrong.

    This is unlike "normal" PHP errors which are E_ERROR, E_WARNING etc. error types, which some other PHP functions will raise when something fails.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退