diff options
author | Dmitry Stogov <dmitry@php.net> | 2009-03-18 10:18:10 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2009-03-18 10:18:10 +0000 |
commit | 31c0af245e7601f3c3c870c20a57e9cf8634bb7b (patch) | |
tree | 38d551086ead5a5d7c84f70154028b712de5550e /Zend/zend_execute_API.c | |
parent | d3b42700a0279bfcd58414799b81cd332d1fa08f (diff) | |
download | php-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.c | 5 |
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; } /* }}} */ |