Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2000101

[PHP-DEV] PHP 4.0 Bug #7214: crypt with only one parameter doesn't work. From: bjoern <email protected>
Date: 10/14/00

From: bjoern <email protected>
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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>