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
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: 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