#37588 [Opn->Csd]: COM Property propputref converts to PHP function and can't be accesed

From: Date: Sun, 24 Dec 2006 10:05:26 +0000
Subject: #37588 [Opn->Csd]: COM Property propputref converts to PHP function and can't be accesed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-106832@lists.php.net to get a copy of this message
ID: 37588 Updated by: rrichards@php.net Reported By: dtyschenko at soft-ukraine dot com -Status: Open +Status: Closed Bug Type: COM related Operating System: Windows XP SP2 PHP Version: 5.1.4 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2006-05-25 09:38:58] 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); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37588&edit=1

« previous php.bugs (#106832) next »