ID: 32061 User updated by: stevedar at verizon dot net Reported By: stevedar at verizon dot net Status: Bogus Bug Type: COM related Operating System: Windows 2000 PHP Version: 4.3.10 New Comment:
I appologize. I did the search, I downloaded the CVS and was pretty sure I unzipped it over my current PHP environment, but I must not have done so or something. The latest CVS does in fact work. Previous Comments: ------------------------------------------------------------------------ [2005-02-22 08:27:38] [EMAIL PROTECTED] Search first..this has already been reported dozen times and fixed too in CVS. ------------------------------------------------------------------------ [2005-02-22 06:51:59] stevedar at verizon dot net Description: ------------ The code I want to execute is: $objCOM = new COM("PFProCOMControl.PFProCOMControl.1"); if ( !is_object ( $objCOM ) ) { echo 'objCOM is not a object'; } It always comes out saying that $objCOM is not an object & therefore I cannot work with its methods and so on. If I call them I get: objCOM is not a object Fatal error: Call to a member function on a non-object in C:\Inetpub\wwwroot\mcr\testpfp.php on line 27 If I switch to this: $objCOM = com_load("PFProCOMControl.PFProCOMControl.1"); if ( !is_object ( $objCOM ) ) { echo 'objCOM is not a object'; } It works! I have an object defined... Reproduce code: --------------- $objCOM = new COM("PFProCOMControl.PFProCOMControl.1"); if ( !is_object ( $objCOM ) ) { echo 'objCOM is not a object'; } Expected result: ---------------- I expect no output because $objCOM IS AN OBJECT! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32061&edit=1