CVS update: php4/ext/standard

From: Date: Tue, 01 Jun 1999 16:41:56 +0000
Subject: CVS update: php4/ext/standard
Groups: php.version4 
Request: Send a blank email to php-version4+get-1231@lists.php.net to get a copy of this message
Date: Tuesday June 1, 1999 @ 12:41 Author: andi Update of /repository/php4/ext/standard In directory php:/tmp/cvs-serv4919/ext/standard Modified Files: exec.c Log Message: - Fix for exec to use API Index: php4/ext/standard/exec.c diff -u php4/ext/standard/exec.c:1.8 php4/ext/standard/exec.c:1.9 --- php4/ext/standard/exec.c:1.8 Sun May 16 07:19:25 1999 +++ php4/ext/standard/exec.c Tue Jun 1 12:41:56 1999 @@ -26,7 +26,7 @@ | Author: Rasmus Lerdorf | +----------------------------------------------------------------------+ */ -/* $Id: exec.c,v 1.8 1999/05/16 11:19:25 sas Exp $ */ +/* $Id: exec.c,v 1.9 1999/06/01 16:41:56 andi Exp $ */ #include <stdio.h> #include "php.h" @@ -140,17 +140,14 @@ #endif } else if (type == 2) { - pval tmp; - /* strip trailing whitespaces */ l = strlen(buf); t = l; while (l && isspace((int)buf[--l])); - if (l < t) buf[l + 1] = '\0'; - tmp.value.str.len = strlen(buf); - tmp.value.str.val = estrndup(buf,tmp.value.str.len); - tmp.type = IS_STRING; - _php3_hash_next_index_insert(array->value.ht,(void *) &tmp, sizeof(pval), NULL); + if (l < t) { + buf[l + 1] = '\0'; + } + add_next_index_string(array, buf, 1); } }

« previous php.version4 (#1231) next »