diff options
Diffstat (limited to 'ext/gettext/gettext.c')
| -rw-r--r-- | ext/gettext/gettext.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/gettext/gettext.c b/ext/gettext/gettext.c index 44502729e5..dfe94c7a27 100644 --- a/ext/gettext/gettext.c +++ b/ext/gettext/gettext.c @@ -199,8 +199,8 @@ PHP_NAMED_FUNCTION(zif_gettext) ZEND_PARSE_PARAMETERS_END(); #endif - PHP_GETTEXT_LENGTH_CHECK("msgid", msgid->len) - msgstr = gettext(msgid->val); + PHP_GETTEXT_LENGTH_CHECK("msgid", ZSTR_LEN(msgid)) + msgstr = gettext(ZSTR_VAL(msgid)); RETURN_STRING(msgstr); } |
