PHP 4.0 Bug #7214: crypt with only one parameter doesn't work.
| From: | bjoern at baer dot main dot de | Date: | Sat, 14 Oct 2000 23:56:19 +0000 |
| Subject: | PHP 4.0 Bug #7214: crypt with only one parameter doesn't work. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35025@lists.php.net to get a copy of this message | ||
From: bjoern@baer.main.de
Operating system: FreeBSD 3.3
PHP version: 4.0 Latest CVS (14/10/2000)
PHP Bug Type: *General Issues
Bug description: crypt with only one parameter doesn't work.
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. :-(
--
Edit Bug report at: http://bugs.php.net/?id=7214&edit=1