summaryrefslogtreecommitdiff
path: root/ext/standard/crypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/crypt.c')
-rw-r--r--ext/standard/crypt.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c
index 3cc610c502..ee117e1429 100644
--- a/ext/standard/crypt.c
+++ b/ext/standard/crypt.c
@@ -115,13 +115,11 @@ static void php_to64(char *s, long v, int n) {
v >>= 6;
}
}
-#endif /* HAVE_CRYPT */
/* {{{ proto string crypt(string str [, string salt])
Encrypt a string */
PHP_FUNCTION(crypt)
{
-#if HAVE_CRYPT
char salt[PHP_MAX_SALT_LEN+1];
pval **arg1, **arg2;
@@ -178,11 +176,9 @@ PHP_FUNCTION(crypt)
return_value->value.str.len = strlen(return_value->value.str.val);
return_value->type = IS_STRING;
pval_copy_constructor(return_value);
-#else
- PHP_NOT_IN_THIS_BUILD();
-#endif /* HAVE_CRYPT */
}
/* }}} */
+#endif