Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php-cgi.exe and COM #14667

Open
JacekKolcon opened this issue Jun 26, 2024 · 3 comments
Open

php-cgi.exe and COM #14667

JacekKolcon opened this issue Jun 26, 2024 · 3 comments

Comments

@JacekKolcon
Copy link

Description

In my code i have lines described below:
$WShell = new COM("WScript.Shell");
$oExec = $WShell->Run($command, 0, false);

With engine 8.3.7.0 all working correctly.
With engine 8.3.8.0 i have some errors:

On my page:
HTTP Error 500.0 - Internal Server Error
C:\PHP\php-cgi.exe - Proces FastCGI przekroczył skonfigurowany limit czasu aktywności
The FastCGI process has exceeded its configured activity timeout

In event viewer:
Nazwa dziennika:System
Źródło: Microsoft-Windows-DistributedCOM
Data: 2024-06-26 08:14:25
Identyfikator zdarzenia:10016
Kategoria zadania:Brak
Poziom: Ostrzeżenia
Słowa kluczowe:Klasyczny
Użytkownik: JK72\jk72
Komputer: jk72
Opis:
Zgodnie z ustawieniami uprawnienia właściwe dla aplikacji nie jest udzielane uprawnienie Lokalny Aktywacja do aplikacji serwera COM z identyfikatorem klasy CLSID
{2593F8B9-4EAF-457C-B68A-50F6B8EA6B54}
i identyfikatorem aplikacji APPID
{15C20B67-12E7-4BB6-92BB-7AFF07997402}
użytkownikowi jk72\jk72 o identyfikatorze zabezpieczeń SID (S-1-5-21-995986174-1612659924-852978985-1001) z adresu LocalHost (użycie LRPC) działającemu w kontenerze aplikacji o identyfikatorze SID Niedostępny (Niedostępny). To uprawnienie zabezpieczeń można modyfikować przy użyciu narzędzia administracyjnego Usługi składowe.
Kod XML zdarzenia:



10016
0
3
0
0
0x8080000000000000

274873


System
jk72



właściwe dla aplikacji
Lokalny
Aktywacja
{2593F8B9-4EAF-457C-B68A-50F6B8EA6B54}
{15C20B67-12E7-4BB6-92BB-7AFF07997402}
jk72
jk72
S-1-5-21-995986174-1612659924-852978985-1001
LocalHost (użycie LRPC)
Niedostępny
Niedostępny

PHP Version

PHP 8.3.8

Operating System

Windows 11 Home 23H2

@nielsdos
Copy link
Member

There were no changes to the COM extension between PHP 8.3.7 and PHP 8.3.8.
The error message mentions something about permissions. Was something in the configuration changed? Can you recheck whether 8.3.7 actually works? I suspect that the PHP version upgrade just coincides with whatever actually causes the issue.

@JacekKolcon
Copy link
Author

I only changed the PHP engine files. The INI file and IIS server configuration remained unchanged.

@nielsdos
Copy link
Member

nielsdos commented Jul 2, 2024

The code for the extension didn't change, so I don't understand how it's possible. Can you retest PHP 8.3.7?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants