Doc #65008 [Opn->Csd]: pcntl_signal()'s wrong method signature

From: Date: Wed, 12 Jun 2013 19:30:32 +0000
Subject: Doc #65008 [Opn->Csd]: pcntl_signal()'s wrong method signature
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9922@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65008&edit=1 ID: 65008 Updated by: aharvey@php.net Reported by: benjamin dot morel at gmail dot com Summary: pcntl_signal()'s wrong method signature -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: N/A PHP Version: Irrelevant -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2013-06-12 19:30:29] aharvey@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&revision=330486 Log: Update the types pcntl_signal() can handle as the handler, and expand the documentation for what the handler callback should actually look like. Fixes doc bug #65008 (pcntl_signal()'s wrong method signature). ------------------------------------------------------------------------ [2013-06-10 17:11:02] benjamin dot morel at gmail dot com Description: ------------ The documentation page for pcntl_signal(): http://php.net/manual/en/function.pcntl-signal.php Shows the following signature: bool pcntl_signal ( int $signo , callable $handler [, bool $restart_syscalls = true ] ) But the documentation for $handler says: > The signal handler which may be the name of a user created function, > or method, or either of the two global constants SIG_IGN or SIG_DFL. So the method signature should be: bool pcntl_signal ( int $signo , int|callable $handler [, bool $restart_syscalls = true ] ) Expected result: ---------------- bool pcntl_signal ( int $signo , int|callable $handler [, bool $restart_syscalls = true ] ) Actual result: -------------- bool pcntl_signal ( int $signo , callable $handler [, bool $restart_syscalls = true ] ) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65008&edit=1

« previous php.doc.bugs (#9922) next »