We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc832a6 commit 916b2ddCopy full SHA for 916b2dd
1 file changed
php_decimal.c
@@ -2608,17 +2608,17 @@ PHP_MSHUTDOWN_FUNCTION(decimal)
2608
*/
2609
PHP_RINIT_FUNCTION(decimal)
2610
{
2611
+#if defined(COMPILE_DL_DECIMAL) && defined(ZTS)
2612
+ ZEND_TSRMLS_CACHE_UPDATE();
2613
+#endif
2614
+
2615
/* Initialize the shared context */
2616
mpd_init(php_decimal_context(), PHP_DECIMAL_DEFAULT_PRECISION);
2617
2618
/* Set default rounding */
2619
mpd_qsettraps(php_decimal_context(), PHP_DECIMAL_TRAPS);
2620
mpd_qsetround(php_decimal_context(), PHP_DECIMAL_DEFAULT_ROUNDING);
2621
-#if defined(COMPILE_DL_DECIMAL) && defined(ZTS)
- ZEND_TSRMLS_CACHE_UPDATE();
-#endif
-
2622
return SUCCESS;
2623
}
2624
0 commit comments