dnl rm -f main/internal_functions.c.old
dnl fi
+
+ # experimental things
+ if test $PHP_SAPI = "apache2filter" ; then
+ echo "+--------------------------------------------------------------------+"
+ echo "| *** WARNING *** |"
+ echo "| |"
+ echo "| Apache 2 Support is EXPERIMENTAL and should NOT be used in |"
+ echo "| production environment. Before submitting bug reports, try the |"
+ echo "| latest CVS snapshot from http://snaps.php.net |"
+ fi
+
+ if test "$PHP_OVERLOAD" != "no"; then
+ echo "+--------------------------------------------------------------------+"
+ echo "| *** WARNING *** |"
+ echo "| |"
+ echo "| The overload extension is highly EXPERIMENTAL and will most |"
+ echo "| certainly change in newer versions. You have been warned! |"
+ fi
+
+ if test "$PHP_AGGREGATE" != "no"; then
+ echo "+--------------------------------------------------------------------+"
+ echo "| *** WARNING *** |"
+ echo "| |"
+ echo "| The aggregate functions are highly EXPERIMENTAL and will most |"
+ echo "| certainly change in newer versions. You have been warned! |"
+ fi
+
+ if test $UNAME = "FreeBSD" && test $PHP_SAPI = "apache2filter" && test $TSRM_PTH != "pth-config" ; then
+ echo "+--------------------------------------------------------------------+"
+ echo "| *** WARNING *** |"
+ echo "| |"
+ echo "| In order to build PHP as a Apache2 module on FreeBSD, you have to |"
+ echo "| add --with-tsrm-pth to your ./configure line. Therefore you need |"
+ echo "| to install gnu-pth from /usr/ports/devel/pth. |"
+ fi
+
if test -n "$PHP_APXS_BROKEN"; then
echo "+--------------------------------------------------------------------+"
echo "| WARNING: Your $APXS script is most likely broken."
dnl
PHP_ARG_ENABLE(overload,whether to enable user-space object overloading support,
-[ --disable-overload Disable user-space object overloading support.], yes)
+[ --enable-overload EXPERIMENTAL: Enable user-space object overloading support.], no)
if test "$PHP_OVERLOAD" != "no"; then
AC_DEFINE(HAVE_OVERLOAD, 1, [ ])
#include "php.h"
#include "basic_functions.h"
#include "aggregation.h"
+
+#ifdef HAVE_AGGREGATE
+
#if HAVE_PCRE || HAVE_BUNDLED_PCRE
#include "ext/pcre/php_pcre.h"
#endif
}
/* }}} */
+#endif /* HAVE_AGGREGATE */
+
/*
* Local variables:
* tab-width: 4
/* $Id$ */
+#ifdef HAVE_AGGREGATE
+
#ifndef AGGREGATION_H
#define AGGREGATION_H
PHP_FUNCTION(aggregation_info);
#endif /* AGGREGATION_H */
+
+#endif /* HAVE_AGGREGATE */
PHP_FE(str_rot13, NULL)
/* functions from aggregate.c */
+#if HAVE_AGGREGATE
PHP_FE(aggregate, first_arg_force_ref)
PHP_FE(aggregate_methods, first_arg_force_ref)
PHP_FE(aggregate_methods_by_list, first_arg_force_ref)
PHP_FE(aggregate_properties_by_regexp, first_arg_force_ref)
PHP_FE(deaggregate, first_arg_force_ref)
PHP_FE(aggregation_info, first_arg_force_ref)
+#endif
{NULL, NULL, NULL}
};
BG(next) = NULL;
BG(left) = -1;
BG(user_tick_functions) = NULL;
+#ifdef HAVE_AGGREGATION
BG(aggregation_table) = NULL;
+#endif
zend_hash_init(&BG(sm_protected_env_vars), 5, NULL, NULL, 1);
BG(sm_allowed_env_vars) = NULL;
BG(user_tick_functions) = NULL;
}
+#ifdef HAVE_AGRGEGATION
if (BG(aggregation_table)) {
zend_hash_destroy(BG(aggregation_table));
efree(BG(aggregation_table));
BG(aggregation_table) = NULL;
}
+#endif
#ifdef HAVE_MMAP
if (BG(mmap_file)) {
size_t mmap_len;
#endif
+#ifdef HAVE_AGGREGATE
HashTable *aggregation_table;
+#endif
} php_basic_globals;
#ifdef ZTS
fi
])
+
+PHP_ARG_ENABLE(aggregate, whether to enable aggregation support,
+[ --enable-aggregate EXPERIMENTAL: Enable user-space aggregation support.], no)
+
+if test "$PHP_AGGREGATE" != "no"; then
+ AC_DEFINE(HAVE_AGGREGATE, 1, [ ])
+fi
+
if test "$PHP_SAPI" = "cgi"; then
AC_DEFINE(ENABLE_CHROOT_FUNC, 1, [Whether to enable chroot() function])
fi