|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-09-10 00:05 UTC] gallen at valere dot net
BTW, The crypt function works fine in FreeBSD 4.0 with/4.0.2
GDB Output
-----------
Program received signal SIGFPE, Arithmetic exception.
0x282d1139 in php_if_crypt (ht=1, return_value=0x81038cc, this_ptr=0x0,
return_value_used=1) at crypt.c:153
153 srand48((unsigned int) time(0) * getpid() * (php_combine---Type <return> to continue, or
q <return> to quit---
d_lcg() * 10000.0));
(gdb) bt
#0 0x282d1139 in php_if_crypt (ht=1, return_value=0x81038cc, this_ptr=0x0,
return_value_used=1) at crypt.c:153
#1 0x2826c22a in execute (op_array=0x812568c) at ./zend_execute.c:1519
#2 0x282785db in zend_execute_scripts (type=8, file_count=3) at zend.c:712
#3 0x28287324 in php_execute_script (primary_file=0xbfbfda40) at main.c:1173
#4 0x282841b9 in apache_php_module_main (r=0x8132034, display_source_mode=0)
at sapi_apache.c:89
#5 0x28284a71 in send_php (r=0x8132034, display_source_mode=0, filename=0x0)
at mod_php4.c:503
#6 0x28284aa4 in send_parsed_php (r=0x8132034) at mod_php4.c:514
#7 0x805371f in ap_invoke_handler ()
#8 0x8066401 in process_request_internal ()
#9 0x8066460 in ap_process_request ()
#10 0x805dda9 in child_main ()
#11 0x805df34 in make_child ()
#12 0x805e08f in startup_children ()
#13 0x805e640 in standalone_main ()
#14 0x805ee9f in main ()
#15 0x804e881 in _start ()
Configure
----------
CPPFLAGS="-I/usr/local/include/gd/ -I/usr/local/BerkeleyDB.3.1/include/" \
LDFLAGS=-L/usr/local/BerkeleyDB.3.1/lib/ \
./configure --with-apxs=/usr/local/www/bin/apxs \
--disable-debug \
--with-pgsql=/usr/home/pgsql \
--with-xml \
--enable-track-vars \
--enable-trans-sid \
--with-db3=/usr/local/BerkeleyDB.3.1 \
--with-mcrypt \
--enable-ftp
HTML
----
<html>
<head>
<title>test crypt</title>
</head>
<body>
<?php
echo "Current PHP version: ".phpversion()."<br>";
$rc = crypt("password");
echo "rc=$rc<br>\n";
echo phpinfo();
?>
</body>
</html>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 10:00:02 2025 UTC |
This patch (listed under #7617) fixes the FPE problem in FreeBSD 3.4: Change line 109 in crypt.c to: srand48((long)time(0) * (long)getpid() * (long)(php_combined_lcg()*(double)10000.0));