Re: Re: Mcrypt fails to run

From: Date: Fri, 13 Jul 2001 07:51:43 +0000
Subject: Re: Re: Mcrypt fails to run
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57694@lists.php.net to get a copy of this message
Gigi pressed the little lettered thingies in this order... > Hi, > > Try upgrading to 4.0.6. I think there are known pb with 4.0.4 and mcrypt. > Regards, > > --Gildas. > > -- > /-----------------------------*-----------------------------\ > | Systèmes & Technologies | Tél: +33 2 96438787 | > | Informatiques du Ponant | Fax: +33 2 96438788 | > | 27, rue Auguste Brizeux | email: gildas@stip.fr | > | 22200 Guingamp - France | web: http://www.stip.fr | > \-----------------------------*-----------------------------/ > "Dixie Flatline" <flatliner@freemail.hu> a écrit dans le message news: > 20010710221518.4522.qmail@pb1.pair.com... > Greetings! > > I'm running > Debian Potato 2.2.19 with php 4.0.4-pl1. I'd recently compiled > an > Mcrypt.so module, then added the extension line into my php.ini file. > > After reloading Apache and trying to run any php script which includes ANY > > mcrypt related function, the code immediately halts and no output is > given. > There aren't any errors in my log files, so I don't know what > could be the > problem :(. > > I'm using libmcrypt 2.4.15 and MCrypt 2.5.7. > > > Best Regards, > > Dixie Flatline > > > > If this is the same problem that I ran into, you can fix it with a re- compile of php. Before compiling, go into the file: ext/standard/crypt.c and change line 109 to: srand48((long)time(0) * (long)getpid() * (long)(php_combined_lcg()*(double)10000.0)); You should check your server log files. If httpd is core dumping when you run mycrypt commands, then this is your problem. The fix was documented at bugs.php.net and was incorporated into a later version. When I compiled 4.0.6, I didn't have to make this change. If you're going to recompile anyway, you may as well upgrade. Good luck... Christopher Ostmo a.k.a. tech@AppIdeas.com AppIdeas.com Innovative Application Ideas Meeting cutting edge dynamic web site needs since the dawn of Internet time (1995) Business Applications: http://www.AppIdeas.com/ Open Source Applications: http://open.AppIdeas.com/

« previous php.general (#57694) next »