Skip to content

Commit 38f5812

Browse files
committed
Skip overload for ZE2
Bug #20156
1 parent ad63336 commit 38f5812

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ext/overload/config.m4

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
dnl
22
dnl $Id$
33
dnl
4-
54
PHP_ARG_ENABLE(overload,whether to enable user-space object overloading support,
65
[ --disable-overload Disable user-space object overloading support.], yes)
76

7+
88
if test "$PHP_OVERLOAD" != "no"; then
9-
AC_DEFINE(HAVE_OVERLOAD, 1, [ ])
10-
PHP_NEW_EXTENSION(overload, overload.c, $ext_shared)
9+
AC_CHECK_FILE([Zend/zend_objects.h], [
10+
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+
])
1116
fi

0 commit comments

Comments
 (0)