[php-maint] Bug#623220: php5: crypt() function with empty salt returns empty string

Michael Neubert debian at michael-neubert.de
Mon Apr 18 13:04:36 UTC 2011


Package: php5
Version: 5.3.3-7+squeeze1
Severity: normal


Since Debian Squeeze the behaviour of the crypt() function changed.
With an empty second argument (salt), the result is always an empty string
instead of a hash string (see documentation for the crypt() function).

$ php -r 'var_dump(crypt("",""));'
string(0) ""

$ php -r 'var_dump(crypt("test",""));'
string(0) ""

-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5 depends on:
ii  libapache2-mod-php5     5.3.3-7+squeeze1 server-side, HTML-embedded scripti
ii  php5-common             5.3.3-7+squeeze1 Common files for packages built fr

php5 recommends no packages.

php5 suggests no packages.

-- no debconf information





More information about the pkg-php-maint mailing list