mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix missing strnlen symbol on Solaris 10 (#19109)
- On Solaris, strnlen was implemented on Solaris 11. - In Autotools, strnlen can be also checked in Zend scope as HAVE_STRNLEN is used only there.
This commit is contained in:
parent
9121b015c1
commit
a4d39f9713
3 changed files with 2 additions and 2 deletions
|
@ -149,6 +149,7 @@ AC_CHECK_FUNCS(m4_normalize([
|
||||||
pthread_get_stackaddr_np
|
pthread_get_stackaddr_np
|
||||||
pthread_getattr_np
|
pthread_getattr_np
|
||||||
pthread_stackseg_np
|
pthread_stackseg_np
|
||||||
|
strnlen
|
||||||
]))
|
]))
|
||||||
|
|
||||||
AC_CHECK_DECL([clock_gettime_nsec_np],
|
AC_CHECK_DECL([clock_gettime_nsec_np],
|
||||||
|
|
|
@ -577,7 +577,6 @@ AC_CHECK_FUNCS(m4_normalize([
|
||||||
statvfs
|
statvfs
|
||||||
std_syslog
|
std_syslog
|
||||||
strcasecmp
|
strcasecmp
|
||||||
strnlen
|
|
||||||
strptime
|
strptime
|
||||||
strtok_r
|
strtok_r
|
||||||
symlink
|
symlink
|
||||||
|
|
|
@ -266,7 +266,7 @@ PHPAPI int php_glob(const char *pattern, int flags, int (*errfunc)(const char *,
|
||||||
pglob->gl_errfunc = errfunc;
|
pglob->gl_errfunc = errfunc;
|
||||||
pglob->gl_matchc = 0;
|
pglob->gl_matchc = 0;
|
||||||
|
|
||||||
if (strnlen(pattern, PATH_MAX) == PATH_MAX)
|
if (zend_strnlen(pattern, PATH_MAX) == PATH_MAX)
|
||||||
return(PHP_GLOB_NOMATCH);
|
return(PHP_GLOB_NOMATCH);
|
||||||
|
|
||||||
if (pglob->gl_offs >= SSIZE_MAX || pglob->gl_pathc >= SSIZE_MAX ||
|
if (pglob->gl_offs >= SSIZE_MAX || pglob->gl_pathc >= SSIZE_MAX ||
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue