php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #66017
Patch php-5.4.21.patch.solaris_atomic revision 2013-11-04 14:57 UTC by Pete_Wall at Symantec dot com
revision 2013-11-01 21:46 UTC by Pete_Wall at symantec dot com

Patch php-5.4.21.patch.solaris_atomic for Compile Failure Bug #66017

Patch version 2013-11-01 21:46 UTC

Return to Bug #66017 | Download this patch
This 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();
  	}
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jan 07 01:01:29 2025 UTC