note 84797 added to function.mysql-escape-string
| From: | Terri at osu1 dot php dot net | Date: | Wed, 30 Jul 2008 15:37:28 +0000 |
| Subject: | note 84797 added to function.mysql-escape-string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-142931@lists.php.net to get a copy of this message | ||
@boris
Wouldn't it be just as reliable and possibly faster to use:
<?php
if(function_exists('mysql_real_escape_string')) {
[...]
?>
in place of:
<?php
if(version_compare(phpversion(),"4.3.0")=="-1") {
[...]
?>
Especially since version_compare() is only in versions (PHP => 4.0.7). both phpversion() and
function_exists() have existed since 4.
----
Server IP: 64.71.164.2
Probable Submitter: 76.19.174.145
----
Manual Page -- http://www.php.net/manual/en/function.mysql-escape-string.php
Edit -- https://master.php.net/note/edit/84797
Del: integrated -- https://master.php.net/note/delete/84797/integrated
Del: useless -- https://master.php.net/note/delete/84797/useless
Del: bad code -- https://master.php.net/note/delete/84797/bad+code
Del: spam -- https://master.php.net/note/delete/84797/spam
Del: non-english -- https://master.php.net/note/delete/84797/non-english
Del: in docs -- https://master.php.net/note/delete/84797/in+docs
Del: other reasons-- https://master.php.net/note/delete/84797
Reject -- https://master.php.net/note/reject/84797
Search -- https://master.php.net/manage/user-notes.php