]> granicus.if.org Git - php/commitdiff
added appropriate exception handling flag to ext\intl
authorAnatol Belski <ab@php.net>
Fri, 17 Jan 2014 10:03:40 +0000 (11:03 +0100)
committerAnatol Belski <ab@php.net>
Fri, 17 Jan 2014 10:03:40 +0000 (11:03 +0100)
According to the doc page
http://msdn.microsoft.com/en-us/library/1deeycx5.aspx
it's appropriate as none of the extern C functions do throw
exceptions. This also fixes the warning C4530.

ext/intl/config.w32

index bb1dca8124a5aadf4c83fdbeb3d3b3c73eb01b89..22cde6bd6d950bb9a44290c79f5d12d0ed1df5aa 100644 (file)
@@ -118,6 +118,7 @@ if (PHP_INTL != "no") {
                                "intl");
                
                ADD_FLAG("LIBS_INTL", "icudt.lib icuin.lib icuio.lib icule.lib iculx.lib");
+               ADD_FLAG("CFLAGS_INTL", "/EHsc");
                AC_DEFINE("HAVE_INTL", 1, "Internationalization support enabled");
        } else {
                WARNING("intl not enabled; libraries and/or headers not found");