We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad63336 commit 38f5812Copy full SHA for 38f5812
ext/overload/config.m4
@@ -1,11 +1,16 @@
1
dnl
2
dnl $Id$
3
4
-
5
PHP_ARG_ENABLE(overload,whether to enable user-space object overloading support,
6
[ --disable-overload Disable user-space object overloading support.], yes)
7
+
8
if test "$PHP_OVERLOAD" != "no"; then
9
- AC_DEFINE(HAVE_OVERLOAD, 1, [ ])
10
- PHP_NEW_EXTENSION(overload, overload.c, $ext_shared)
+ AC_CHECK_FILE([Zend/zend_objects.h], [
+ AC_MSG_CHECKING(for overload)
11
+ AC_MSG_RESULT(not needed with ZendEngine 2)
12
+ ], [
13
+ AC_DEFINE(HAVE_OVERLOAD, 1, [ ])
14
+ PHP_NEW_EXTENSION(overload, overload.c, $ext_shared)
15
+ ])
16
fi
0 commit comments