diff options
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r-- | ext/standard/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index a7aa02fcbd..3e06085a5f 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -4849,8 +4849,8 @@ PHP_FUNCTION(setlocale) plocale = &args[i]; } - loc = zval_get_string(plocale); - if (EG(exception)) { + loc = zval_try_get_string(plocale); + if (UNEXPECTED(!loc)) { return; } |