COM Property propputref converts to PHP function and can't be accesed
| Bug #37588 | COM Property propputref converts to PHP function and can't be accesed | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2006-05-25 09:38 UTC | Modified: | 2006-12-24 10:05 UTC |
|
||||||
| From: | dtyschenko at soft-ukraine dot com | Assigned: | ||||||||
| Status: | Closed | Package: | COM related | |||||||
| PHP Version: | 5.1.4 | OS: | Windows XP SP2 | |||||||
| Private report: | No | CVE-ID: | None | |||||||
[2006-05-25 09:38 UTC] dtyschenko at soft-ukraine dot com
Description:
------------
When COM property is marked with propputref it looks like function in com_print_typeinfo and can't be accessed by:
$a->property = $b
or
$a->property($b)
I'm just get com_exception with message 'Error [0x80020003] Member not found.'
Reproduce code:
---------------
<?php
$Engine = new COM("SAPI.SpVoice");
$File = new COM("SAPI.SpFileStream");
$File->Open("C:\\1.wav", 3, false);
$Engine->AudioOutputStream = $File; // com_exception
$Engine->Speak("Hello World!", 0);
$File->Close();
unset($File);
unset($Engine);
?>
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-12-24 10:05 UTC] rrichards@php.net