summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2009-03-18 10:18:10 +0000
committerDmitry Stogov <dmitry@php.net>2009-03-18 10:18:10 +0000
commit31c0af245e7601f3c3c870c20a57e9cf8634bb7b (patch)
tree38d551086ead5a5d7c84f70154028b712de5550e /Zend/zend_execute_API.c
parentd3b42700a0279bfcd58414799b81cd332d1fa08f (diff)
downloadphp-git-31c0af245e7601f3c3c870c20a57e9cf8634bb7b.tar.gz
Fixed floating point mathematic speed degradation (Christian)
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r--Zend/zend_execute_API.c5
1 files changed, 5 insertions, 0 deletions
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;
}
/* }}} */