correcting "make test" errors in session and uodbc

reformated weird spacing in uodbc


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@50534 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Beckham 2001-07-03 15:36:35 +00:00
parent 9f5266b8a8
commit 978dc41f4f
2 changed files with 52 additions and 47 deletions

View file

@ -564,9 +564,9 @@ echo "The previous session name was $previous_name<p>";
expect the connection to still be valid the next time the
session is restored. PHP functions that return a resource are
identified by having a return type of
<literal>resource</literal> in their function definitions.
You may also find a list of resource-creating fonctions in
the <link linkend="resources">appendices</link>.
<literal>resource</literal> in their function definitions. A
list of functions that return resources are available in the
<link linkend="resource">resource types</link> appendix.
</para>
</note>
<note>

View file

@ -506,56 +506,61 @@
array. The array will contain the column values starting at array
index 0.
</para>
<para>
<example>
<title><function>odbc_fetch_into</function> pre 4.0.6 example </title>
<programlisting role="php">
<para>
<example>
<title><function>odbc_fetch_into</function> pre 4.0.6 example </title>
<programlisting role="php">
$rc = odbc_fetch_into($res_id, $my_array);
</programlisting>
or
<programlisting role="php">
</programlisting>
<para>
or
</para>
<programlisting role="php">
$rc = odbc_fetch_into($res_id, $row, $my_array);
$rc = odbc_fetch_into($res_id, 1, $my_array);
</programlisting>
</example>
</para>
<para>
As of PHP 4.0.5 the <parameter>result_array</parameter> does not need
to be passed by reference any longer.
</para>
<para>
As of PHP 4.0.6 the <parameter>rownumber</parameter> cannot be passed
as a constant, but rather as a variable.
</para>
<para>
<example>
<title><function>odbc_fetch_into</function> 4.0.6 example</title>
<programlisting role="php">
</programlisting>
</example>
</para>
<para>
As of PHP 4.0.5 the <parameter>result_array</parameter> does not
need to be passed by reference any longer.
</para>
<para>
As of PHP 4.0.6 the <parameter>rownumber</parameter> cannot be
passed as a constant, but rather as a variable.
</para>
<para>
<example>
<title><function>odbc_fetch_into</function> 4.0.6 example</title>
<programlisting role="php">
$rc = odbc_fetch_into($res_id, $my_array);
</programlisting>
or
<programlisting role="php">
</programlisting>
<para>
or
</para>
<programlisting role="php">
$row = 1;
$rc = odbc_fetch_into($res_id, $row, $my_array);
</programlisting>
</example>
</para>
<para>
Future: In PHP 4.1, this function will be moved to the following format:
<funcsynopsis>
<funcprototype>
<funcdef>int <function>odbc_fetch_into</function></funcdef>
<paramdef>int <parameter>result_id</parameter></paramdef>
<paramdef>array <parameter>result_array</parameter></paramdef>
<paramdef>int <parameter><optional>rownumber</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
Please note, that <parameter>rownumber</parameter> will be optional,
while <parameter>result_array</parameter> is not.
</para>
</refsect1>
</refentry>
</programlisting>
</example>
</para>
<para>
Future: In PHP 4.1, this function will be moved to the following
format:
<funcsynopsis>
<funcprototype>
<funcdef>int <function>odbc_fetch_into</function></funcdef>
<paramdef>int <parameter>result_id</parameter></paramdef>
<paramdef>array <parameter>result_array</parameter></paramdef>
<paramdef>int <parameter><optional>rownumber</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
Please note, that <parameter>rownumber</parameter> will be optional,
while <parameter>result_array</parameter> is not.
</para>
</refsect1>
</refentry>
<refentry id="function.odbc-fetch-row">
<refnamediv>