|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50426 crypt function not available
Submitted: 2009-12-09 13:12 UTC Modified: 2009-12-09 13:30 UTC
From: vipnambiar at rediffmail dot com Assigned:
Status: Not a bug Package: *Encryption and hash functions
PHP Version: 5.2.11 OS: linux centos
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: vipnambiar at rediffmail dot com
New email:
PHP Version: OS:


 [2009-12-09 13:12 UTC] vipnambiar at rediffmail dot com
recently upgraded php from 4.4 to 5.2.6

configure command
'./configure' '--with-apxs2=/usr/sbin/apxs' '--enable-track-vars' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--with-oci8=/usr/local/oracle92' '--with-mysql' '--with-zlib=/usr' '--with-zlib-dir=/usr/local/lib/' '--with-gd' '--with-png-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib/' '--with-jpeg-dir=/usr/lib/' '--with-curl' 

When i ran the following script 

$password = 'OctaviaAnghel';
$crypt = crypt($password);
echo $crypt;

the following error is displayed.

Fatal error: Call to undefined function crypt() in /home/httpd/htdocs/test.php on line 3


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-09 13:30 UTC]
your libc may not have it then. You can use 5.3 if you like to have full crypt support no matter which operating system you use.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon May 25 09:01:25 2020 UTC