php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch php-5.4.21.patch.solaris_atomic for Compile Failure Bug #66017Patch version 2013-11-01 21:46 UTC Return to Bug #66017 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: Pete_Wall@symantec.com*** ext/standard/php_crypt_r.c 2013-11-01 15:50:03.189855000 -0500 --- ext/standard/php_crypt_r.c.new 2013-11-01 16:34:59.442308000 -0500 *************** *** 82,88 **** #ifdef PHP_WIN32 LONG volatile initialized = 0; #elif defined(HAVE_ATOMIC_H) /* Solaris 10 defines atomic API within */ ! volatile unsigned int initialized = 0; #else static volatile sig_atomic_t initialized = 0; #endif --- 82,88 ---- #ifdef PHP_WIN32 LONG volatile initialized = 0; #elif defined(HAVE_ATOMIC_H) /* Solaris 10 defines atomic API within */ ! volatile uint32_t initialized = 0; #else static volatile sig_atomic_t initialized = 0; #endif *************** *** 97,104 **** #elif defined(HAVE_SYNC_FETCH_AND_ADD) __sync_fetch_and_add(&initialized, 1); #elif defined(HAVE_ATOMIC_H) /* Solaris 10 defines atomic API within */ ! membar_producer(); ! atomic_add_int(&initialized, 1); #endif _crypt_extended_init(); } --- 97,103 ---- #elif defined(HAVE_SYNC_FETCH_AND_ADD) __sync_fetch_and_add(&initialized, 1); #elif defined(HAVE_ATOMIC_H) /* Solaris 10 defines atomic API within */ ! atomic_add_32(&initialized, 1); #endif _crypt_extended_init(); } |
Copyright © 2001-2025 The PHP Group All rights reserved. |
Last updated: Tue Jan 07 01:01:29 2025 UTC |