ID:               25664
 Updated by:       [EMAIL PROTECTED]
 Reported By:      blomster at algonet dot se
-Status:           Wont fix
+Status:           Open
 Bug Type:         COM related
 Operating System: Win NT 4
 PHP Version:      4.3.3
 New Comment:

Its late... I missed the part where you said it applies to PHP 5.
Re-opening.


Previous Comments:
------------------------------------------------------------------------

[2003-09-25 19:15:44] [EMAIL PROTECTED]

Unless you are willing to pay $$$, any COM problems under
PHP 4.x will never be fixed, since we have moved our
development focus to PHP 5, which allows much better
support for COM in the totally rewritten COM (and .Net)
extension.

If you are curious, you can try the latest development
snapshot here:
http://snaps.php.net/win32/php5-win32-latest.zip

PHP 5 is still beta quality, so we don't recommend
deploying it in production in the real-world.

I am interested to see how well the new extension
handles your COM objects, and would be grateful if
you could add any positive comments to this bug report.

If you find bugs in the PHP 5 extension, open a new bug report.

Thanks!

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

[2003-09-25 19:07:22] blomster at algonet dot se

Description:
------------
To me it seems all COM objects written in Delphi 5 crashes PHP - fully
reproducible. I don't know about Delphi 6 or 7. These objects work in
VBScript, Javascript, Perl, Word/Excel VBA macros, and more.

Applies to PHP 4.3.3 but also to PHP 5 downloaded 24 sept 2003.

An example, which I have not written myself:
http://www.undu.com/Articles/000928g.html

I can compile that source and mail the dll to anybody willing to test.
I have more examples, including my own Delphi COM object.

I recognize the description in bug #25586 - this has also happened to
me and I believe it's related to what I describe here. That was Delphi
6.

A bizarre workaround was found for my own COM object: If I override
Delphi's own GetTypeInfo, and always return HRESULT -1, then PHP
continues by calling other methods and does not crash, but then I
instead get a memory leak. I have not understood how the crash and the
leak are related, if at all.

Thanks for any assistance & best regards
Jens Blomster
Uppsala, Sweden

Reproduce code:
---------------
>From the above-mentioned message board COM example:

$instance = new COM("msgboard.MessageBoard");
$i =  $instance->CreateMessage("hej","hopp","i baljan");


Expected result:
----------------
The message created in the COM object, just like it does in VBScript.

Actual result:
--------------
A PHP crash.


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


-- 
Edit this bug report at http://bugs.php.net/?id=25664&edit=1

Reply via email to