Doc #63301 [Opn->Csd]: pcntl_signal example is making a parse_error

From: Date: Thu, 15 Nov 2012 12:51:58 +0000
Subject: Doc #63301 [Opn->Csd]: pcntl_signal example is making a parse_error
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9154@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
 Updated by:         krakjoe@php.net
 Reported by:        odoucet@php.net
 Summary:            pcntl_signal example is making a parse_error
-Status:             Open
+Status:             Closed
 Type:               Documentation Problem
 Package:            Documentation problem
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        krakjoe
 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:
------------------------------------------------------------------------
[2012-10-31 20:19:58] mail+php at requinix dot net

Patch:
"pcntl_signal: typo in example code (bug #63301)"
http://edit.php.net/?patchID=757&project=PHP

------------------------------------------------------------------------
[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


Thread (3 messages)

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