Doc #63301 [Com]: pcntl_signal example is making a parse_error

From: Date: Wed, 31 Oct 2012 20:19:58 +0000
Subject: Doc #63301 [Com]: pcntl_signal example is making a parse_error
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9038@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63301&edit=1 ID: 63301 Comment by: mail+php at requinix dot net Reported by: odoucet@php.net Summary: pcntl_signal example is making a parse_error Status: Open Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Patch: "pcntl_signal: typo in example code (bug #63301)" http://edit.php.net/?patchID=757&project=PHP Previous Comments: ------------------------------------------------------------------------ [2012-10-18 08:47:44] odoucet@php.net Description: ------------ --- From manual page: http://www.php.net/function.pcntl-signal#refsect1- function.pcntl-signal-examples --- Example commented when you want to give an object and a method name to pcntl_signal 2nd arg is not correct, there is a parenthesis misssing. Before: pcntl_signal(SIGUSR1, array($obj, "do_something"); After: pcntl_signal(SIGUSR1, array($obj, "do_something")); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63301&edit=1

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