|
73 | 73 | #include "zend_dtrace.h"
|
74 | 74 | #include "zend_observer.h"
|
75 | 75 | #include "zend_system_id.h"
|
76 |
| -#include "zend_fibers.h" |
77 | 76 |
|
78 | 77 | #include "php_content_types.h"
|
79 | 78 | #include "php_ticks.h"
|
@@ -303,36 +302,6 @@ static PHP_INI_MH(OnSetLogFilter)
|
303 | 302 | }
|
304 | 303 | /* }}} */
|
305 | 304 |
|
306 |
| -/* {{{ PHP_INI_MH */ |
307 |
| -static PHP_INI_MH(OnUpdateFiberStackSize) |
308 |
| -{ |
309 |
| - zend_long tmp; |
310 |
| - const size_t page_size = zend_fiber_page_size(); |
311 |
| - |
312 |
| - if (OnUpdateLongGEZero(entry, new_value, mh_arg1, mh_arg2, mh_arg3, stage) == FAILURE) { |
313 |
| - return FAILURE; |
314 |
| - } |
315 |
| - |
316 |
| - if (EG(fiber_stack_size) == 0) { |
317 |
| - EG(fiber_stack_size) = page_size * ZEND_FIBER_DEFAULT_PAGE_COUNT; |
318 |
| - return SUCCESS; |
319 |
| - } |
320 |
| - |
321 |
| - EG(fiber_stack_size) += ZEND_FIBER_GUARD_PAGES; |
322 |
| - |
323 |
| - tmp = page_size * EG(fiber_stack_size); |
324 |
| - |
325 |
| - if (tmp / page_size != EG(fiber_stack_size)) { |
326 |
| - EG(fiber_stack_size) = page_size * ZEND_FIBER_DEFAULT_PAGE_COUNT; |
327 |
| - return FAILURE; |
328 |
| - } |
329 |
| - |
330 |
| - EG(fiber_stack_size) = tmp; |
331 |
| - |
332 |
| - return SUCCESS; |
333 |
| -} |
334 |
| -/* }}} */ |
335 |
| - |
336 | 305 | /* {{{ php_disable_classes */
|
337 | 306 | static void php_disable_classes(void)
|
338 | 307 | {
|
@@ -768,8 +737,6 @@ PHP_INI_BEGIN()
|
768 | 737 | STD_PHP_INI_ENTRY("syslog.facility", "LOG_USER", PHP_INI_SYSTEM, OnSetFacility, syslog_facility, php_core_globals, core_globals)
|
769 | 738 | STD_PHP_INI_ENTRY("syslog.ident", "php", PHP_INI_SYSTEM, OnUpdateString, syslog_ident, php_core_globals, core_globals)
|
770 | 739 | STD_PHP_INI_ENTRY("syslog.filter", "no-ctrl", PHP_INI_ALL, OnSetLogFilter, syslog_filter, php_core_globals, core_globals)
|
771 |
| - |
772 |
| - STD_PHP_INI_ENTRY("fiber.stack_size", "0", PHP_INI_ALL, OnUpdateFiberStackSize, fiber_stack_size, zend_executor_globals, executor_globals) |
773 | 740 | PHP_INI_END()
|
774 | 741 | /* }}} */
|
775 | 742 |
|
|
0 commit comments