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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vipnambiar at rediffmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 16:01:30 2025 UTC