php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #51424
Patch membar-solaris.patch revision 2010-06-16 22:59 UTC by SRIRAM dot NATARAJAN at GMAIL dot COM
Patch Dead_lock_fix_attempt revision 2010-03-29 11:54 UTC by pajoye@php.net
Patch GDB-backtrace-proper revision 2010-03-29 11:27 UTC by laacz at laacz dot lv
Patch GDB-backtrace revision 2010-03-29 11:13 UTC by laacz at laacz dot lv

Patch Dead_lock_fix_attempt for Strings related Bug #51424

Patch version 2010-03-29 11:54 UTC

Return to Bug #51424 | Download this patch
Patch Revisions:

Developer: pajoye@php.net

Index: ext/standard/php_crypt_r.c
===================================================================
--- ext/standard/php_crypt_r.c	(revision 295072)
+++ ext/standard/php_crypt_r.c	(working copy)
@@ -81,9 +81,7 @@
 	tsrm_mutex_lock(php_crypt_extended_init_lock);
 #endif
 
-	if (initialized) {
-		return;
-	} else {
+	if (!initialized) {
 		_crypt_extended_init();
 		initialized = 1;
 	}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC