- Why i cant unset static property CORE::$ObjClass or self::$ObjClass?
Good question. I don't see anything in the official documentation of unset()
or static properties that mentions this. But obviously you can't.
- What is the right way to do it with static property?
You could just set it to NULL
or an empty array.
- Why Event handler does not capture the following error?
The documentation says:
The following error types cannot be handled with a user defined function: E_ERROR
, E_PARSE
, E_CORE_ERROR
, E_CORE_WARNING
, E_COMPILE_ERROR
, E_COMPILE_WARNING
, and most of E_STRICT
raised in the file where set_error_handler()
is called.
This error is presumably one of these types. I'm not sure how to tell specifically what its type is.
The shutdown function is being called, but for some reason error_get_last()
is returning NULL
rather than the information about this error.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…