You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.3 KiB

  1. From 8158548a80733b3af9539356b47527d960a13287 Mon Sep 17 00:00:00 2001
  2. From: Michael Wallner <mike@php.net>
  3. Date: Thu, 1 Feb 2018 14:36:09 +0100
  4. Subject: [PATCH] fix #73
  5. include idna.h prior idn2.h to ensure INDA_H is defined and libidn2 does
  6. not try to define the idna compat layer
  7. ---
  8. src/php_http.c | 6 +++---
  9. src/php_http_url.c | 6 +++---
  10. 2 files changed, 6 insertions(+), 6 deletions(-)
  11. diff --git a/src/php_http.c b/src/php_http.c
  12. index 207c248..bc9166a 100644
  13. --- a/src/php_http.c
  14. +++ b/src/php_http.c
  15. @@ -31,12 +31,12 @@
  16. #if PHP_HTTP_HAVE_LIBICU
  17. # include <unicode/uversion.h>
  18. #endif
  19. -#if PHP_HTTP_HAVE_LIBIDN2
  20. -# include <idn2.h>
  21. -#endif
  22. #if PHP_HTTP_HAVE_LIBIDN
  23. # include <idna.h>
  24. #endif
  25. +#if PHP_HTTP_HAVE_LIBIDN2
  26. +# include <idn2.h>
  27. +#endif
  28. #if PHP_HTTP_HAVE_LIBIDNKIT2 || PHP_HTTP_HAVE_LIBIDNKIT
  29. #include "idn/version.h"
  30. #endif
  31. diff --git a/src/php_http_url.c b/src/php_http_url.c
  32. index 029e6a8..361e61c 100644
  33. --- a/src/php_http_url.c
  34. +++ b/src/php_http_url.c
  35. @@ -12,12 +12,12 @@
  36. #include "php_http_api.h"
  37. -#if PHP_HTTP_HAVE_LIBIDN2
  38. -# include <idn2.h>
  39. -#endif
  40. #if PHP_HTTP_HAVE_LIBIDN
  41. # include <idna.h>
  42. #endif
  43. +#if PHP_HTTP_HAVE_LIBIDN2
  44. +# include <idn2.h>
  45. +#endif
  46. #if PHP_HTTP_HAVE_LIBICU
  47. # include <unicode/uidna.h>
  48. #endif
  49. --
  50. 2.7.4