- don't set php_errormsg on errors that will cause a zend_bailout().

using zend_hash_update() can make things worse in this situation.
- new function php_register_pre_request_shutdown(). this way modules
  can register callbacks that will be called as soon as execution of
  the script is done but *before* any cleanup (global symbol_table etc)
  has taken place.
This commit is contained in:
Thies C. Arntzen 2000-01-15 13:02:54 +00:00
parent e078a04fd0
commit 3ff75e5b8b
3 changed files with 45 additions and 23 deletions

View file

@ -320,6 +320,7 @@ int mergesort(void *base, size_t nmemb, register size_t size, int (*cmp) (const
extern PHPAPI int _php_error_log(int opt_err,char *message,char *opt,char *headers);
PHPAPI void php_register_post_request_startup(void (*func)(void *), void *userdata);
PHPAPI void php_register_pre_request_shutdown(void (*func)(void *), void *userdata);
PHPAPI int cfg_get_long(char *varname, long *result);
PHPAPI int cfg_get_double(char *varname, double *result);