php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21480 COM crashes in PHP4.3.0
Submitted: 2003-01-07 01:34 UTC Modified: 2003-02-25 01:54 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:2 (66.7%)
From: jadair at adairservices dot net Assigned:
Status: Closed Package: COM related
PHP Version: 4.3.0 OS: Windows 2000 Pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jadair at adairservices dot net
New email:
PHP Version: OS:

 

 [2003-01-07 01:34 UTC] jadair at adairservices dot net
A working script written using COM now crashes Apache 1.3.26 after upgrading to PHP 4.3.0.

It also hangs Apache 1.3.27.

Excel zombies wander.

I was using a snap dated sometime later than 10/17/2002.  And according to CVS no changes have been made to the COM extension since then other than bumping of the copyright year.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-07 05:41 UTC] nicos@php.net
Can you include the script so we can try to reproduce the problem? If you can't include the whole script just include the part where it hangs...

(+ changing summary/category).

Thank you for your report.
 [2003-01-07 09:21 UTC] jadair at adairservices dot net
It's a simple Excel application.

Apache.exe - Application Error says, "The memory could not be 'written'."

<?
function do_Excel ($results, $UserDir)
{
	$excel = new COM("Excel.Application");
	$excel->sheetsinnewworkbook=1;
	$excel->Workbooks->Add();

	$book=$excel->Workbooks(1);
	$sheet=$book->Worksheets(1);

	$sheet->Name="Sheet1";
	$sheet->activate;
	$cell=$sheet->range("A2");
	$cell->activate;
	$cell->value="Generic";
//	putVariable($sheet, "B", "Dchains", 48);
	putVariable($sheet, "B", "Dchains", $results['partwidth']);
//	putVariable($sheet, "C", "HtSlats", 36);
	putVariable($sheet, "C", "HtSlats", $results['partheight']);
	putVariable($sheet, "D", "SlatThickness", 0.25);
	putVariable($sheet, "E", "HeadShaftCC5PD", 15.679);
	putVariable($sheet, "F", "HeadShaftDiameter", 1.9375);
	putVariable($sheet, "G", "HeadShaftLength", "DS1+DS2+Dchains+DS3+DS4+2");
	putVariable($sheet, "H", "DS1", 1.75);
	putVariable($sheet, "I", "DS2", 3.75);
	putVariable($sheet, "J", "DS3", 3.75);
	putVariable($sheet, "K", "DS4", 5.1875);
	putVariable($sheet, "L", "DS5", 3);
	putVariable($sheet, "M", "TS1", 1.75);
	putVariable($sheet, "N", "TS2", 3.75);
	putVariable($sheet, "O", "TS3", 3.75);
	putVariable($sheet, "P", "TS4", 1.75);
	putVariable($sheet, "Q", "SplitTailShaft", 0);
	putVariable($sheet, "R", "TailShaftCC5PD", 15.679);
//	putVariable($sheet, "S", "DLength", 216);
	putVariable($sheet, "S", "DLength", $results['partlength']);
	putVariable($sheet, "T", "TailShaftDiameter", 1.4375);
	putVariable($sheet, "U", "HeadShaftKey", 0.5);
	putVariable($sheet, "V", "TailShaftKey", 0.375);
	putVariable($sheet, "W", "TailShaftLength", "TS1+TS2+TS3+TS4+Dchains");
	
	$book->saveas($UserDir.'/GlobalVariables.xls');
	echo_gray ( '<br>Saved as '.$UserDir.'/GlobalVariables.xls');

	$book->Close(false);
	unset($sheet);
	unset($book);
	$excel->Workbooks->Close();
	$excel->Quit();
	unset($excel);
}
function putVariable ($sheet,$this_cell,$value,$value2)
{
	$cell=$sheet->range($this_cell.'1');
	$cell->activate;
	$cell->value=$value;
	$cell=$sheet->range($this_cell.'2');
	$cell->activate;
	$cell->value=$value2;
}
?>
 [2003-01-11 10:14 UTC] andrusso at libero dot it
Php 4.3.0 crashes also with COM.ADODB see bug #21517
 [2003-02-25 01:54 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2003-02-26 11:20 UTC] engineering at userinterfacehelp dot com
This is a Windows-specific bug that crashes Apache.

I politely suggest to please look into incorporating this fix into the Windows binary distribution in a sooner than later time frame.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 05:01:28 2024 UTC