Doc #80616 [Com]: posix_initgroups() is conditionally defined

[email protected] ("hfdifguojoefrdui322 at gmail dot com") Fri, 09 Jun 2023 09:04:47 +0000
Newsgroups php.doc.bugs
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=80616&edit=1

 ID:                 80616
 Comment by:         hfdifguojoefrdui322 at gmail dot com
 Reported by:        kucherdominikus at yahoo dot de
 Summary:            posix_initgroups() is conditionally defined
 Status:             Re-Opened
 Type:               Documentation Problem
 Package:            POSIX related
 Operating System:   Fedora release 33 (Thirty Three)
 PHP Version:        7.4.14
 Block user comment: N
 Private report:     N

 New Comment:

That was so amazing article I loved that...


More info : - (https://www.ballsportsgear.com/pickleball-court-lighting/)github.com


Previous Comments:
------------------------------------------------------------------------
[2021-01-11 18:42:34] rtrtrtrtrt at dfdfdfdf dot dfd

seriously - why should it be unavailable suddenly on Fedora 33 after 15 years?

[root@rawhide ~]# php -r "echo (int)function_exists('posix_initgroups');"
1

[root@rawhide ~]# php -v
PHP 7.4.14 (cli) (built: Jan  5 2021 10:45:06) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

[root@rawhide ~]# rpm -q php-process
php-process-7.4.14-1.fc33.x86_64

------------------------------------------------------------------------
[2021-01-11 18:35:28] [email protected]

btw In case you're interested in investigating why that is unavailable on your system, that define is setup from here I believe: https://github.com/php/php-src/blob/65c789148b72e62d22fb23abaa1e0c97ba74c6da/ext/posix/config.m4#L13

------------------------------------------------------------------------
[2021-01-11 18:28:29] [email protected]

Hi, 

The availability of that function depends on the detection of whether 'INITGROUPS' (whatever that is) is available for that system:

https://github.com/php/php-src/blob/65c789148b72e62d22fb23abaa1e0c97ba74c6da/ext/posix/posix.c#L1176

So this is probably a doc bug.

Also, please take the effort to make your reproduce cases be short http://sscce.org/

If you paste walls of text, it reduces the chances of people being able to see what the problem is.

------------------------------------------------------------------------
[2021-01-11 18:04:58] [email protected]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

------------------------------------------------------------------------
[2021-01-11 18:04:16] rtrtrtrtrt at dfdfdfdf dot dfd

what about simply load the posix extension in your config?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=80616


--
Edit this bug report at https://bugs.php.net/bug.php?id=80616&edit=1