Bug #71567 [Opn->Csd]: php_random_bytes: called object is not a function
| From: | cmb@php.net | Date: | Wed, 31 Aug 2016 22:01:11 +0000 |
| Subject: | Bug #71567 [Opn->Csd]: php_random_bytes: called object is not a function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-203710@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71567&edit=1
ID: 71567
Updated by: cmb@php.net
Reported by: cyrus at safe-mail dot net
Summary: php_random_bytes: called object is not a function
-Status: Open
+Status: Closed
Type: Bug
Package: Compile Failure
Operating System: Solaris 11 (x86 and sparc)
PHP Version: 7.0.3
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> it's weird, the comment fix seems not right.
Note that it's S_ISNAM, and not S_IFNAM as before. :-)
Previous Comments:
------------------------------------------------------------------------
[2016-03-04 11:22:40] cyrus at safe-mail dot net
It seems PHP 7.0.4 works well on Solaris x86 (64bit).
There will be no more Solaris Sparc builds in our environment.
Thanks!
------------------------------------------------------------------------
[2016-02-15 05:37:48] laruence@php.net
it's weird, the comment fix seems not right. I can see the current codes is:
/* Does the file exist and is it a character device? */
if (fstat(fd, &st) != 0 ||
# ifdef S_ISNAM
!(S_ISNAM(st.st_mode) || S_ISCHR(st.st_mode))
# else
!S_ISCHR(st.st_mode)
# endif
it's differnet :<
------------------------------------------------------------------------
[2016-02-11 09:58:39] cyrus at safe-mail dot net
Description:
------------
Description:
------------
<path>/php-7.0.3/ext/standard/random.c: In function 'php_random_bytes':
<path>/php-7.0.3/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
Dublicates:
#70999 php_random_bytes: called object is not a function
Bug #70999 is still fixed.
Please commit...
There is no way for me to reopen the bug.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71567&edit=1