Skip to content

Commit 3e00a1c

Browse files
committed
Fix constant deprecation message for JIT
1 parent 637f025 commit 3e00a1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_vm_helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ static zend_always_inline zend_constant* _zend_quick_get_constant(
323323

324324
if (!check_defined_only) {
325325
if (ZEND_CONSTANT_FLAGS(c) & CONST_DEPRECATED) {
326-
zend_error(E_DEPRECATED, "Constant %s is deprecated", ZSTR_VAL(c->name));
326+
zend_deprecated_constant(c, c->name);
327327
if (EG(exception)) {
328328
return NULL;
329329
}

0 commit comments

Comments
 (0)