Commit 82866cc11b1 for php.net
commit 82866cc11b12fe90fb09af32d3bf411ad4bb61e5
Author: Gina Peter Banyard <girgias@php.net>
Date: Fri Nov 7 02:02:50 2025 +0000
zend_builtin_functions.c: use known string when possible
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index d522d3d8107..b8c9f7612c4 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -1547,7 +1547,7 @@ ZEND_FUNCTION(get_resource_type)
if (resource_type) {
RETURN_STRING(resource_type);
} else {
- RETURN_STRING("Unknown");
+ RETURN_INTERNED_STR(ZSTR_KNOWN(ZEND_STR_UNKNOWN_CAPITALIZED));
}
}
/* }}} */