vrana Wed Oct 11 10:04:41 2006 UTC
Modified files:
/phpdoc/en/reference/mysql/functions mysql-connect.xml
Log:
SQL safe mode
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/functions/mysql-connect.xml?r1=1.19&r2=1.20&diff_format=u
Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.19
phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.20
--- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.19 Thu Dec 1
10:05:52 2005
+++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Wed Oct 11
10:04:41 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.19 $ -->
+<!-- $Revision: 1.20 $ -->
<refentry id="function.mysql-connect">
<refnamediv>
<refname>mysql_connect</refname>
@@ -36,7 +36,8 @@
<para>
If the PHP directive <link linkend="ini.mysql.default-host">
mysql.default_host</link> is undefined (default), then the default
- value is 'localhost:3306'
+ value is 'localhost:3306'. In &sqlsafemode;, this parameter is ignored
+ and value 'localhost:3306' is always used.
</para>
</listitem>
</varlistentry>
@@ -44,8 +45,10 @@
<term><parameter>username</parameter></term>
<listitem>
<para>
- The username. Default value is the name of the user that owns the
- server process.
+ The username. Default value is defined by <link
+ linkend="ini.mysql.default-user">mysql.default_user</link>. In
+ &sqlsafemode;, this parameter is ignored and the name of the user that
+ owns the server process is used.
</para>
</listitem>
</varlistentry>
@@ -53,7 +56,9 @@
<term><parameter>password</parameter></term>
<listitem>
<para>
- The password. Default value is an empty password.
+ The password. Default value is defined by <link
+ linkend="ini.mysql.default-password">mysql.default_password</link>. In
+ &sqlsafemode;, this parameter is ignored and empty password is used.
</para>
</listitem>
</varlistentry>
@@ -68,6 +73,7 @@
behavior and makes <function>mysql_connect</function> always open
a new link, even if <function>mysql_connect</function> was called
before with the same parameters.
+ In &sqlsafemode;, this parameter is ignored.
</para>
</listitem>
</varlistentry>
@@ -82,6 +88,7 @@
<constant>MYSQL_CLIENT_IGNORE_SPACE</constant> or
<constant>MYSQL_CLIENT_INTERACTIVE</constant>.
Read the section about <xref linkend="mysql.client-flags" /> for
further information.
+ In &sqlsafemode;, this parameter is ignored.
</para>
</listitem>
</varlistentry>