php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23599 Crash when using COM object property/method
Submitted: 2003-05-12 15:21 UTC Modified: 2003-08-17 15:23 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: zstomp at yandex dot ru Assigned:
Status: Wont fix Package: COM related
PHP Version: 4.3.2RC3-dev OS: Win2k, Win98
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: zstomp at yandex dot ru
New email:
PHP Version: OS:

 

 [2003-05-12 15:21 UTC] zstomp at yandex dot ru
$ean = new COM("AsBarcode.Barcode");
echo($ean->LineWidth);
$ean->Release();
$ean = NULL;

If I comment out line 2, it works fine. If I uncomment line 2, I get a crash (null pointer in php4ts.dll) under Win98/PHP 4.3.1 and nothing (no crash, but php stops and gets terminated in 30 secs timeout) under win2k/PHP 4.2.

It doesn't happen with Word.Application that has only difference from AsBarcode.Barcode: it's not a control.

The code above works under PHP 4.0

Please email me if you have anything on this including my possible faults.

Thanks,
Eugene

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-16 08:13 UTC] zstomp at yandex dot ru
I tested it with latest CVS version and got other error. Exception now happens, as Windows reports, in "unknown module". I started PHP from debugger and it seems like DllGetClassObject is not called.
 [2003-05-16 08:18 UTC] zstomp at yandex dot ru
Just tested with other object that had same problem before and it works ok. Will try to investigate further.
 [2003-05-16 09:22 UTC] zstomp at yandex dot ru
Here's the test results: DllGetClassObject is called ok, that was my fault. Object initialization is passed ok too. But, when execution comes to reading from property, PHP crashes before property is read.
I can supply you with the ActiveX I have, if you wish.
 [2003-05-17 10:32 UTC] phanto@php.net
please mail it directly to me together with a short script that demonstrates that misbehaviour.
 [2003-05-20 15:54 UTC] zstomp at yandex dot ru
I emailed it a couple of days ago. Did you receive it?
 [2003-06-14 00:03 UTC] zstomp at yandex dot ru
Anybody working on it?
 [2003-07-22 12:52 UTC] zstomp at yandex dot ru
Hello?
 [2003-08-17 15:23 UTC] iliaa@php.net
The com extension has been completely rewritten in PHP5 and the PHP4 com extension is no longer being maintained. If you find bugs with the com extension in PHP5 please report them.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC