Doc #51923 [Opn->Csd]: Documentation does not mention changes to return type of shm_attach

From: Date: Sat, 23 Oct 2010 06:30:36 +0000
Subject: Doc #51923 [Opn->Csd]: Documentation does not mention changes to return type of shm_attach
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5344@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51923&edit=1 ID: 51923 Updated by: kalle@php.net Reported by: maciej at wiercinski dot net Summary: Documentation does not mention changes to return type of shm_attach -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: Linux PHP Version: Irrelevant -Assigned To: +Assigned To: kalle Block user comment: 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: ------------------------------------------------------------------------ [2010-10-23 08:30:26] kalle@php.net Automatic comment from SVN on behalf of kalle Revision: http://svn.php.net/viewvc/?view=revision&revision=304639 Log: Fixed bug #51923 (Documentation does not mention changes to return type of shm_attach) ------------------------------------------------------------------------ [2010-05-26 16:47:50] maciej at wiercinski dot net Description: ------------ The documentation says: resource shm_attach ( int $key [, int $memsize [, int $perm ]] ) , what's valid on 5.3, however versions prior to it used to return integer. ------- $f=trim(mktemp); $key=ftok($f,'a'); $shm = shm_attach($key, 100000); var_dump($shm); unlink($f); ----------- PHP 5.3.1-5 with Suhosin-Patch (cli) (built: Feb 22 2010 17:37:40) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH returns: resource(5) of type (sysvshm) ------------ PHP 5.2.6-1+lenny8 with Suhosin-Patch 0.9.6.2 (cli) (built: Mar 14 2010 08:14:04) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Xdebug v2.0.4, Copyright (c) 2002-2008, by Derick Rethans returns: int(5) Test script: --------------- $f=trim(mktemp); $key=ftok($f,'a'); $shm = shm_attach($key, 100000); var_dump($shm); unlink($f); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51923&edit=1

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