Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004142 [Quercus] tweak always 07-26-10 18:35 07-26-10 18:35
Reporter is View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 4.0.9
  Product Build
Summary 0004142: array_search is not work correctly when array and object element mixed in the array.
Description <?
$c = new stdClass();
$andy = array('1', '2', '3');
$andy2 = array();

$andy2[0] = $andy;

$key = array_search($andy, $andy2, false);
print("B:");
print($key);
print("\n");

$key = array_search($c, $andy2, true);
print("A:");
print($key);
print("\n");

print("C:");
print($c);
print("\n");
print($andy);
print("\n");
print($andy2);
print("\n");
?>
--
When an ObjectExtValue(stdClass) is compared with ArrayValue(Array). it will cause a error raise in array_search.

Steps To Reproduce
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
07-26-10 18:35 is New Issue
07-26-10 21:00 is Issue Monitored: is


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
27 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker