ID:               46605
 Updated by:       [EMAIL PROTECTED]
 Reported By:      roman dot tvrdy at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         *General Issues
 Operating System: Linux - Gentoo
 PHP Version:      5.2.6
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Try isset($prm['aa'])


Previous Comments:
------------------------------------------------------------------------

[2008-11-18 22:03:30] roman dot tvrdy at gmail dot com

Description:
------------
Function isset does not work identically for object created by
ArrayObject(). For example code I have this output :


object(ArrayObject)[1]
  public 'aa' => string 'some content' (length=12)

ko : isset does not work after ArrayObject()

object(stdClass)[2]
  public 'aa' => string 'some content' (length=12)

ok : isset work after (object)

Reproduce code:
---------------
$content = array('aa' => 'some content');

// ********************************* //

$prm = new ArrayObject($content);
var_dump($prm);

if (isset($prm->aa) === true) echo 'ok : isset work after
ArrayObject()';
else echo 'ko : isset does not work after ArrayObject()';

// ********************************* //

$prm = (object) $content;
var_dump($prm);

if (isset($prm->aa) === true) echo 'ok : isset work after (object)';
else echo 'ko : isset does not work after (object)';


Expected result:
----------------
Same behavior for both use.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=46605&edit=1

Reply via email to