Re: cvs: php4 /ext/standard var.c
| From: | Jade Nicoletti | Date: | Thu, 29 Jun 2000 16:08:18 +0000 |
| Subject: | Re: cvs: php4 /ext/standard var.c | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-22817@lists.php.net to get a copy of this message | ||
On Thu, Jun 29, 2000 at 09:54:05AM -0500, Andrei Zmievski wrote:
[snipped]
> > class_name = emalloc(i + 1);
> > - if (i > 0) {
> > - memcpy(class_name, *p, i);
> > + for(pi=0;pi<i;pi++) {
> > + class_name[pi] = tolower((*p)[pi]);
> > }
> > class_name[i] = 0;
> > (*p) += i;
>
> Why not use zend_str_tolower()?
>
> -Andrei
BTW, why not s/php_strtolower/zend_strtolower/ in ext/standard/string.c?
--
===============================================================================
Jade Nicoletti Nicoletti Net Services Tel. 01 240 4774
Geschäftsleitung Postfach 2519 Fax 01 240 4775
System-Administration 8021 Zürich
============================================[ Weitere Infos: http://nns.ch/ ]==