From: stevedar at verizon dot net
Operating system: Windows 2000
PHP version: 4.3.10
PHP Bug Type: COM related
Bug description: Call to new COM() doesn't work
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 bug report at http://bugs.php.net/?id=32061&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32061&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32061&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32061&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32061&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32061&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32061&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32061&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32061&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32061&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32061&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32061&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32061&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32061&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32061&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32061&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32061&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32061&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32061&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32061&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32061&r=mysqlcfg