ID: 12925
User updated by: [EMAIL PROTECTED]
Status: Open
Bug Type: COM related
Operating System: W2K pro
PHP Version: 4.0.6
New Comment:

found the problem in conversion.c

Previous Comments:

[2001-08-23 11:02:50] [EMAIL PROTECTED]

Here is the PHP code.

$bp = new COM("AG2.Beepoj") or die("Unable to instanciate");
$bp-> beeeep(101,"\x0\x0\xff");

The other end is a COM object, the beeeep method defined as

STDMETHODIMP Cbeepoj::Beeeep(int iDuration, BSTR b_str)

        // TODO: Add your implementation code here
        if(wcslen(b_str)!=0) AfxMessageBox((CString)b_str);
        else AfxMessageBox("null string.");
        return S_OK;

If I use $bp-> beeeep(101,"111111"); I will get 111111 displayed in a message box. 
However, If the input is
$bp-> beeeep(101,"\x0\x0\xff"); The COM will say it is a
null string.


Edit this bug report at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to