Edit report at https://bugs.php.net/bug.php?id=60167&edit=1

 ID:                 60167
 Patch added by:     the...@php.net
 Reported by:        the...@php.net
 Summary:            Crash / memory corruption
 Status:             Open
 Type:               Bug
 Package:            COM related
 Operating System:   Windows
 PHP Version:        5.4.0
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[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

------------------------------------------------------------------------
[2011-11-23 09:04:00] the...@php.net

Occurs in any 5.4 version until nowm on any Windows OS.

------------------------------------------------------------------------
[2011-11-12 09:39:32] bugzilla33 at gmail dot com

Expected result:
----------------
PHP 5.3.9RC1 prints: Microsoft Windows


Actual result:
--------------
PHP 5.4.0RC1 crash


<?php
 $z=50;while($z--){

  $o=new COM('WinMgmts:',null,CP_UTF8);
  foreach($o->ExecQuery('SELECT * FROM Win32_OperatingSystem') as $x){
   $s=$x->Caption;
  }

 }

 print($s);
?>

------------------------------------------------------------------------
[2011-11-11 00:05:10] lunter at interia dot pl

Confirmed on PHP 5.4.0 RC1, Apache 2.2.21 VC9
Windows 7 32bit

------------------------------------------------------------------------
[2011-10-29 12:39:25] the...@php.net

Might be related to #55715

------------------------------------------------------------------------


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

Reply via email to