cvs: php4 /ext/standard string.c

From: Date: Mon, 17 Jun 2002 11:37:49 +0000
Subject: cvs: php4 /ext/standard string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12385@lists.php.net to get a copy of this message
hholzgra Mon Jun 17 07:37:49 2002 EDT Modified files: /php4/ext/standard string.c Log: fixed return types for ucwords/ucfirst when passed an empty string Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.274 php4/ext/standard/string.c:1.275 --- php4/ext/standard/string.c:1.274 Thu May 16 12:04:45 2002 +++ php4/ext/standard/string.c Mon Jun 17 07:37:49 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.274 2002/05/16 16:04:45 pbannister Exp $ */ +/* $Id: string.c,v 1.275 2002/06/17 11:37:49 hholzgra Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -1826,7 +1826,7 @@ convert_to_string_ex(str); if (!Z_STRLEN_PP(str)) { - RETURN_FALSE; + RETURN_EMPTY_STRING(); } ZVAL_STRINGL(return_value, Z_STRVAL_PP(str), Z_STRLEN_PP(str), 1); @@ -1847,7 +1847,7 @@ convert_to_string_ex(str); if (!Z_STRLEN_PP(str)) { - RETURN_FALSE; + RETURN_EMPTY_STRING(); } ZVAL_STRINGL(return_value, Z_STRVAL_PP(str), Z_STRLEN_PP(str), 1);

« previous php.cvs (#12385) next »