|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-22 08:27 UTC] sniper@php.net
[2005-02-22 13:43 UTC] stevedar at verizon dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 15:00:01 2025 UTC |
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!