In Old_* the Last Error should be preserved. Then, when returning from a hooking function, the last error can be restored. To offer full functionality, additional hook_get_last_error() and hook_set_last_error() functions should be introduced as well.
In
Old_*
the Last Error should be preserved. Then, when returning from a hooking function, thelast error
can be restored. To offer full functionality, additionalhook_get_last_error()
andhook_set_last_error()
functions should be introduced as well.