CVS update: php3/functions

From: Date: Mon, 17 May 1999 20:08:17 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-5747@lists.php.net to get a copy of this message
Date: Monday May 17, 1999 @ 16:08 Author: rasmus Update of /repository/php3/functions In directory php:/tmp/cvs-serv32603/functions Modified Files: string.c Log Message: Make it explicitly return an empty string instead of false Index: php3/functions/string.c diff -u php3/functions/string.c:1.190 php3/functions/string.c:1.191 --- php3/functions/string.c:1.190 Mon May 17 15:47:57 1999 +++ php3/functions/string.c Mon May 17 16:08:17 1999 @@ -30,7 +30,7 @@ */ -/* $Id: string.c,v 1.190 1999/05/17 19:47:57 rasmus Exp $ */ +/* $Id: string.c,v 1.191 1999/05/17 20:08:17 rasmus Exp $ */ #ifdef THREAD_SAFE #include "tls.h" #endif @@ -1493,7 +1493,7 @@ convert_to_string(str); if(haystack->value.str.len == 0) { - RETURN_FALSE; + RETURN_STRING(empty_string,1); } if(needle->value.str.len == 1) { -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5747) next »