php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71567 php_random_bytes: called object is not a function
Submitted: 2016-02-11 09:58 UTC Modified: 2016-08-31 22:01 UTC
From: cyrus at safe-mail dot net Assigned: cmb (profile)
Status: Closed Package: Compile Failure
PHP Version: 7.0.3 OS: Solaris 11 (x86 and sparc)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cyrus at safe-mail dot net
New email:
PHP Version: OS:

 

 [2016-02-11 09:58 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-02-15 05:37 UTC] 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-03-04 11:22 UTC] 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-08-31 22:01 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2016-08-31 22:01 UTC] cmb@php.net
> it's weird, the comment fix seems not right.

Note that it's S_ISNAM, and not S_IFNAM as before. :-)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 14:01:33 2025 UTC