php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #41938 posix_getpgid() have broken example
Submitted: 2007-07-09 13:37 UTC Modified: 2007-07-10 09:42 UTC
From: magnus@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2007-07-09 13:37 UTC] magnus@php.net
Description:
------------
The function posix_getpgid() have broken example code.
It's missing $pid param.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-10 08:27 UTC] rquadling@php.net
Can you confirm that the following code is accurate (I'm on windows and don't have posix functions)...

<?php
$pid = posix_getppid();
echo posix_getpgid($pid);
?>


 [2007-07-10 08:38 UTC] derick@php.net
That seems to work for me Richard
 [2007-07-10 09:42 UTC] rquadling@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Example updated.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Nov 23 09:00:01 2025 UTC