Bug #60167 [Opn]: Crash / memory corruption
| From: | thekid@php.net | Date: | Wed, 23 Nov 2011 15:26:38 +0000 |
| Subject: | Bug #60167 [Opn]: Crash / memory corruption | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165458@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60167&edit=1
ID: 60167
Updated by: thekid@php.net
Reported by: thekid@php.net
Summary: Crash / memory corruption
Status: Open
Type: Bug
Package: COM related
Operating System: Windows
PHP Version: 5.4.0
-Assigned To:
+Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
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!
Previous Comments:
------------------------------------------------------------------------
[2011-11-23 15:04:49] felipe@php.net
Feel free to fix COM bugs.
------------------------------------------------------------------------
[2011-11-23 14:35:11] thekid@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] thekid@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] thekid@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);
?>
------------------------------------------------------------------------
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