]> granicus.if.org Git - php/commitdiff
Stack limit will be checked while executing the script
authorAnantha Kesari H Y <hyanantha@php.net>
Wed, 22 Sep 2004 14:20:19 +0000 (14:20 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Wed, 22 Sep 2004 14:20:19 +0000 (14:20 +0000)
Zend/zend_execute.c

index da90c8c863af997d80c25253db9ff2ed7836fc2b..803704fab471cda57822bc6aa1ff8566ddf5b4fc 100644 (file)
@@ -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;
                }