COM related Bug #31636https://bugs.php.net/bug.php?id=31636
[Closed] Type cast is uncheckedFri, 21 Jan 2005 15:25:09 +0000Mon, 18 Apr 2005 18:26:39 +0000wez@... [2005-01-21 15:25:09]COM related Bug
Reported by ivar@...
Fri, 21 Jan 2005 15:25:09 +0000
PHP: 5.0.3, OS: Windows XP
Description:
------------
com_object_cast is at least called by zend_make_printable_zval. In this context, it appears that the contract of the handler is to return a zval with the the specified type. If not able to return the value, it should return FAILURE.
The handler will return a valid zval with wrong type if VariantChangeType fails, or if the requested cast type is not supported.
]]>Fri, 21 Jan 2005 15:25:09 +0000https://bugs.php.net/bug.php?id=31636