From 31c0af245e7601f3c3c870c20a57e9cf8634bb7b Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 18 Mar 2009 10:18:10 +0000 Subject: Fixed floating point mathematic speed degradation (Christian) --- Zend/zend_execute_API.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Zend/zend_execute_API.c') diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 7e3bce21d8..99c8dc3638 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -123,6 +123,8 @@ static int clean_non_persistent_class_full(zend_class_entry **ce TSRMLS_DC) /* { void init_executor(TSRMLS_D) /* {{{ */ { + zend_init_fpu(TSRMLS_C); + INIT_ZVAL(EG(uninitialized_zval)); /* trick to make uninitialized_zval never be modified, passed by ref, etc. */ Z_ADDREF(EG(uninitialized_zval)); @@ -331,6 +333,9 @@ void shutdown_executor(TSRMLS_D) /* {{{ */ FREE_HASHTABLE(EG(in_autoload)); } } zend_end_try(); + + zend_shutdown_fpu(TSRMLS_C); + EG(active) = 0; } /* }}} */ -- cgit v1.2.1