]> granicus.if.org Git - php/commitdiff
NetWare specific stack limit checks
authorAnantha Kesari H Y <hyanantha@php.net>
Wed, 22 Sep 2004 15:51:56 +0000 (15:51 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Wed, 22 Sep 2004 15:51:56 +0000 (15:51 +0000)
Zend/zend_execute_API.c
Zend/zend_globals.h

index 413a7f8b05f4e9bb1299264d12fc3bc2217f7627..38bd1e323bd92caf7d96acd611b954afb8d1216e 100644 (file)
@@ -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)
index b005c2a6c0901c6b3fedbca5b9c397eee9efea8c..d8f87f63924687d6b6af96deb6cce22bf6a73d14 100644 (file)
@@ -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;