Edit report at https://bugs.php.net/bug.php?id=60167&edit=1
ID: 60167 Updated by: dmi...@php.net Reported by: the...@php.net Summary: Crash / memory corruption Status: Assigned Type: Bug Package: COM related Operating System: Windows PHP Version: 5.4.0 -Assigned To: dmitry +Assigned To: thekid Block user comment: N Private report: N New Comment: Thanks Timm, I've committed your patch. Previous Comments: ------------------------------------------------------------------------ [2011-11-25 11:29:15] dmi...@php.net Automatic comment from SVN on behalf of dmitry Revision: http://svn.php.net/viewvc/?view=revision&revision=319806 Log: Fixed bug #60167 (Crash / memory corruption in ext/com_dotnet) (Timm Friebe). ------------------------------------------------------------------------ [2011-11-23 15:26:37] the...@php.net Dmitry, can you review this patch? I'm not sure this is the right place to fix this issue - it's related to the literal caching in the Zend Engine's method call init opcodes (ZEND_INIT_[STATIC_]METHOD_CALL) and might need to be addressed there instead of having to change PHP extensions. Thanks! ------------------------------------------------------------------------ [2011-11-23 15:04:49] fel...@php.net Feel free to fix COM bugs. ------------------------------------------------------------------------ [2011-11-23 14:35:11] the...@php.net The following patch has been added/updated: Patch Name: bugfix-and-all-warnings-removal.diff Revision: 1322058911 URL: https://bugs.php.net/patch-display.php?bug=60167&patch=bugfix-and-all-warnings-removal.diff&revision=1322058911 ------------------------------------------------------------------------ [2011-11-23 14:25:45] the...@php.net The issue described in bug #55715 is solved by the patch, too: Timm Friebe@carla ~/devel/php/php-src-5.4 $ cat test.xls A1 B1 C1 D1 E1 (using tab-seperated values here) Timm Friebe@carla ~/devel/php/php-src-5.4 $ cat excel.php <?php $excel= new COM('Excel.Application'); $excel->Workbooks->Open(realpath('test.xls')); $worksheet= $excel->ActiveSheet; for ($j= 1; $j <= 5; $j++) { echo $worksheet->Cells(1, $j)->Value, "\n"; } $excel->Quit(); ?> Timm Friebe@carla ~/devel/php/php-src-5.4 $ ./Release_TS/php.exe excel.php A1 B1 C1 D1 E1 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=60167 -- Edit this bug report at https://bugs.php.net/bug.php?id=60167&edit=1