cvs: php4 /ext/standard string.c
| From: | Sascha Schumann | Date: | Sun, 17 Dec 2000 02:09:07 +0000 |
| Subject: | cvs: php4 /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3192@lists.php.net to get a copy of this message | ||
sas Sat Dec 16 18:09:07 2000 EDT
Modified files:
/php4/ext/standard string.c
Log:
Don't do anything, if the input string has a length of 0.
PR: #7686
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.173 php4/ext/standard/string.c:1.174
--- php4/ext/standard/string.c:1.173 Thu Dec 14 17:01:13 2000
+++ php4/ext/standard/string.c Sat Dec 16 18:09:07 2000
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.173 2000/12/15 01:01:13 ssb Exp $ */
+/* $Id: string.c,v 1.174 2000/12/17 02:09:07 sas Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -263,6 +263,10 @@
}
convert_to_string_ex(ptext);
+
+ if (Z_STRVAL_PP(ptext) == 0)
+ RETVAL_FALSE;
+
text = (*ptext)->value.str.val;
if (ZEND_NUM_ARGS() > 1) {