From: deadb17ch at gmail dot com Operating system: Windows XP SP3 PHP version: 5.4.4 Package: COM related Bug Type: Bug Bug description:com_event_sink crashes when closure object given as an argument
Description: ------------ com_event_sink() crashes when closure object (anonymouse function) is given as the second argument... Test script: --------------- <?php $__evil = function() { }; com_event_sink( /* variant */ new Variant(), /* object */ $__evil, // oink! /* mixed */ array() ); ?> Expected result: ---------------- nothing happends or an information about error (or maybe argument type mismatch) occurs Actual result: -------------- crash eax=00000000 ebx=010328f0 ecx=00000000 edx=00000001 esi=0121e438 edi=00000000 eip=100f33c8 esp=00c0fa50 ebp=00000000 iopl=0 nv up ei pl nz na po nc cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00200202 *** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\xampp\php\php5ts.dll - php5ts!php_com_load_typelib_via_cache+0x118: 100f33c8 8b08 mov ecx,dword ptr [eax] ds:0023:00000000=???????? -- Edit bug report at https://bugs.php.net/bug.php?id=62474&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62474&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62474&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62474&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62474&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62474&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62474&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62474&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62474&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62474&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62474&r=support Expected behavior: https://bugs.php.net/fix.php?id=62474&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62474&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62474&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62474&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62474&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62474&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62474&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62474&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62474&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62474&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62474&r=mysqlcfg