Ask a Question related to PHP Bugs, Design and Development.
-
nlopess@php.net #1
#38542 [Opn->Asn]: proc_get_status : wrong PID
ID: 38542
Updated by: [email]nlopess@php.net[/email]
Reported By: php at bouchery dot com
-Status: Open
+Status: Assigned
Bug Type: Program Execution
-Operating System: Windows XP
+Operating System: Windows
PHP Version: 5.1.5
-Assigned To:
+Assigned To: nlopess
New Comment:
problem verified. it is returning hProcess instead of dwProcessId of
the PROCESS_INFORMATION structure. I'll patch it.
Previous Comments:
------------------------------------------------------------------------
[2006-08-22 13:10:27] php at bouchery dot com
Same problem :
PID = 1844
Image Name PID Session Name Session# Mem
Usage
========================= ====== ================ ========
============
notepad.exe 4432 Console 0 3 220
K
INFO: No tasks running with the specified criteria.
------------------------------------------------------------------------
[2006-08-22 13:05:33] [email]tony2001@php.net[/email]
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
------------------------------------------------------------------------
[2006-08-22 09:25:52] php at bouchery dot com
Description:
------------
proc_get_status return the wrong PID
Reproduce code:
---------------
<?php
$cmd = 'notepad';
$descriptorspec = array( 0 => array('pipe', 'r' ), 1 => array('pipe',
'w' ), 2 => array('pipe', 'w' ) );
$process = proc_open($cmd, $descriptorspec, $pipes);
$status = proc_get_status( $process );
echo 'PID = ', $status['pid'], "\n";
passthru( 'tasklist /fi "imagename eq notepad.exe"');
echo "\n\n";
passthru( 'tasklist /fi "pid eq ' . $status['pid'] . '"' );
echo "\n\n";
?>
Expected result:
----------------
proc_get_status should return the notepad's PID
Actual result:
--------------
It returns a PID which doesn't exist or associate to a process which is
not related to the script context.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=38542&edit=1[/url]
nlopess@php.net Guest
-
something wrong..
I want to integrate following php-file into my Flash-movie, but something still does not work. The Php-file is like that: Online it looks like... -
#40070 [NEW]: proc_get_status - wrong PID
From: kyle at videoegg dot com Operating system: Windows XP SP2 PHP version: 5.2.1RC2 PHP Bug Type: Program Execution Bug... -
#38542 [Asn->Csd]: proc_get_status : wrong PID
ID: 38542 Updated by: nlopess@php.net Reported By: php at bouchery dot com -Status: Assigned +Status: ... -
What am I doing wrong?
> rs.Source="SELECT id From User Where upper I asked this before... Try sql = "SELECT id FROM user WHERE UPPER(cLoginID) = '" & vUserID &... -
can anyone tell me what's wrong with me?
my SQL statement as follow, but it show an error The error occurred in D:\Inetpub\wwwroot\property\admin\addtransaction2.cfm: line 4 2 :...



Reply With Quote

