File php5-no-reentrant-crypt.patch of Package php5.openSUSE_Leap_42.1_Update

Index: ext/standard/crypt.c
===================================================================
--- ext/standard/crypt.c.orig
+++ ext/standard/crypt.c
@@ -247,6 +247,16 @@ PHPAPI int php_crypt(const char *passwor
 			return SUCCESS;
 		}
 	}
+# else
+        {
+		crypt_res = crypt(password, salt);
+		if (!crypt_res) {
+			return FAILURE;
+		} else {
+			*result = estrdup(crypt_res);
+			return SUCCESS;
+		}
+	}
 # endif
 #endif
 }
openSUSE Build Service is sponsored by