Doc #54756 [Opn->Csd]: Missing default values in shm_attach prototype

From: Date: Tue, 17 May 2011 21:12:32 +0000
Subject: Doc #54756 [Opn->Csd]: Missing default values in shm_attach prototype
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6469@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54756&edit=1 ID: 54756 Updated by: salathe@php.net Reported by: gwarnants at gmail dot com Summary: Missing default values in shm_attach prototype -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: salathe 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. I've added the $perm default value, but not $memsize since it could be one of several values as per the description. Previous Comments: ------------------------------------------------------------------------ [2011-05-17 23:11:27] salathe@php.net Automatic comment from SVN on behalf of salathe Revision: http://svn.php.net/viewvc/?view=revision&revision=311151 Log: initializer for perm param in shm_attach() (doc #54756) ------------------------------------------------------------------------ [2011-05-16 17:56:34] gwarnants at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.shm-attach#Description --- Default values for parameter $memsize and $perm are missing in the prototype but are mentioned in the english description. $memsize=ini_get("sysvshm.init_mem") $perm=0666 So prototype should be : resource shm_attach ( int $key [, int $memsize = ini_get("sysvshm.init_mem") [, int $perm = 0666]] ) Expected result: ---------------- resource shm_attach ( int $key [, int $memsize = ini_get("sysvshm.init_mem") [, int $perm = 0666]] ) Actual result: -------------- resource shm_attach ( int $key [, int $memsize [, int $perm ]] ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54756&edit=1

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