php.net |  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
 [2009-12-09 13:12 UTC] vipnambiar at rediffmail dot com
Description:
------------
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 

<?php
$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




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-09 13:30 UTC] pajoye@php.net
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-2018 The PHP Group
All rights reserved.
Last updated: Fri Sep 21 19:01:25 2018 UTC