Skip to content

Commit 4eaf2c3

Browse files
committed
Revert "For #12"
This reverts commit 0bc1cb0.
1 parent b211485 commit 4eaf2c3

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

php_decimal.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ zend_class_entry *php_decimal_ce;
3636
*/
3737
zend_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
*/
258253
static zend_always_inline mpd_context_t *php_decimal_context()
259254
{
260-
return &php_decimal_ctx;
255+
return &DECIMAL_G(ctx);
261256
}
262257

263258
/**

php_decimal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ ZEND_RSHUTDOWN_FUNCTION(decimal);
279279
ZEND_MINFO_FUNCTION(decimal);
280280

281281
ZEND_BEGIN_MODULE_GLOBALS(decimal)
282+
mpd_context_t ctx;
282283
mpd_t *pi;
283284
ZEND_END_MODULE_GLOBALS(decimal)
284285

0 commit comments

Comments
 (0)