diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-02-13 17:54:23 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-02-13 17:54:23 +0400 |
commit | 40e053e7f333b5fc3f4c75c964600666810cc969 (patch) | |
tree | 3436d014c44e3eab00107e67b10229ec0262dbb6 /ext/standard/crypt.c | |
parent | 6306918ed2c9d87cf5fadc62d210a797a794926e (diff) | |
download | php-git-40e053e7f333b5fc3f4c75c964600666810cc969.tar.gz |
Use better data structures (incomplete)
Diffstat (limited to 'ext/standard/crypt.c')
-rw-r--r-- | ext/standard/crypt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index 3419f09dd7..c789a3593d 100644 --- a/ext/standard/crypt.c +++ b/ext/standard/crypt.c @@ -295,12 +295,13 @@ PHP_FUNCTION(crypt) if (php_crypt(str, str_len, salt, salt_in_len, &result) == FAILURE) { if (salt[0] == '*' && salt[1] == '0') { - RETURN_STRING("*1", 1); + RETURN_STRING("*1"); } else { - RETURN_STRING("*0", 1); + RETURN_STRING("*0"); } } - RETURN_STRING(result, 0); +//??? RETURN_STRING(result, 0); + RETURN_STRING(result); } /* }}} */ #endif |