Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2404 | major | always | 02-06-08 06:13 | 02-06-08 22:20 | |
|
|||||
Reporter: | lee_saferite | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.5 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.5 | ||
|
|||||
Summary: | 0002404: array_key_exists does not work with ArrayObject | ||||
Description: | array_key_exists does not work correctly with ArrayObject variables but does work with normal array variables. | ||||
Steps To Reproduce: | |||||
Additional Information: |
Code: $one = new ArrayObject(); $one['one'] = "one here"; $two = array(); $two['two'] = 2; var_dump($one->offsetExists('one')); var_dump(isset($one['one'])); var_dump(array_key_exists('one', $one)); var_dump($one->offsetExists('not_here')); var_dump(isset($one['not_here'])); var_dump(array_key_exists('not_here', $one)); var_dump(isset($two['two'])); var_dump(array_key_exists('two', $two)); var_dump(isset($two['not_here'])); var_dump(array_key_exists('not_here', $two)); Expected Result: bool(true) bool(true) bool(true) bool(false) bool(false) bool(false) bool(true) bool(true) bool(false) bool(false) Actual Result: bool(true) bool(true) bool(false) bool(false) bool(false) bool(false) bool(true) bool(true) bool(false) bool(false) |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|