Permalink
Browse files

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

  • Loading branch information...
1 parent 79bebd9 commit 80b7d0980fea8f46a782a1dd75da7af43ba2596f SVN Migration committed Jan 18, 2006
Showing with 0 additions and 2,993 deletions.
  1. +0 −2 ext/filter/CREDITS
  2. +0 −68 ext/filter/callback_filter.c
  3. +0 −95 ext/filter/config.m4
  4. +0 −8 ext/filter/config.w32
  5. +0 −680 ext/filter/filter.c
  6. +0 −87 ext/filter/filter_private.h
  7. +0 −53 ext/filter/package.xml
  8. +0 −68 ext/filter/package2.xml
  9. +0 −105 ext/filter/php_filter.h
  10. +0 −340 ext/filter/sanitizing_filters.c
  11. +0 −8 ext/filter/tests/001.phpt
  12. +0 −11 ext/filter/tests/002.phpt
  13. +0 −22 ext/filter/tests/003.phpt
  14. +0 −24 ext/filter/tests/004.phpt
  15. +0 −21 ext/filter/tests/005.phpt
  16. +0 −10 ext/filter/tests/006.phpt
  17. +0 −68 ext/filter/tests/007.phpt
  18. +0 −88 ext/filter/tests/008.phpt
  19. +0 −30 ext/filter/tests/009.phpt
  20. +0 −60 ext/filter/tests/010.phpt
  21. +0 −49 ext/filter/tests/011.phpt
  22. +0 −16 ext/filter/tests/012.phpt
  23. +0 −40 ext/filter/tests/013.phpt
  24. +0 −41 ext/filter/tests/014.phpt
  25. +0 −72 ext/filter/tests/015.phpt
  26. +0 −32 ext/filter/tests/016.phpt
  27. +0 −24 ext/filter/tests/017.phpt
  28. +0 −50 ext/filter/tests/018.phpt
  29. +0 −20 ext/filter/tests/019.phpt
  30. +0 −18 ext/filter/tests/020.phpt
  31. +0 −44 ext/filter/tests/021.phpt
  32. +0 −20 ext/filter/tests/022.phpt
  33. +0 −20 ext/filter/tests/023.phpt
  34. +0 −18 ext/filter/tests/024.phpt
  35. +0 −24 ext/filter/tests/025.phpt
  36. +0 −30 ext/filter/tests/026.phpt
  37. +0 −30 ext/filter/tests/027.phpt
  38. +0 −35 ext/filter/tests/028.phpt
  39. +0 −103 ext/filter/tests/029.phpt
  40. +0 −71 ext/filter/tests/filter_data.phpt
  41. +0 −103 ext/imap/imap.h
  42. +0 −285 main/php_realpath.c
View
@@ -1,2 +0,0 @@
-Input Filter
-Rasmus Lerdorf, Derick Rethans
@@ -1,68 +0,0 @@
-/*
- +----------------------------------------------------------------------+
- | PHP Version 5 |
- +----------------------------------------------------------------------+
- | Copyright (c) 1997-2006 The PHP Group |
- +----------------------------------------------------------------------+
- | This source file is subject to version 3.01 of the PHP license, |
- | that is bundled with this package in the file LICENSE, and is |
- | available through the world-wide-web at the following url: |
- | http://www.php.net/license/3_01.txt |
- | If you did not receive a copy of the PHP license and are unable to |
- | obtain it through the world-wide-web, please send a note to |
- | license@php.net so we can mail you a copy immediately. |
- +----------------------------------------------------------------------+
- | Authors: Derick Rethans <derick@php.net> |
- +----------------------------------------------------------------------+
-*/
-
-/* $Id$ */
-
-#include "php_filter.h"
-
-void php_filter_callback(PHP_INPUT_FILTER_PARAM_DECL)
-{
- char *name = NULL;
- zval *retval_ptr;
- zval ***args;
- int status;
-
- if (!option_array || !zend_is_callable(option_array, IS_CALLABLE_CHECK_NO_ACCESS, &name)) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "First argument is expected to be a valid callback");
- if (name) {
- efree(name);
- }
- zval_dtor(value);
- Z_TYPE_P(value) = IS_NULL;
- return;
- }
- efree(name);
-
- args = safe_emalloc(sizeof(zval **), 1, 0);
- args[0] = &value;
-
- status = call_user_function_ex(EG(function_table), NULL, option_array, &retval_ptr, 1, args, 0, NULL TSRMLS_CC);
-
- if (status == SUCCESS && retval_ptr != NULL) {
- zval_dtor(value);
- *value = *retval_ptr;
- zval_copy_ctor(value);
- } else {
- zval_dtor(value);
- Z_TYPE_P(value) = IS_NULL;
- }
-
- if (retval_ptr) {
- zval_ptr_dtor(&retval_ptr);
- }
- efree(args);
-}
-
-/*
- * Local variables:
- * tab-width: 4
- * c-basic-offset: 4
- * End:
- * vim600: noet sw=4 ts=4 fdm=marker
- * vim<600: noet sw=4 ts=4
- */
View
@@ -1,95 +0,0 @@
-dnl $Id$
-dnl config.m4 for input filtering extension
-
-PHP_ARG_ENABLE(filter, whether to enable input filter support,
-[ --disable-filter Disable input filter support], yes)
-
-PHP_ARG_WITH(pcre-dir, pcre install prefix,
-[ --with-pcre-dir FILTER: pcre install prefix], no, no)
-
-if test "$PHP_FILTER" != "no"; then
-
- dnl Check if configure is the PHP core configure
- if test -n "$PHP_VERSION"; then
- dnl This extension can not be build as shared when in PHP core
- ext_shared=no
- else
- dnl This is PECL build, check if bundled PCRE library is used
- old_CPPFLAGS=$CPPFLAGS
- CPPFLAGS=$INCLUDES
- AC_EGREP_CPP(yes,[
-#include <main/php_config.h>
-#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
-yes
-#endif
- ],[
- PHP_PCRE_REGEX=yes
- ],[
- AC_EGREP_CPP(yes,[
-#include <main/php_config.h>
-#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
-yes
-#endif
- ],[
- PHP_PCRE_REGEX=pecl
- ],[
- PHP_PCRE_REGEX=no
- ])
- ])
- CPPFLAGS=$old_CPPFLAGS
- fi
-
- if test "$PHP_PCRE_REGEX" != "yes"; then
- dnl
- dnl If PCRE extension is enabled we can use the already found paths,
- dnl otherwise we have to detect them here:
- dnl
- if test "$PHP_PCRE_REGEX" = "no" || test "$PHP_PCRE_REGEX" = "pecl"; then
- dnl Set the PCRE search dirs correctly
- case "$PHP_PCRE_DIR" in
- yes|no)
- PCRE_SEARCH_DIR="/usr/local /usr"
- ;;
- *)
- PCRE_SEARCH_DIR="$PHP_PCRE_DIR"
- ;;
- esac
-
- for i in $PCRE_SEARCH_DIR; do
- if test -f $i/include/pcre/pcre.h; then
- PCRE_INCDIR=$i/include/pcre
- break
- elif test -f $i/include/pcre.h; then
- PCRE_INCDIR=$i/include
- break
- elif test -f $i/pcre.h; then
- PCRE_INCDIR=$i
- break
- fi
- done
-
- if test -z "$PCRE_INCDIR"; then
- AC_MSG_ERROR([Could not find pcre.h anywhere under $PCRE_SEARCH_DIR])
- fi
-
- for j in $PCRE_SEARCH_DIR/$PHP_LIBDIR $PCRE_SEARCH_DIR; do
- if test -f $j/libpcre.a || test -f $j/libpcre.$SHLIB_SUFFIX_NAME; then
- PCRE_LIBDIR=$j
- break
- fi
- done
-
- if test -z "$PCRE_LIBDIR" ; then
- AC_MSG_ERROR([Could not find libpcre.(a|$SHLIB_SUFFIX_NAME) anywhere under $PCRE_SEARCH_DIR])
- fi
- fi
-
- PHP_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR, FILTER_SHARED_LIBADD)
- PHP_ADD_INCLUDE($PCRE_INCDIR)
- fi
-
- PHP_NEW_EXTENSION(filter, filter.c sanitizing_filters.c logical_filters.c callback_filter.c, $ext_shared)
- PHP_SUBST(FILTER_SHARED_LIBADD)
-
- PHP_INSTALL_HEADERS([$ext_srcdir/php_filter.h])
-fi
View
@@ -1,8 +0,0 @@
-// $Id$
-// vim:ft=javascript
-
-ARG_ENABLE("filter", "Filter Support", "yes");
-
-if (PHP_FILTER == "yes") {
- EXTENSION("filter", "filter.c sanitizing_filters.c logical_filters.c callback_filter.c");
-}
Oops, something went wrong.

0 comments on commit 80b7d09

Please sign in to comment.