Skip to content

Commit d705f16

Browse files
ODBC: PHP 8.4 resource to Object conversions (#5573)
* Add Odbc\Connection and Odbc\Result classes Co-authored-by: Louis-Arnaud <la.catoire@gmail.com>
1 parent 89205c8 commit d705f16

4 files changed

Lines changed: 126 additions & 7 deletions

File tree

reference/uodbc/book.xml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@
99
<!-- {{{ preface -->
1010
<preface xml:id="intro.uodbc">
1111
&reftitle.intro;
12-
<para>
12+
<simpara>
1313
In addition to normal ODBC support, the Unified ODBC functions in
1414
PHP allow you to access several databases that have borrowed the
1515
semantics of the ODBC API to implement their own API. Instead of
1616
maintaining multiple database drivers that were all nearly
1717
identical, these drivers have been unified into a single set of
1818
ODBC functions.
19-
</para>
20-
<para>
19+
</simpara>
20+
<simpara>
2121
The following databases are supported by the Unified ODBC
2222
functions: <link xlink:href="&url.adabas;">Adabas D</link>,
2323
<link xlink:href="&url.ibmdb2;">IBM DB2</link>,
2424
<link xlink:href="&url.iodbc;">iODBC</link>,
2525
<link xlink:href="&url.solid;">Solid</link>, and
2626
<link xlink:href="&url.sybase;">Sybase SQL Anywhere</link>.
27-
</para>
27+
</simpara>
2828
<note>
29-
<para>
29+
<simpara>
3030
With the exception of iODBC, there is no ODBC involved when
3131
connecting to the above databases. The functions that you
3232
use to speak natively to them just happen to share the same
@@ -36,15 +36,17 @@
3636
is available at <link xlink:href="&url.iodbc;">www.iodbc.org</link>
3737
with the alternative unixODBC available at
3838
<link xlink:href="&url.unixodbc;">www.unixodbc.org</link>.
39-
</para>
39+
</simpara>
4040
</note>
4141
</preface>
4242
<!-- }}} -->
43-
43+
4444
&reference.uodbc.setup;
4545
&reference.uodbc.constants;
4646
&reference.uodbc.reference;
4747

48+
&reference.uodbc.odbc.connection;
49+
&reference.uodbc.odbc.result;
4850
</book>
4951

5052
<!-- Keep this comment at the end of the file
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<reference xmlns="http://docbook.org/ns/docbook" xml:id="class.odbc-connection" role="class">
3+
<title>The Odbc\Connection class</title>
4+
<titleabbrev>Odbc\Connection</titleabbrev>
5+
6+
<partintro>
7+
8+
<!-- {{{ Odbc\Connection intro -->
9+
<section xml:id="odbc-connection.intro">
10+
&reftitle.intro;
11+
<simpara>
12+
A fully opaque class which replaces an <literal>odbc_connection</literal> &resource; as of PHP 8.4.0.
13+
</simpara>
14+
</section>
15+
<!-- }}} -->
16+
17+
<section xml:id="odbc-connection.synopsis">
18+
&reftitle.classsynopsis;
19+
20+
<!-- {{{ Synopsis -->
21+
<packagesynopsis>
22+
<package>Odbc</package>
23+
24+
<classsynopsis class="class">
25+
<ooclass>
26+
<classname>Connection</classname>
27+
</ooclass>
28+
</classsynopsis>
29+
</packagesynopsis>
30+
<!-- }}} -->
31+
32+
</section>
33+
34+
</partintro>
35+
36+
</reference>
37+
<!-- Keep this comment at the end of the file
38+
Local variables:
39+
mode: sgml
40+
sgml-omittag:t
41+
sgml-shorttag:t
42+
sgml-minimize-attributes:nil
43+
sgml-always-quote-attributes:t
44+
sgml-indent-step:1
45+
sgml-indent-data:t
46+
indent-tabs-mode:nil
47+
sgml-parent-document:nil
48+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
49+
sgml-exposed-tags:nil
50+
sgml-local-catalogs:nil
51+
sgml-local-ecat-files:nil
52+
End:
53+
vim600: syn=xml fen fdm=syntax fdl=2 si
54+
vim: et tw=78 syn=sgml
55+
vi: ts=1 sw=1
56+
-->

reference/uodbc/odbc.result.xml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<reference xmlns="http://docbook.org/ns/docbook" xml:id="class.odbc-result" role="class">
3+
<title>The Odbc\Result class</title>
4+
<titleabbrev>Odbc\Result</titleabbrev>
5+
6+
<partintro>
7+
8+
<!-- {{{ Odbc\Result intro -->
9+
<section xml:id="odbc-result.intro">
10+
&reftitle.intro;
11+
<simpara>
12+
A fully opaque class which replaces an <literal>odbc_result</literal> &resource; as of PHP 8.4.0.
13+
</simpara>
14+
</section>
15+
<!-- }}} -->
16+
17+
<section xml:id="odbc-result.synopsis">
18+
&reftitle.classsynopsis;
19+
20+
<!-- {{{ Synopsis -->
21+
<packagesynopsis>
22+
<package>Odbc</package>
23+
24+
<classsynopsis class="class">
25+
<ooclass>
26+
<classname>Result</classname>
27+
</ooclass>
28+
</classsynopsis>
29+
</packagesynopsis>
30+
<!-- }}} -->
31+
32+
</section>
33+
34+
</partintro>
35+
36+
</reference>
37+
<!-- Keep this comment at the end of the file
38+
Local variables:
39+
mode: sgml
40+
sgml-omittag:t
41+
sgml-shorttag:t
42+
sgml-minimize-attributes:nil
43+
sgml-always-quote-attributes:t
44+
sgml-indent-step:1
45+
sgml-indent-data:t
46+
indent-tabs-mode:nil
47+
sgml-parent-document:nil
48+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
49+
sgml-exposed-tags:nil
50+
sgml-local-catalogs:nil
51+
sgml-local-ecat-files:nil
52+
End:
53+
vim600: syn=xml fen fdm=syntax fdl=2 si
54+
vim: et tw=78 syn=sgml
55+
vi: ts=1 sw=1
56+
-->

reference/uodbc/versions.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
Do NOT translate this file
55
-->
66
<versions>
7+
<!-- Classes -->
8+
<function name="odbc\connection" from="PHP 8 &gt;= 8.4.0"/>
9+
<function name="odbc\result" from="PHP 8 &gt;= 8.4.0"/>
10+
11+
<!-- Functions -->
712
<function name="odbc_autocommit" from="PHP 4, PHP 5, PHP 7, PHP 8"/>
813
<function name="odbc_binmode" from="PHP 4, PHP 5, PHP 7, PHP 8"/>
914
<function name="odbc_close" from="PHP 4, PHP 5, PHP 7, PHP 8"/>

0 commit comments

Comments
 (0)