Where can I find CreateProcess error code details?

I run the following in php:

$res = proc_open($cmd, $descriptorspec, $pipes, "C:\\xampp\htdocs\\",null,array('bypass_shell'=>true));

The problem is that it gives the following error:

Warning: proc_open(): CreateProcess failed, error code - 3

Where can I find out what the error means?

PS: this is on Windows Server 2007. SP2. User admin, full access. PHP version 5.3.1

+5
source share
1 answer

Windows CreateProcess . GetLastError, , CreateProcess , FormatMessage, GetLastError . ( GetLastError )

proc_open(), PHP GetLastError() , , , - GetLastError(), CreateProcess ( BOOL, 3:))

, proc_open :

php_error_docref(NULL TSRMLS_CC, E_WARNING, "CreateProcess failed, error code - %u", dw);

... "-" , 3 - , . 3, , : " ".

+8

All Articles