php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63301 pcntl_signal example is making a parse_error
Submitted: 2012-10-18 08:47 UTC Modified: 2012-11-15 12:51 UTC
From: odoucet@php.net Assigned: krakjoe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: odoucet@php.net
New email:
PHP Version: OS:

 

 [2012-10-18 08:47 UTC] 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"));



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-31 20:19 UTC] mail+php at requinix dot net
Patch:
"pcntl_signal: typo in example code (bug #63301)"
http://edit.php.net/?patchID=757&project=PHP
 [2012-11-15 12:51 UTC] krakjoe@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.


 [2012-11-15 12:51 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 07:00:02 2026 UTC