From: Anantha Kesari H Y Date: Wed, 22 Sep 2004 15:51:56 +0000 (+0000) Subject: NetWare specific stack limit checks X-Git-Tag: PRE_NEW_VM_GEN_PATCH~253 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b66e7aec6272e84936784079fd663462253650d7;p=php NetWare specific stack limit checks --- diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 413a7f8b05..38bd1e323b 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -49,6 +49,9 @@ static DWORD timeout_thread_id; static int timeout_thread_initialized=0; #endif +#ifdef NETWARE +ZEND_API void zend_nw_stack_limit(int dummy); +#endif #if ZEND_DEBUG static void (*original_sigsegv_handler)(int); @@ -178,6 +181,10 @@ void init_executor(TSRMLS_D) EG(timed_out) = 0; #endif +#ifdef NETWARE + EG(nw_stack_limit) = 0; +#endif + EG(exception) = NULL; EG(scope) = NULL; @@ -1104,6 +1111,12 @@ ZEND_API void zend_timeout(int dummy) EG(timeout_seconds), EG(timeout_seconds) == 1 ? "" : "s"); } +#ifdef NETWARE +ZEND_API void zend_nw_stack_limit(int dummy) +{ + zend_error(E_ERROR, "Stack limit exceeded"); +} +#endif #ifdef ZEND_WIN32 static LRESULT CALLBACK zend_timeout_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) diff --git a/Zend/zend_globals.h b/Zend/zend_globals.h index b005c2a6c0..d8f87f6392 100644 --- a/Zend/zend_globals.h +++ b/Zend/zend_globals.h @@ -204,6 +204,10 @@ struct _zend_executor_globals { zend_bool timed_out; #endif +#ifdef NETWARE + zend_bool nw_stack_limit; +#endif + HashTable regular_list; HashTable persistent_list;