From:             [EMAIL PROTECTED]
Operating system: Windows NT 4.0 Server
PHP version:      4.1.1
PHP Bug Type:     COM related
Bug description:  COM Object: Works fine with PHP 4.0.6, causes Access Violation with 
4.1.1

I wrote a very simple ActiveX Library with Delphi 5, containing an
Automation Object with just a few functions. Calling this object from
Delphi, ASP or PHP 4.0.6 worked fine, but from PHP 4.1.1 did not.

$myObj = new COM(...); or $myObj = com_load(...); worked and returned an
object (at least echo $myObj; said so) and $myObj = null destroyed it, but
whenever I called any object function (whether by $myObj->...; or
com_invoke(...) did not matter), I got an Access Violation.

I tried lots of different versions with functions actually doing nothing
at all and with different kinds of parameters or none, the result was
always the same. Also, the problem occurred on both Apache and IIS, and
with the Library written under Delphi as well as under Visual C++.

Only when replacing PHP 4.1.1 by older 4.0.6 (I did not replace php.ini),
it suddenly worked as expected.

Personally, I am satisfied now. But for others who might spend a lot of
time and nerves as I did, i thought it worth dropping this note
-- 
Edit bug report at http://bugs.php.net/?id=16038&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16038&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16038&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16038&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16038&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16038&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16038&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16038&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16038&r=submittedtwice

Reply via email to