Skip to content

Fix missing strnlen symbol on Solaris 10 #19109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Zend/Zend.m4
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ AC_CHECK_FUNCS(m4_normalize([
pthread_get_stackaddr_np
pthread_getattr_np
pthread_stackseg_np
strnlen
]))
AC_CHECK_DECL([clock_gettime_nsec_np],
Expand Down
1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,6 @@ AC_CHECK_FUNCS(m4_normalize([
statvfs
std_syslog
strcasecmp
strnlen
strptime
strtok_r
symlink
Expand Down
2 changes: 1 addition & 1 deletion main/php_glob.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ PHPAPI int php_glob(const char *pattern, int flags, int (*errfunc)(const char *,
pglob->gl_errfunc = errfunc;
pglob->gl_matchc = 0;

if (strnlen(pattern, PATH_MAX) == PATH_MAX)
if (zend_strnlen(pattern, PATH_MAX) == PATH_MAX)
return(PHP_GLOB_NOMATCH);

if (pglob->gl_offs >= SSIZE_MAX || pglob->gl_pathc >= SSIZE_MAX ||
Expand Down