CVS update: php3/functions

From: Date: Wed, 12 May 1999 12:37:55 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-5563@lists.php.net to get a copy of this message
Date: Wednesday May 12, 1999 @ 8:37 Author: rasmus Update of /repository/php3/functions In directory php:/tmp/cvs-serv3443/functions Modified Files: string.c Log Message: Fix for bug #1386 - substr() is now binary-safe Index: php3/functions/string.c diff -u php3/functions/string.c:1.187 php3/functions/string.c:1.188 --- php3/functions/string.c:1.187 Mon May 10 16:50:19 1999 +++ php3/functions/string.c Wed May 12 08:37:55 1999 @@ -30,7 +30,7 @@ */ -/* $Id: string.c,v 1.187 1999/05/10 20:50:19 sas Exp $ */ +/* $Id: string.c,v 1.188 1999/05/12 12:37:55 rasmus Exp $ */ #ifdef THREAD_SAFE #include "tls.h" #endif @@ -888,7 +888,7 @@ if ((f + l) < (int)string->value.str.len) { string->value.str.val[f + l] = '\0'; } - RETVAL_STRING(string->value.str.val + f,1); + RETVAL_STRINGL(string->value.str.val + f,l,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 (#5563) next »