Bug #77503 [NEW]: COM does not work in v5.6

From: Date: Wed, 23 Jan 2019 00:53:45 +0000
Subject: Bug #77503 [NEW]: COM does not work in v5.6
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219142@lists.php.net to get a copy of this message
From: pch at astrowin dot org Operating system: Windows 8.1 PHP version: 5.6.40 Package: Unknown/Other Function Bug Type: Bug Bug description:COM does not work in v5.6 Description: ------------ Using PHP v5.4.45 the following works as expected: $obj = new COM("astro_php_h.astro_php_h_class"); but in PHP v5.6.39 or 5.6.40 and above (up to and including v7.2), it does not work, always giving me an error message that "Class not registered" or this error message using XAMPP "Fatal error: Class 'COM' not found in C:\My Documents\My Webs\connexions.com\public_html\astro5\allen\test_dll.php on line 15". I am using the same everything on my computer except for the PHP version. My phpinfo() file shows that the com_dotnet extension is enabled and active. Test script: --------------- try { $obj = new COM("astro_php_h.astro_php_h_class"); } catch (com_exception $e) { echo "<br> I cannot load the DLL."; } -- Edit bug report at https://bugs.php.net/bug.php?id=77503&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77503&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77503&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77503&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77503&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77503&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77503&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77503&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77503&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77503&r=support Expected behavior: https://bugs.php.net/fix.php?id=77503&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77503&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77503&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77503&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77503&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77503&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77503&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77503&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77503&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77503&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77503&r=mysqlcfg

« previous php.bugs (#219142) next »