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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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: Sun Dec 22 04:01:29 2024 UTC