]> granicus.if.org Git - php/commitdiff
Disable function call under address sanitizer
authorAnatol Belski <ab@php.net>
Sun, 11 Mar 2018 21:54:10 +0000 (22:54 +0100)
committerAnatol Belski <ab@php.net>
Sun, 11 Mar 2018 22:08:27 +0000 (23:08 +0100)
AddressSanitizer seems not to function properly with suppressions. The
default value is still sufficient for test, thus unblock testing by
disabling the function call under AddressSanitizer.

ext/opcache/ZendAccelerator.c

index 2061a343285a2f97fd78bbce24531dfdd2f3d8e1..ac781afd89c1f56278eeaf98851d2173ba62ac5b 100644 (file)
@@ -2705,7 +2705,9 @@ static int accel_startup(zend_extension *extension)
 #endif
 
 #ifdef ZEND_WIN32
+# if !defined(__has_feature) || !__has_feature(address_sanitizer)
        _setmaxstdio(2048); /* The default configuration is limited to 512 stdio files */
+# endif
 #endif
 
        if (start_accel_module() == FAILURE) {