ID: 8962
Updated by: elixer
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Program Execution
PHP Version: 4.0.4pl1
Assigned To:
Comments:
Fixed in CVS. Wait for 4.0.6.
Previous Comments:
---------------------------------------------------------------------------
[2001-02-22 05:21:11] [EMAIL PROTECTED]
reclassify
---------------------------------------------------------------------------
[2001-01-28 00:15:46] [EMAIL PROTECTED]
This is the solution to problem 8212
File: ext/standard/exec.c
Function _Exec:
Contains:
RETVAL_STRINGL(buf,l?l+1:0,1);
However, it should contain:
RETVAL_STRINGL(buf,l?l+1:((isspace((int)buf[0]) || !buf[0])?0:1),1);
The problem lies in code previous which reads:
/* strip trailing spaces */
l = strlen(buf);
t = l;
while (l && isspace((int)buf[--l]));
if (l < t) buf[l + 1] = '
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]