mirror of
https://github.com/php/php-src.git
synced 2026-03-27 01:32:22 +01:00
update news
This commit is contained in:
3
NEWS
3
NEWS
@@ -2,6 +2,9 @@ PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? 20?? PHP 5.4.36
|
||||
|
||||
- Core:
|
||||
. Upgraded crypt_blowfish to version 1.3. (Leigh)
|
||||
|
||||
13 Nov 2014 PHP 5.4.35
|
||||
|
||||
- Core:
|
||||
|
||||
@@ -204,7 +204,7 @@ PHP_FUNCTION(crypt)
|
||||
salt[salt_in_len] = '\0';
|
||||
|
||||
crypt_res = php_sha512_crypt_r(str, salt, output, needed);
|
||||
if (!crypt_res) {
|
||||
if (!crypt_res || (salt[0]=='*' && salt[1]=='0')) {
|
||||
if (salt[0]=='*' && salt[1]=='0') {
|
||||
RETVAL_STRING("*1", 1);
|
||||
} else {
|
||||
@@ -227,7 +227,7 @@ PHP_FUNCTION(crypt)
|
||||
salt[salt_in_len] = '\0';
|
||||
|
||||
crypt_res = php_sha256_crypt_r(str, salt, output, needed);
|
||||
if (!crypt_res) {
|
||||
if (!crypt_res || (salt[0]=='*' && salt[1]=='0')) {
|
||||
if (salt[0]=='*' && salt[1]=='0') {
|
||||
RETVAL_STRING("*1", 1);
|
||||
} else {
|
||||
@@ -251,7 +251,7 @@ PHP_FUNCTION(crypt)
|
||||
memset(output, 0, PHP_MAX_SALT_LEN + 1);
|
||||
|
||||
crypt_res = php_crypt_blowfish_rn(str, salt, output, sizeof(output));
|
||||
if (!crypt_res) {
|
||||
if (!crypt_res || (salt[0]=='*' && salt[1]=='0')) {
|
||||
if (salt[0]=='*' && salt[1]=='0') {
|
||||
RETVAL_STRING("*1", 1);
|
||||
} else {
|
||||
@@ -267,7 +267,7 @@ PHP_FUNCTION(crypt)
|
||||
_crypt_extended_init_r();
|
||||
|
||||
crypt_res = _crypt_extended_r(str, salt, &buffer);
|
||||
if (!crypt_res) {
|
||||
if (!crypt_res || (salt[0]=='*' && salt[1]=='0')) {
|
||||
if (salt[0]=='*' && salt[1]=='0') {
|
||||
RETURN_STRING("*1", 1);
|
||||
} else {
|
||||
@@ -291,7 +291,7 @@ PHP_FUNCTION(crypt)
|
||||
# error Data struct used by crypt_r() is unknown. Please report.
|
||||
# endif
|
||||
crypt_res = crypt_r(str, salt, &buffer);
|
||||
if (!crypt_res) {
|
||||
if (!crypt_res || (salt[0]=='*' && salt[1]=='0')) {
|
||||
if (salt[0]=='*' && salt[1]=='0') {
|
||||
RETURN_STRING("*1", 1);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user