File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,6 @@ zend_class_entry *php_decimal_ce;
3636 */
3737zend_object_handlers php_decimal_handlers ;
3838
39- /*
40- * Truly global context
41- */
42- mpd_context_t php_decimal_ctx ;
43-
4439
4540/******************************************************************************/
4641/* ERRORS AND DEBUGGING */
@@ -257,7 +252,7 @@ static void php_decimal_mpd_traphandler(mpd_context_t *ctx)
257252 */
258253static zend_always_inline mpd_context_t * php_decimal_context ()
259254{
260- return & php_decimal_ctx ;
255+ return & DECIMAL_G ( ctx ) ;
261256}
262257
263258/**
Original file line number Diff line number Diff line change @@ -279,6 +279,7 @@ ZEND_RSHUTDOWN_FUNCTION(decimal);
279279ZEND_MINFO_FUNCTION (decimal );
280280
281281ZEND_BEGIN_MODULE_GLOBALS (decimal )
282+ mpd_context_t ctx ;
282283mpd_t * pi ;
283284ZEND_END_MODULE_GLOBALS (decimal )
284285
You can’t perform that action at this time.
0 commit comments