[TYPO3-core] RFC #14997: Performance: t3lib_db->escapeStrForLike() is using preg_replace, which is not necessary

Gosign | Caspar Stuebs caspar at gosign.de
Tue Aug 24 00:09:43 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

REMINDER #1

Am 05.07.2010 00:40, schrieb caspar at gosign.de:
> This is an SVN patch request.
> 
> Type: Performance
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=14997
> 
> Branches:
> Trunk
> 
> Problem:
> The function t3lib_db->escapeStrForLike() is using preg_replace to escape
> the values '%' and '_' with a '\' for a sql-like-statement.
> preg_replace takes a lot of recources and is not necessary for such a
> simple replacement.
> 
> Solution:
> use str_replace instead.
> 
> Caspar
> 
> 
> 
> _______________________________________________
> Before posting to this list, please have a look to the posting rules
> on the following websites:
> 
> http://typo3.org/teams/core/core-mailinglist-rules/
> http://typo3.org/development/bug-fixing/diff-and-patch/
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core


Viele Grüsse

Caspar Stuebs
Entwicklung

***Gosign im Jahrbuch der Werbung 2009***

NEW | We web pink: www.bebegeneration.de
We web green: www.greenpeace-hamburg.de
We web baguette: www.renault-safety.com

- -- 

Gosign media. GmbH | We web ideas.
Lokstedter Weg 36 | 20251 Hamburg
Tel. +49 (0) 40 / 31 70 15 00 | Fax  +49 (0) 40 / 31 70 15 02
eMail caspar at gosign.de | Internet www.Gosign.de | Skype caspar.stuebs

Amtsgericht Hamburg HRB 112197 | Ust-IdNr. DE215891388
Geschäftsführung Bert Gogolin

Greenpeace energy: Gosign läuft mit ehrlichem Strom.
Diese Mail bitte nur ausdrucken, wenn es wirklich sein muss.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxy8acACgkQBN8gVNLcSL423gCeKH4d2tMY5RnY+tT/1kvDH9cq
aGwAnRZ9cmQ08LadfzpOOTxcT+o35y5G
=6v+o
-----END PGP SIGNATURE-----


More information about the TYPO3-team-core mailing list