From: Anantha Kesari H Y Date: Wed, 22 Sep 2004 14:20:19 +0000 (+0000) Subject: Stack limit will be checked while executing the script X-Git-Tag: PRE_NEW_VM_GEN_PATCH~255 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8eb7503078b804fd38ba06ff67814ddca98b6e38;p=php Stack limit will be checked while executing the script --- diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index da90c8c863..803704fab4 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1486,7 +1486,11 @@ ZEND_API void execute(zend_op_array *op_array TSRMLS_DC) zend_timeout(0); } #endif - +#ifdef NETWARE + if (EG(nw_stack_limit) || (stackavail() <= 2048)) { + zend_nw_stack_limit(0); + } +#endif if (EX(opline)->handler(&execute_data TSRMLS_CC)) { return; }