Browse Source
Merge branch 'PHP-7.0' of git.php.net:php-src into PHP-7.0
Merge branch 'PHP-7.0' of git.php.net:php-src into PHP-7.0
* 'PHP-7.0' of git.php.net:php-src: Drop HAVE_PACKED_OBJECT_VALUE More zpp cleanup in ext/intlpull/1557/head
5 changed files with 17 additions and 94 deletions
-
44ext/intl/calendar/calendar_methods.cpp
-
3ext/intl/tests/calendar_clear_error.phpt
-
4ext/intl/timezone/timezone_methods.cpp
-
20ext/spl/config.m4
-
40ext/spl/spl_observer.c
@ -1,26 +1,6 @@ |
|||
dnl $Id$ |
|||
dnl config.m4 for extension SPL |
|||
|
|||
AC_MSG_CHECKING(whether zend_object_value is packed) |
|||
old_CPPFLAGS=$CPPFLAGS |
|||
CPPFLAGS="$INCLUDES -I$abs_srcdir $CPPFLAGS" |
|||
AC_TRY_RUN([ |
|||
#include "Zend/zend_types.h" |
|||
int main(int argc, char **argv) { |
|||
return ((sizeof(zend_object_handle) + sizeof(zend_object_handlers*)) == sizeof(zend_object_value)) ? 0 : 1; |
|||
} |
|||
], [ |
|||
ac_result=1 |
|||
AC_MSG_RESULT(yes) |
|||
],[ |
|||
ac_result=0 |
|||
AC_MSG_RESULT(no) |
|||
], [ |
|||
ac_result=0 |
|||
AC_MSG_RESULT(no) |
|||
]) |
|||
CPPFLAGS=$old_CPPFLAGS |
|||
AC_DEFINE_UNQUOTED(HAVE_PACKED_OBJECT_VALUE, $ac_result, [Whether struct _zend_object_value is packed]) |
|||
AC_DEFINE(HAVE_SPL, 1, [Whether you want SPL (Standard PHP Library) support]) |
|||
PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c, no,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1) |
|||
PHP_INSTALL_HEADERS([ext/spl], [php_spl.h spl_array.h spl_directory.h spl_engine.h spl_exceptions.h spl_functions.h spl_iterators.h spl_observer.h spl_dllist.h spl_heap.h spl_fixedarray.h]) |
|||
|
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue