Permalink
Browse files

This commit was manufactured by cvs2svn to create tag 'RELEASE_1_0_2'.

  • Loading branch information...
1 parent 985f1c2 commit 64ed05bf8ed66726a318df16b7933cc1c6eb5eb4 SVN Migration committed Apr 16, 2008
Showing with 13,267 additions and 2,684 deletions.
  1. +2 −0 ext/enchant/CREDITS
  2. +36 −0 ext/enchant/config.m4
  3. +13 −0 ext/enchant/config.w32
  4. +25 −0 ext/enchant/docs/examples/example1.php
  5. +774 −0 ext/enchant/enchant.c
  6. +146 −0 ext/enchant/package.xml
  7. +83 −0 ext/enchant/php_enchant.h
  8. +28 −0 ext/enchant/tests/broker_describe.phpt
  9. +21 −0 ext/enchant/tests/broker_free.phpt
  10. +15 −0 ext/enchant/tests/broker_init.phpt
  11. +31 −0 ext/enchant/tests/broker_request_dict.phpt
  12. +1 −0 ext/enchant/tests/hindi_correct.txt
  13. +1 −0 ext/enchant/tests/hindi_incorrect.txt
  14. +2 −0 ext/fileinfo/CREDITS
  15. 0 ext/fileinfo/EXPERIMENTAL
  16. +62 −0 ext/fileinfo/config.m4
  17. +437 −0 ext/fileinfo/fileinfo.c
  18. +29 −0 ext/fileinfo/fileinfo.php
  19. +43 −0 ext/fileinfo/package.xml
  20. +61 −0 ext/fileinfo/php_fileinfo.h
  21. +2 −0 ext/pdo/CREDITS
  22. +26 −0 ext/pdo/Makefile.frag
  23. +56 −0 ext/pdo/README
  24. +97 −0 ext/pdo/TODO
  25. +68 −0 ext/pdo/config.m4
  26. +10 −0 ext/pdo/config.w32
  27. +119 −0 ext/pdo/package.xml
  28. +399 −0 ext/pdo/pdo.c
  29. +62 −0 ext/pdo/pdo.php
  30. +1,443 −0 ext/pdo/pdo_dbh.c
  31. +712 −0 ext/pdo/pdo_sql_parser.c
  32. +487 −0 ext/pdo/pdo_sql_parser.re
  33. +340 −0 ext/pdo/pdo_sqlstate.c
  34. +2,499 −0 ext/pdo/pdo_stmt.c
  35. +91 −0 ext/pdo/php_pdo.h
  36. +663 −0 ext/pdo/php_pdo_driver.h
  37. +84 −0 ext/pdo/php_pdo_int.h
  38. +3 −0 ext/pdo_mysql/CREDITS
  39. +134 −0 ext/pdo_mysql/config.m4
  40. +15 −0 ext/pdo_mysql/config.w32
  41. +27 −0 ext/pdo_mysql/get_error_codes.php
  42. +573 −0 ext/pdo_mysql/mysql_driver.c
  43. +642 −0 ext/pdo_mysql/mysql_statement.c
  44. +93 −0 ext/pdo_mysql/package2.xml
  45. +116 −0 ext/pdo_mysql/pdo_mysql.c
  46. +53 −0 ext/pdo_mysql/php_pdo_mysql.h
  47. +90 −0 ext/pdo_mysql/php_pdo_mysql_int.h
  48. +388 −0 ext/pdo_mysql/php_pdo_mysql_sqlstate.h
  49. +50 −0 ext/pdo_mysql/tests/bug_33689.phpt
  50. +28 −0 ext/pdo_mysql/tests/common.phpt
  51. +19 −0 ext/pdo_mysql/tests/config.inc
  52. +30 −0 ext/pdo_mysql/tests/pecl_bug_5200.phpt
  53. +41 −0 ext/pdo_mysql/tests/pecl_bug_5780.phpt
  54. +52 −0 ext/pdo_mysql/tests/pecl_bug_5802.phpt
  55. +20 −0 ext/pdo_mysql/tests/show_tables.phpt
  56. +2 −0 ext/pdo_pgsql/CREDITS
  57. +131 −0 ext/pdo_pgsql/config.m4
  58. +22 −0 ext/pdo_pgsql/config.w32
  59. +87 −0 ext/pdo_pgsql/package2.xml
  60. +139 −0 ext/pdo_pgsql/pdo_pgsql.c
  61. +711 −0 ext/pdo_pgsql/pgsql_driver.c
  62. +664 −0 ext/pdo_pgsql/pgsql_statement.c
  63. +55 −0 ext/pdo_pgsql/php_pdo_pgsql.h
  64. +114 −0 ext/pdo_pgsql/php_pdo_pgsql_int.h
  65. +0 −10 ext/sqlite/tests/bug26911.phpt
  66. +0 −13 ext/sqlite/tests/sqlite_018.phpt
  67. +0 −46 ext/sqlite/tests/sqlite_019.phpt
  68. +0 −98 ext/sqlite/tests/sqlite_022.phpt
  69. +0 −2 ext/tidy/CREDITS
  70. +0 −122 ext/tidy/README
  71. +0 −3 ext/tidy/TODO
  72. +0 −35 ext/tidy/config.m4
  73. +0 −38 ext/tidy/examples/cleanhtml.php
  74. +0 −93 ext/tidy/examples/dumpit.php
  75. +0 −60 ext/tidy/examples/urlgrab.php
  76. +0 −64 ext/tidy/package.xml
  77. +0 −238 ext/tidy/php_tidy.h
  78. +0 −24 ext/tidy/tests/001.phpt
  79. +0 −22 ext/tidy/tests/002.phpt
  80. +0 −25 ext/tidy/tests/003.phpt
  81. +0 −21 ext/tidy/tests/004.phpt
  82. +0 −1 ext/tidy/tests/005.html
  83. +0 −23 ext/tidy/tests/005.phpt
  84. +0 −21 ext/tidy/tests/006.phpt
  85. +0 −36 ext/tidy/tests/007.phpt
  86. +0 −1,689 ext/tidy/tidy.c
View
@@ -0,0 +1,2 @@
+enchant
+Pierre-Alain Joye, Ilia Alshanetsky
View
@@ -0,0 +1,36 @@
+dnl
+dnl $Id$
+dnl
+
+PHP_ARG_WITH(enchant,for ENCHANT support,
+[ --with-enchant[=DIR] Include enchant support.
+ GNU Aspell version 1.1.3 or higher required.])
+
+if test "$PHP_ENCHANT" != "no"; then
+ PHP_NEW_EXTENSION(enchant, enchant.c, $ext_shared)
+ if test "$PHP_ENCHANT" != "yes"; then
+ ENCHANT_SEARCH_DIRS=$PHP_ENCHANT
+ else
+ ENCHANT_SEARCH_DIRS="/usr/local /usr"
+ fi
+ for i in $ENCHANT_SEARCH_DIRS; do
+ if test -f $i/include/enchant/enchant.h; then
+ ENCHANT_DIR=$i
+ ENCHANT_INCDIR=$i/include/enchant
+ elif test -f $i/include/enchant.h; then
+ ENCHANT_DIR=$i
+ ENCHANT_INCDIR=$i/include
+ fi
+ done
+
+ if test -z "$ENCHANT_DIR"; then
+ AC_MSG_ERROR(Cannot find enchant)
+ fi
+
+ ENCHANT_LIBDIR=$ENCHANT_DIR/lib
+
+ AC_DEFINE(HAVE_ENCHANT,1,[ ])
+ PHP_SUBST(ENCHANT_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(enchant, $ENCHANT_LIBDIR, ENCHANT_SHARED_LIBADD)
+ PHP_ADD_INCLUDE($ENCHANT_INCDIR)
+fi
@@ -0,0 +1,13 @@
+// $Id$
+// vim:ft=javascript
+
+ARG_ENABLE("enchant", "Enchant Support", "no");
+
+if (PHP_ENCHANT == "yes") {
+ if (CHECK_HEADER_ADD_INCLUDE("enchant.h", "CFLAGS_ENCHANT", PHP_ENCHANT)) {
+ EXTENSION("enchant", "enchant.c");
+ AC_DEFINE('HAVE_ENCHANT', 1, 'Have Enchant support', false);
+ } else {
+ WARNING('Could not find enchant.h; skipping');
+ }
+}
@@ -0,0 +1,25 @@
+<?php
+$tag = 'en_US';
+$r = enchant_broker_init();
+$bprovides = enchant_broker_describe($r);
+echo "Current broker provides the following backend(s):\n";
+print_r($bprovides);
+
+
+if (enchant_broker_dict_exists($r,$tag)) {
+ $d = enchant_broker_request_dict($r, $tag);
+ $dprovides = enchant_dict_describe($d);
+ echo "dictionary $tag provides:\n";
+ $spellerrors = enchant_dict_check($d, "soong");
+ print_r($dprovides);
+ echo "found $spellerrors spell errors\n";
+ if ($spellerrors) {
+ $suggs = enchant_dict_suggest($d, "soong");
+ echo "Suggestions for 'soong':";
+ print_r($suggs);
+ }
+ enchant_broker_free_dict($d);
+} else {
+}
+enchant_broker_free($r);
+?>
Oops, something went wrong.

0 comments on commit 64ed05b

Please sign in to comment.