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
 [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-2022 The PHP Group
All rights reserved.
Last updated: Fri Jan 28 21:03:34 2022 UTC