📄 internals2.pdo.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>PDO Driver How-To</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="internals2.streams.html">Working with streams</a></div> <div class="next" style="text-align: right; float: right;"><a href="internals2.pdo.preparation.html">Preparation and Housekeeping</a></div> <div class="up"><a href="internals2.html">PHP at the Core: A Hacker's Guide to the Zend Engine</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <div class="info"> <h1>PDO Driver How-To</h1><h2>Table of Contents</h2><ul class="chunklist chunklist_chapter"><li><a href="internals2.pdo.preparation.html">Preparation and Housekeeping</a></li><li><a href="internals2.pdo.implementing.html">Fleshing out your skeleton</a></li><li><a href="internals2.pdo.building.html">Building</a></li><li><a href="internals2.pdo.testing.html">Testing</a></li><li><a href="internals2.pdo.packaging.html">Packaging and distribution</a></li><li><a href="internals2.pdo.pdo-dbh-t.html">pdo_dbh_t definition</a></li><li><a href="internals2.pdo.pdo_stmt_t.html">pdo_stmt_t definition</a></li><li><a href="internals2.pdo.constants.html">Constants</a></li><li><a href="internals2.pdo.error-handling.html">Error handling</a></li></ul> <div class="abstract"> <p class="para"> The purpose of this How-To is to provide a basic understanding of the steps required to write a database driver that interfaces with the PDO layer. Please note that this is still an evolving API and as such, subject to change. This document was prepared based on version 0.3 of PDO. The learning curve is steep; expect to spend a lot of time on the prerequisites. </p> </div> </div> <div id="internals2.pdo.prerequisites" class="sect1"> <h2 class="title">Prerequisites</h2> <p class="para"> The following is list of prerequisites and assumptions needed for writing a PDO database driver: </p> <ol class="orderedlist"> <li class="listitem"> <p class="para"> A working target database, examples, demos, etc. working as per vendor specifications; </p> </li> <li class="listitem"> <p class="para">A working development environment:</p> <ol class="orderedlist"> <li class="listitem"> <p class="para">Linux: standard development tools, gcc, ld, make, autoconf, automake, etc., versions dependent on distribution;</p> </li> <li class="listitem"> <p class="para">Other Unix: standard development tools supplied by vendor plus the GNU development tool set; </p> </li> <li class="listitem"> <p class="para">Win32: Visual Studio compiler suite;</p> </li> </ol> </li> <li class="listitem"> <p class="para">A working PHP environment version 5.0.3 or higher with a working PEAR extension version 1.3.5 or higher;</p> </li> <li class="listitem"> <p class="para">A working PDO environment (can be installed using 'sudo pecl install PDO'), including the headers which will be needed to access the PDO type definitions and function declarations;</p> </li> <li class="listitem"> <p class="para">A good working knowledge of the C programming language;</p> </li> <li class="listitem"> <p class="para">A good working knowledge of the way to write a PHP extension; <em class="emphasis">George Schlossnagle's</em> <em class="emphasis">Advanced PHP Programming</em> (published by Developer's Library, chapters 21 and 22) is recommended;</p> </li> <li class="listitem"> <p class="para"> Finally, a familiarity with the Zend API that forms the heart of PHP, in particular paying attention to the memory management aspects. </p> </li> </ol></div> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="internals2.streams.html">Working with streams</a></div> <div class="next" style="text-align: right; float: right;"><a href="internals2.pdo.preparation.html">Preparation and Housekeeping</a></div> <div class="up"><a href="internals2.html">PHP at the Core: A Hacker's Guide to the Zend Engine</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -