cvs: phpdoc /en/reference/mysql/functions mysql-real-escape-string.xml
| From: | Nuno Lopes | Date: | Wed, 29 Sep 2004 16:24:43 +0000 |
| Subject: | cvs: phpdoc /en/reference/mysql/functions mysql-real-escape-string.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969364343@lists.php.net to get a copy of this message | ||
nlopess Wed Sep 29 12:24:43 2004 EDT
Modified files:
/phpdoc/en/reference/mysql/functions mysql-real-escape-string.xml
Log:
use is_numeric() instead of is_int()
http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-real-escape-string.xml?r1=1.18&r2=1.19&ty=u
Index: phpdoc/en/reference/mysql/functions/mysql-real-escape-string.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-real-escape-string.xml:1.18
phpdoc/en/reference/mysql/functions/mysql-real-escape-string.xml:1.19
--- phpdoc/en/reference/mysql/functions/mysql-real-escape-string.xml:1.18 Wed Sep 29 11:12:42 2004
+++ phpdoc/en/reference/mysql/functions/mysql-real-escape-string.xml Wed Sep 29 12:24:43 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.18 $ -->
+<!-- $Revision: 1.19 $ -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 -->
<refentry id="function.mysql-real-escape-string">
<refnamediv>
@@ -128,7 +128,7 @@
$value = stripslashes($value);
}
// Quote if not integer
- if (!is_int($value)) {
+ if (!is_numeric($value)) {
$value = "'" . mysql_real_escape_string($value) . "'";
}
return $value;