Doc #74208 [Opn->Nab]: Syntax error with the sample code provided.

From: Date: Sun, 05 Mar 2017 14:51:13 +0000
Subject: Doc #74208 [Opn->Nab]: Syntax error with the sample code provided.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14482@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74208&edit=1 ID: 74208 Updated by: requinix@php.net Reported by: primerossgh at gmail dot com Summary: Syntax error with the sample code provided. -Status: Open +Status: Not a bug Type: Documentation Problem Package: Documentation problem Operating System: irrelevant PHP Version: 5.6.30 Block user comment: N Private report: N New Comment: That's not an example. http://php.net/manual/en/about.prototypes.php http://php.net/manual/en/tutorial.php Previous Comments: ------------------------------------------------------------------------ [2017-03-05 14:47:54] primerossgh at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.msg-get-queue --- ` resource msg_get_queue ( int $key [, int $perms = 0666 ] ) ` The above example can be found in the documentation and as you may notice the comma is within the array. Also passing the second params as an array raises an error msg_get_queue() expects parameter 2 to be long, array given on line 1 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74208&edit=1

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