php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60479 Error on documentation
Submitted: 2011-12-09 12:35 UTC Modified: 2011-12-12 13:05 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: wally dot nm at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.3.8 OS: Linux Ubuntu 11.10
Private report: No CVE-ID: None
 [2011-12-09 12:35 UTC] 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...


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-11 21:50 UTC] 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-12 11:08 UTC] 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-12 13:05 UTC] wally dot nm at gmail dot com
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!
 [2011-12-12 13:05 UTC] wally dot nm at gmail dot com
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 09:00:02 2026 UTC