summaryrefslogtreecommitdiff
path: root/ext/overload
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-12-01 00:38:30 +0000
committerMarcus Boerger <helly@php.net>2002-12-01 00:38:30 +0000
commit38f5812191cbd16ba2556c42dc97dabd84a1d515 (patch)
tree1f5be7dd0a75903cda0040bbd86d3c42535108b3 /ext/overload
parentad6333654e9046a970adc5f52cafe85d6da34c2c (diff)
downloadphp-git-38f5812191cbd16ba2556c42dc97dabd84a1d515.tar.gz
Skip overload for ZE2
Bug #20156
Diffstat (limited to 'ext/overload')
-rw-r--r--ext/overload/config.m411
1 files changed, 8 insertions, 3 deletions
diff --git a/ext/overload/config.m4 b/ext/overload/config.m4
index be0576ca28..67be7da0ae 100644
--- a/ext/overload/config.m4
+++ b/ext/overload/config.m4
@@ -1,11 +1,16 @@
dnl
dnl $Id$
dnl
-
PHP_ARG_ENABLE(overload,whether to enable user-space object overloading support,
[ --disable-overload Disable user-space object overloading support.], yes)
+
if test "$PHP_OVERLOAD" != "no"; then
- AC_DEFINE(HAVE_OVERLOAD, 1, [ ])
- PHP_NEW_EXTENSION(overload, overload.c, $ext_shared)
+ AC_CHECK_FILE([Zend/zend_objects.h], [
+ AC_MSG_CHECKING(for overload)
+ AC_MSG_RESULT(not needed with ZendEngine 2)
+ ], [
+ AC_DEFINE(HAVE_OVERLOAD, 1, [ ])
+ PHP_NEW_EXTENSION(overload, overload.c, $ext_shared)
+ ])
fi