]> granicus.if.org Git - php/commitdiff
update ready for release
authorWez Furlong <wez@php.net>
Wed, 9 Feb 2005 04:54:56 +0000 (04:54 +0000)
committerWez Furlong <wez@php.net>
Wed, 9 Feb 2005 04:54:56 +0000 (04:54 +0000)
# includes big hack to help guide people into running "make install" so
# that the headers get installed; works around a pear bug.

ext/pdo/Makefile.frag
ext/pdo/config.m4
ext/pdo/package.xml
ext/pdo/pdo.c
ext/pdo/pdo.php
ext/pdo/pdo_sql_parser.c

index c28a5cee50d93014695778a93926f1d8b30ef555..60f0f106907d1a603982551907bf2a752573619b 100644 (file)
@@ -20,12 +20,20 @@ install-pdo-headers:
                        echo "hmmm"; \
                fi \
        done;
+       @echo ""
+       @echo ""
+       @echo "You're now ready to install PDO drivers for your database"
+       @echo "If you'd like to have PDO show up in the list of installed"
+       @echo "packages when you run \"pear list\", you may now run"
+       @echo "\"sudo pear install package.xml\""
+       @echo "this time, when prompted to press enter, you shold type"
+       @echo "\"no\" and press enter instead."
 
 # mini hack
 install: $(all_targets) $(install_targets) install-pdo-headers
 
 $(top_srcdir)/ext/pdo/pdo_sql_parser.c: $(top_srcdir)/ext/pdo/pdo_sql_parser.re
-       re2c -b $(top_srcdir)/ext/pdo/pdo_sql_parser.re > $@
+       exit 0; re2c -b $(top_srcdir)/ext/pdo/pdo_sql_parser.re > $@
 
 $(srcdir)/pdo_sql_parser.c: $(srcdir)/pdo_sql_parser.re
-       re2c -b $(srcdir)/pdo_sql_parser.re > $@
+       exit 0; re2c -b $(srcdir)/pdo_sql_parser.re > $@
index a5abc65683dc5027b59f1531533cb8b5a44cf50d..7c0dcbfd2b920a9bd5c0b953df49b5fbb2cefd5c 100755 (executable)
@@ -1,6 +1,42 @@
 dnl $Id$
 dnl config.m4 for extension pdo
 
+AC_ARG_WITH(broken-pear-install,
+[],[
+  if test "x$withval" = "xyes"; then
+  AC_MSG_ERROR([
+Due to a bug in the pear installer you should install the PDO package manually
+using the following steps:
+
+ 1. Download the PDO package to your local machine:
+    % wget http://pecl.php.net/get/PDO
+
+ 2. Determine your PHP bin dir.
+    If your php5 cli binary lives at /usr/local/php5/bin/php
+    the bin dir is /usr/local/php5/bin
+
+ 3. Set your path so that your PHP bin dir is at the front:
+    export PATH="/usr/local/php5/bin:\$PATH"
+
+ 4. Manually build:
+    % tar xzf PDO-0.2.tgz
+    % cd PDO-0.2
+    % phpize
+    % ./configure
+    % make
+    % sudo -s
+    # make install
+    # echo extension=pdo.so >> /usr/local/php5/lib/php.ini
+
+We apologize for the inconvenience, and hope to resolve this problem
+in a future PHP/PEAR release.
+
+])
+fi
+])
+
 PHP_ARG_ENABLE(pdo, whether to disable PDO support,
 [  --disable-pdo            Disable PHP Data Objects support], yes)
 
index cc3d6327e7bf49f3802f572e31a7b076efdb06e1..34ad6bbd94f0ca3c2246c3081896fb65d020fcce 100755 (executable)
    <role>lead</role>
   </maintainer>
  </maintainers>
+
+<!-- pear is still broken -->
+<configureoptions>
+  <configureoption name="with-broken-pear-install" default="yes" prompt="the pear installer has a bug; press enter to find out more"/>
+</configureoptions>
+
  <description>
   PDO provides a uniform data access interface, sporting advanced features such
   as prepared statements and bound parameters.  PDO drivers are dynamically
   loadable and may be developed independently from the core, but still accessed
   using the same API.
+
+  Read the documentation at http://www.php.net/pdo for more information.
  </description>
  <license>PHP</license>
  <release>
-  <state>alpha</state>
+  <state>beta</state>
   <version>0.2</version>
-  <date>2005-01-20</date>
+  <date>2005-02-08</date>
 
   <notes>
 Note that PDO on its own is useless.
@@ -51,7 +60,7 @@ before using PDO.
 You can obtain it from http://snaps.php.net.
 
 If you are running on Windows, you should download:
-http://snaps.php.net/win32/php5-win32-latest.zip
+http://snaps.php.net/win32/php5.0-win32-latest.zip
 http://snaps.php.net/win32/PECL_5_0/php_pdo.dll
 
 You can find additional PDO drivers at:
@@ -79,7 +88,7 @@ http://snaps.php.net/win32/PECL_5_0/
    <file role="doc" name="CREDITS"/>
   </filelist>
   <deps>
-   <dep type="php" rel="ge" version="5.0.0"/>
+   <dep type="php" rel="ge" version="5.0.3"/>
   </deps>
  </release>
 </package>
index d8fa74c411a0f28730f23a91e065dd53c48e0b63..59ad47834a481369dc7deeab73714d152602d41f 100755 (executable)
@@ -74,7 +74,7 @@ zend_module_entry pdo_module_entry = {
        PHP_RINIT(pdo),
        PHP_RSHUTDOWN(pdo),
        PHP_MINFO(pdo),
-       "0.1.1",
+       "0.2",
        STANDARD_MODULE_PROPERTIES
 };
 /* }}} */
index 3a9a0fd2cd8c3a71be873fbd5d02204fae86a3a0..1008f7bd04d3f97dc947e7d1ab84264ff6922cfc 100755 (executable)
@@ -25,7 +25,7 @@ for ($i = 0; $i < 4; $i++) {
 $stmt = null;
 
 echo "DEFAULT:\n";
-foreach ($x->queryAndIterate("select NAME, VALUE from test") as $row) {
+foreach ($x->query("select NAME, VALUE from test") as $row) {
        print_r($row);
 }
 
@@ -37,7 +37,7 @@ class Foo {
 
 $foo = new foo;
 
-foreach ($x->queryAndIterate("select NAME, VALUE from test", PDO_FETCH_COLUMN, 1) as $row) {
+foreach ($x->query("select NAME, VALUE from test", PDO_FETCH_COLUMN, 1) as $row) {
        debug_zval_dump($row);
 }
 
index ec2706bca1f36fff2a24627cb95997b2c654c5f3..27cee06d6654497aa7629d7347db0ea2c86c9e9a 100644 (file)
@@ -1,5 +1,5 @@
-/* Generated by re2c 0.9.3 on Sun Feb  6 19:24:41 2005 */
-#line 1 "/data/wez/php-HEAD/ext/pdo/pdo_sql_parser.re"
+/* Generated by re2c 0.9.3 on Tue Feb  8 19:46:35 2005 */
+#line 1 "/data/wez/pecl/pdo/pdo_sql_parser.re"
 /*
   +----------------------------------------------------------------------+
   | PHP Version 5                                                        |
@@ -45,7 +45,7 @@ static int scan(Scanner *s)
        char *cursor = s->cur;
        std:
                s->tok = cursor;
-       #line 54 "/data/wez/php-HEAD/ext/pdo/pdo_sql_parser.re"
+       #line 54 "/data/wez/pecl/pdo/pdo_sql_parser.re"
 
 
        
@@ -103,7 +103,7 @@ yy2:        yyaccept = 0;
        if(yych >= '\001')      goto yy24;
        goto yy3;
 yy3:
-#line 61 "/data/wez/php-HEAD/ext/pdo/pdo_sql_parser.re"
+#line 61 "/data/wez/pecl/pdo/pdo_sql_parser.re"
 { RET(PDO_PARSER_TEXT); }
 #line 63 "<stdout>"
 yy4:   yyaccept = 0;
@@ -117,7 +117,7 @@ yy5:        yych = *++YYCURSOR;
 yy6:   ++YYCURSOR;
        goto yy7;
 yy7:
-#line 60 "/data/wez/php-HEAD/ext/pdo/pdo_sql_parser.re"
+#line 60 "/data/wez/pecl/pdo/pdo_sql_parser.re"
 { RET(PDO_PARSER_BIND_POS); }
 #line 77 "<stdout>"
 yy8:   ++YYCURSOR;
@@ -127,13 +127,13 @@ yy8:      ++YYCURSOR;
 yy9:   if(yybm[0+yych] & 8)    goto yy8;
        goto yy10;
 yy10:
-#line 62 "/data/wez/php-HEAD/ext/pdo/pdo_sql_parser.re"
+#line 62 "/data/wez/pecl/pdo/pdo_sql_parser.re"
 { RET(PDO_PARSER_TEXT); }
 #line 88 "<stdout>"
 yy11:  ++YYCURSOR;
        goto yy12;
 yy12:
-#line 63 "/data/wez/php-HEAD/ext/pdo/pdo_sql_parser.re"
+#line 63 "/data/wez/pecl/pdo/pdo_sql_parser.re"
 { RET(PDO_PARSER_EOI); }
 #line 94 "<stdout>"
 yy13:  ++YYCURSOR;
@@ -143,7 +143,7 @@ yy13:       ++YYCURSOR;
 yy14:  if(yybm[0+yych] & 16)   goto yy13;
        goto yy15;
 yy15:
-#line 59 "/data/wez/php-HEAD/ext/pdo/pdo_sql_parser.re"
+#line 59 "/data/wez/pecl/pdo/pdo_sql_parser.re"
 { RET(PDO_PARSER_BIND); }
 #line 105 "<stdout>"
 yy16:  ++YYCURSOR;
@@ -169,7 +169,7 @@ yy20:       if(yybm[0+yych] & 32)   goto yy16;
        if(yych <= '\'')        goto yy19;
        goto yy22;
 yy21:
-#line 58 "/data/wez/php-HEAD/ext/pdo/pdo_sql_parser.re"
+#line 58 "/data/wez/pecl/pdo/pdo_sql_parser.re"
 { RET(PDO_PARSER_TEXT); }
 #line 132 "<stdout>"
 yy22:  ++YYCURSOR;
@@ -193,11 +193,11 @@ yy25:     ++YYCURSOR;
 yy26:  ++YYCURSOR;
        goto yy27;
 yy27:
-#line 57 "/data/wez/php-HEAD/ext/pdo/pdo_sql_parser.re"
+#line 57 "/data/wez/pecl/pdo/pdo_sql_parser.re"
 { RET(PDO_PARSER_TEXT); }
 #line 159 "<stdout>"
 }
-#line 64 "/data/wez/php-HEAD/ext/pdo/pdo_sql_parser.re"
+#line 64 "/data/wez/pecl/pdo/pdo_sql_parser.re"
        
 }