php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7214 crypt with only one parameter doesn't work.
Submitted: 2000-10-14 19:56 UTC Modified: 2000-11-03 12:21 UTC
From: bjoern at baer dot main dot de Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0 Latest CVS (14/10/2000) OS: FreeBSD 3.3
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bjoern at baer dot main dot de
New email:
PHP Version: OS:

 

 [2000-10-14 19:56 UTC] bjoern at baer dot main dot de
In my application, I use:

<?php
   $pw = crypt($userpw);

?>

Considering to the manual, PHP should create a random salt on its own. But obviously it doesn't because my application breaks and I get "this document contains no data". If I write:

<?php
  $pw = crypt($userpw,"foo");
?>

everything works fine. :-(

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-26 07:36 UTC] bjoern at baer dot main dot de
Does nobody use PHP4 with FreeBSD?
 [2000-11-03 12:21 UTC] sniper@php.net
This should be fixed now in CVS.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 08:01:28 2024 UTC