From: tomas_matousek at hotmail dot com Operating system: WinXP PHP version: 5.0.0RC3 PHP Bug Type: Zend Engine 2 problem Bug description: Object to integer typecast is incorrect
Description:
------------
No description needed.
Reproduce code:
---------------
var_dump((int) new stdClass());
Expected result:
----------------
0
Actual result:
--------------
object(stdClass)#2 (0) {
}
--
Edit bug report at http://bugs.php.net/?id=29029&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29029&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29029&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29029&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29029&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29029&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29029&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29029&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29029&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29029&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29029&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29029&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29029&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29029&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29029&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29029&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29029&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29029&r=float
