|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-11-30 10:54 UTC] cyrus at safe-mail dot net
Description: ------------ <path>/php-7.0.0RC8/ext/standard/random.c: In function 'php_random_bytes': <path>/php-7.0.0RC8/ext/standard/random.c:145:26: error: called object '20480' is not a function *** Error code 1 make: Fatal error: Command failed for target `ext/standard/random.lo' ---------- occurs only on Solaris (x86/sparc) works well on RHEL 6/7 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 13:00:01 2025 UTC |
I delete my wrong comments, anyway, here comes the right one , could you please try does this path works? diff --git a/ext/standard/random.c b/ext/standard/random.c index 7056879..43e2984 100644 --- a/ext/standard/random.c +++ b/ext/standard/random.c @@ -145,7 +145,7 @@ static int php_random_bytes(void *bytes, size_t size) /* Does the file exist and is it a character device? */ if (fstat(fd, &st) != 0 || # ifdef S_IFNAM - !(S_IFNAM(st.st_mode) || S_ISCHR(st.st_mode)) + !((((st.st_mode) & S_IFNAM) == S_IFNAM) || S_ISCHR(st.st_mode)) # else !S_ISCHR(st.st_mode) # endif