#28905 [NoF->Opn]: Cracklib crack_check does not accept resource from crack_opendict

From: Date: Sun, 13 Mar 2005 21:06:42 +0000
Subject: #28905 [NoF->Opn]: Cracklib crack_check does not accept resource from crack_opendict
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-77245@lists.php.net to get a copy of this message
ID: 28905 Updated by: skettler@php.net Reported By: screen at brainkrash dot com -Status: No Feedback +Status: Open Bug Type: Unknown/Other Function Operating System: Win32/Linux PHP Version: 4.3.6 New Comment: Could you please try installing the crack extension from pecl? Previous Comments: ------------------------------------------------------------------------ [2005-02-11 01:00:13] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2005-02-03 05:03:54] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2004-07-25 00:16:34] phpbugs dot 20 dot nky at spamgourmet dot com I get it too.. PHP Version => 4.3.8 sys-libs/cracklib-2.7-r8 # md5sum /usr/lib/cracklib_dict.hwm 94ab9cf6af519cbd9467353082453e80 /usr/lib/cracklib_dict.hwm strace: ----- open("/usr/lib/cracklib_dict.pwd", O_RDONLY) = 3 open("/usr/lib/cracklib_dict.pwi", O_RDONLY) = 7 open("/usr/lib/cracklib_dict.hwm", O_RDONLY) = 8 fstat64(7, {st_mode=S_IFREG|0644, st_size=77356, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000 read(7, "1Vwp|\270\4\0\20\0\0\0\0\0\0\0@\0\0\0\206\0\0\0\350\0\0"..., 4096) = 4096 fstat64(8, {st_mode=S_IFREG|0644, st_size=1024, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 read(8, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 1024 write(1, "\nWarning: crack_check(): 308 is "..., 139) = 139 ----- ------------------------------------------------------------------------ [2004-07-16 23:46:14] sheltren at cs dot ucsb dot edu I can confirm this bug on a Fedora Core 2 system. Using the older crack.c file (from php 4.3.4) eliminates the error, and cracklib works as expected as above. ------------------------------------------------------------------------ [2004-07-16 11:03:00] jocke at blajj dot net Well, well... I compiled PHP 4.3.8 with the old version of ext/crack/crack.c (version 1.18.8.2 from PHP 4.3.4), and YES, it works! ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28905 -- Edit this bug report at http://bugs.php.net/?id=28905&edit=1

« previous php.bugs (#77245) next »