From:             
Operating system: Ubuntu 9.04 x64
PHP version:      5.3.2
Package:          Strings related
Bug Type:         Bug
Bug description:crypt() function hangs after 3rd call

Description:
------------
When calling crypt() function more than once, it hangs after third call to
it.



Configure parameters:



$ php -i | grep configure

Configure Command =>  './configure'  '--enable-bcmath' '--enable-soap'
'--with-

pgsql' '--with-ldap' '--enable-sqlite-utf8' '--with-apxs2=/usr/bin/apxs2'
'--

prefix=/usr/local' '--with-pdo-mysql' '--with-config-file-path=/etc/httpd'
'--

with-openssl=/usr' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd'
'--with-pdo-

mysql=mysqlnd' '--enable-zip' '--localstatedir=/var' '--enable-ftp'
'--with-

jpeg-dir=/usr' '--with-gd' '--enable-sockets' '--with-zlib-dir=/usr'
'--with-

xmlrpc' '--enable-mbstring=all' '--with-iconv' '--with-gettext' '--with-

imap=/usr' '--with-imap-ssl=/usr' '--with-curl' '--with-mcrypt=/usr/local'
'--

with-freetype-dir=/usr/include/freetype2' '--enable-gd-native-ttf'
'--with-

mssql' '--with-snmp' '--with-kerberos' '--enable-maintainer-zts'
'--enable-

pcntl'



Compiled in and loaded modules (from get_loaded_extensions()): Core, date,
ereg, 

libxml, openssl, pcre, sqlite3, zlib, bcmath, ctype, curl, dom, fileinfo, 

filter, ftp, gd, gettext, hash, iconv, session, json, ldap, mbstring,
mcrypt, 

mssql, standard, SPL, pcntl, PDO, mysqlnd, pdo_sqlite, pgsql, Phar, posix,


Reflection, pdo_mysql, SimpleXML, snmp, soap, sockets, mysqli, SQLite,
imap, 

tokenizer, xml, xmlreader, xmlrpc, xmlwriter, zip, mysql

Test script:
---------------
<?php

echo "#1: " . crypt('MUrGtL', 'AB') . "\n"; 

echo "#2: " . crypt('MUrGtL', 'AB') . "\n"; 

echo "#3: " . crypt('MUrGtL', 'AB') . "\n"; 

?>

Expected result:
----------------
$ php crypt.php

#1: ABcghTMliojv2

#2: ABcghTMliojv2

#3: ABcghTMliojv2

$ 

Actual result:
--------------
#  php crypt.php

#1: ABcghTMliojv2

#2: ABcghTMliojv2

-- 
Edit bug report at http://bugs.php.net/bug.php?id=51424&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=51424&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=51424&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=51424&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=51424&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51424&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=51424&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=51424&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=51424&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=51424&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=51424&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=51424&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=51424&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=51424&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=51424&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51424&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51424&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=51424&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=51424&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=51424&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=51424&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=51424&r=mysqlcfg

Reply via email to