could not be converted to int when comparing some builtin classes

 [2012-08-30 13:16 UTC] ladislav at marek dot su

Description:
------------
Comparing instance of some builtin class with instance of different class issues 
notice: "Object of class ArrayObject could not be converted to int".


Test script:
---------------
new stdClass == new ArrayObject;
// but "new stdClass == new Exception" works without notice


Actual result:
--------------
Notice: Object of class ArrayObject could not be converted to int in Command line 
code on line 1

Notice: Object of class stdClass could not be converted to int in Command line 
code on line 1

 [2012-08-30 16:13 UTC] laruence@php.net

Arrayobject is share the same object handlers as stdClass, but exception does.

anyway, I think there is a room to improve..

 [2012-08-31 03:23 UTC] laruence@php.net

-Status: Open +Status: Closed -Assigned To: +Assigned To: laruence