Doc #60479 [Opn->Csd]: Error on documentation

From: Date: Mon, 12 Dec 2011 13:05:28 +0000
Subject: Doc #60479 [Opn->Csd]: Error on documentation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7647@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60479&edit=1 ID: 60479 User updated by: wally dot nm at gmail dot com Reported by: wally dot nm at gmail dot com Summary: Error on documentation -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: Linux Ubuntu 11.10 PHP Version: 5.3.8 Block user comment: N Private report: N New Comment: Well, you're right, on the doc, has an changelog to 5.3, who don't have the 5.3 php version should use array_key_exist... Sorry about this,my fault, i will have more attention on next time! Previous Comments: ------------------------------------------------------------------------ [2011-12-12 11:08:50] jakoch at web dot de Please take a look at the "Changelog" section of http://br2.php.net/array_key_exists Since 5.3 the array_key_exist() function doesn't work with objects anymore, property_exists() should be used in this case. So i think what you are looking for is already documented, isn't it? ------------------------------------------------------------------------ [2011-12-11 21:50:02] nikic@php.net Where does it say that it can be used with objects? In the Changelog it sais "This function doesn't work with objects anymore, property_exists() should be used in this case." so I imagine you *can't* use it with objects anymore ;) ------------------------------------------------------------------------ [2011-12-09 12:35:31] wally dot nm at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.array-key-exists#refsect1- function.array-key-exists-description --- On the documentation, at this link: http://br2.php.net/array_key_exists are saying that array_key_exist could be used with objects, but on other page (i din't find it) on the PHP docs, are saying that on the 5.0 version it can't used with objects, instead you would use property_exist... It isn't a a bug on the PHP core, it's on the docs, because don't have any advice on this page, saying about PHP changes... ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60479&edit=1

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