[TYPO3-core] RFC: fix dependency on PHP 4.3 in t3lib_db
Martin Kutschker
Martin.Kutschker at blackbox.net
Mon Jan 2 09:48:01 CET 2006
This is a CVS patch request
Branch: HEAD or TYPO3_4-0
Problem: While mysql_real_escape_string is the best way to escape DB values it's only available since PHP 4.3 and it needs a valid link identifier.
Solution: Test link and fallback to mysql_escape_string.
Note: I'm not sure if we really need the link test as none of the other functions do it. Anyway I think the initialization to FALSE doesn't hurt.
Masi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-diff
Size: 1236 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060102/1c06be72/attachment.bin
More information about the TYPO3-team-core
mailing list