cvs: php-src(PHP_5_3) /ext/standard string.c

From: Date: Tue, 24 Jun 2008 06:07:08 +0000
Subject: cvs: php-src(PHP_5_3) /ext/standard string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-50610@lists.php.net to get a copy of this message
dmitry Tue Jun 24 06:07:08 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/standard string.c Log: Fixed strtolower/strtoupper to not modify the passed argument http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.445.2.14.2.69.2.23&r2=1.445.2.14.2.69.2.24&diff_format=u Index: php-src/ext/standard/string.c diff -u php-src/ext/standard/string.c:1.445.2.14.2.69.2.23 php-src/ext/standard/string.c:1.445.2.14.2.69.2.24 --- php-src/ext/standard/string.c:1.445.2.14.2.69.2.23 Sun Jun 22 19:22:41 2008 +++ php-src/ext/standard/string.c Tue Jun 24 06:07:08 2008 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.445.2.14.2.69.2.23 2008/06/22 19:22:41 ohill Exp $ */ +/* $Id: string.c,v 1.445.2.14.2.69.2.24 2008/06/24 06:07:08 dmitry Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -1291,9 +1291,9 @@ return; } - php_strtoupper(arg, arglen); - - RETURN_STRINGL(arg, arglen, 1); + arg = estrndup(arg, arglen); + php_strtoupper(arg, arglen); + RETURN_STRINGL(arg, arglen, 0); } /* }}} */ @@ -1325,8 +1325,9 @@ return; } + str = estrndup(str, arglen); php_strtolower(str, arglen); - RETURN_STRINGL(str, arglen, 1); + RETURN_STRINGL(str, arglen, 0); } /* }}} */

« previous php.cvs (#50610) next »