CVS update: php4/ext/standard

From: Date: Tue, 22 Jun 1999 13:35:29 +0000
Subject: CVS update: php4/ext/standard
Groups: php.version4 
Request: Send a blank email to php-version4+get-1648@lists.php.net to get a copy of this message
Date: Tuesday June 22, 1999 @ 9:35 Author: thies Update of /repository/php4/ext/standard In directory php:/tmp/cvs-serv13376/ext/standard Modified Files: url.c Log Message: urlencode and decode return an empty-string if the input-string is empty (matches php3 behaviour "more" closly) Please read my previous mail and comment! Index: php4/ext/standard/url.c diff -u php4/ext/standard/url.c:1.5 php4/ext/standard/url.c:1.6 --- php4/ext/standard/url.c:1.5 Sun May 16 07:19:26 1999 +++ php4/ext/standard/url.c Tue Jun 22 09:35:28 1999 @@ -26,7 +26,7 @@ | Author: Jim Winstead (jimw@php.net) | +----------------------------------------------------------------------+ */ -/* $Id: url.c,v 1.5 1999/05/16 11:19:26 sas Exp $ */ +/* $Id: url.c,v 1.6 1999/06/22 13:35:28 thies Exp $ */ #include <stdlib.h> #include <string.h> @@ -276,7 +276,8 @@ convert_to_string(arg); if (!arg->value.str.len) { - RETURN_FALSE; + var_reset(return_value); + return; } str = _php3_urlencode(arg->value.str.val, arg->value.str.len); RETVAL_STRING(str, 1); @@ -297,7 +298,8 @@ convert_to_string(arg); if (!arg->value.str.len) { - RETURN_FALSE; + var_reset(return_value); + return; } len = _php3_urldecode(arg->value.str.val, arg->value.str.len);

« previous php.version4 (#1648) next »