ID:               19804
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Bogus
+Status:           Open
 Bug Type:         *Compile Issues
 Operating System: AIX 4.3.3
 PHP Version:      4.2.3
 New Comment:

Re-opening bug cause I'm waiting for a response to the last comment I
posted.  Then you can close the bug after that.


Previous Comments:
------------------------------------------------------------------------

[2002-10-08 12:56:35] [EMAIL PROTECTED]

Since the php.ini does nothing, I did find something interesting.  When
I changed the file path in php.ini to the open-source libmcrypt-2.5.3
that had been untarred but not configured or compiled.  Here's what I
did ...

--clip--
mcrypt.algorithms_dir =
/usr/local/src3/libmcrypt-2.5.3/modules/algorithms
mcrypt.modes_dir = /usr/local/src3/libmcrypt-2.5.3/modules/modes
--clip--

This fix my problem with the mcrypt stuffs.  So, I looked into the
files and saw bunch of files that end with *.c and *.h.  So, why does
it work with the open source files but not with the *.la or *.a files
in /usr/local/lib/libmcrypt???  Do you have an explanation or an answer
to this???  I would appreciate it.  I want to know is is it safe for me
to use the open source files??

Thanks!

------------------------------------------------------------------------

[2002-10-08 09:27:59] [EMAIL PROTECTED]

I have this code in php.ini and it does nothing!

--clip--
mcrypt.algorithms_dir = /usr/local/lib/libmcrypt
mcrypt.modes_dir = /usr/local/lib/libmcrypt 
--clip--

------------------------------------------------------------------------

[2002-10-08 09:25:45] [EMAIL PROTECTED]

Again, this is NOT a bug.

Just set the correct paths in php.ini

mcrypt.modules_dir AND mcrypt.algorithms_dir are where your ciphers and
modules are. As you already pasted in your first bugreport, this is
"/usr/local/lib/libmcrypt". You see those files with ls -l ? That are
your ciphers and modes.

Derick

------------------------------------------------------------------------

[2002-10-08 09:21:58] [EMAIL PROTECTED]

Re-opening the bug....

I tried many different ways as the PHP Manual stated and I still get
the error messasges, 'Warning: mcrypt module initialization failed in
....'.  When PHP manual stated about 

"mcrypt_module_open (MCRYPT_DES, '', MCRYPT_MODE_ECB, '')"

I still get the error, so I tried the other examples.

"mcrypt_module_open (MCRYPT_DES, '', MCRYPT_MODE_ECB,
'/usr/lib/mcrypt-modes')"

I still get the error message.  Problme is I have no such directory as
"mcrypt-modes" on the server.  I also assumed that the 2nd parament
refer to "mcrypt-algorithms" since the PHP Manual didn't anything about
the 2nd parameter.

I checked the PHP Info on the server, the 1st clipping showed the
actual result before I add the two lines of code to php.ini.  The 2nd
clipping showed the actual result of hte 2nd line of codes.  (mcrypt
directory).

--clip--
<h2 align="center"><a name="module_mcrypt">mcrypt</a></h2>
<table border="0" cellpadding="3" cellspacing="1" width="600"
bgcolor="#000000" align="center">

<tbody><tr valign="middle" bgcolor="#9999cc"><th>mcrypt
support</th><th>enabled</th></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>version</b></td><td align="left">&gt;=
2.4.x</td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>Supported ciphers</b></td><td
align="left">none</td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>Supported modes</b></td><td
align="left">none</td></tr>
</tbody></table><br>
<table border="0" cellpadding="3" cellspacing="1" width="600"
bgcolor="#000000" align="center">
<tbody><tr valign="middle"
bgcolor="#9999cc"><th>Directive</th><th>Local Value</th><th>Master
Value</th></tr>

<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>mcrypt.algorithms_dir</b><br></td><td
align="center"><i>no value</i></td><td align="center"><i>no
value</i></td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>mcrypt.modes_dir</b><br></td><td
align="center"><i>no value</i></td><td align="center"><i>no
value</i></td></tr>
</tbody></table>
--clip--

--clip--
<h2 align="center"><a name="module_mcrypt">mcrypt</a></h2>
<table border="0" cellpadding="3" cellspacing="1" width="600"
bgcolor="#000000" align="center">

<tbody><tr valign="middle" bgcolor="#9999cc"><th>mcrypt
support</th><th>enabled</th></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>version</b></td><td align="left">&gt;=
2.4.x</td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>Supported ciphers</b></td><td
align="left">none</td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>Supported modes</b></td><td
align="left">none</td></tr>
</tbody></table><br>
<table border="0" cellpadding="3" cellspacing="1" width="600"
bgcolor="#000000" align="center">
<tbody><tr valign="middle"
bgcolor="#9999cc"><th>Directive</th><th>Local Value</th><th>Master
Value</th></tr>

<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>mcrypt.algorithms_dir</b><br></td><td
align="center">/usr/local/lib/libmcrypt</td><td
align="center">/usr/local/lib/libmcrypt</td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>mcrypt.modes_dir</b><br></td><td
align="center">/usr/local/lib/libmcrypt</td><td
align="center">/usr/local/lib/libmcrypt</td></tr>
</tbody></table>
--clip--

This still does not solve my problem.  So, I did hte google search and
came upon someone's PHP Info website and found this if their encryption
function work.

--clip--
<h2 align="center"><a name="module_mcrypt">mcrypt</a></h2>
<table border="0" cellpadding="3" cellspacing="1" width="600"
bgcolor="#000000" align="center">
<tbody><tr valign="middle" bgcolor="#9999cc"><th>mcrypt
support</th><th>enabled</th></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>version</b></td><td align="left">&gt;=
2.4.x</td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>Supported ciphers</b></td><td
align="left">arcfour
blowfish-compat blowfish cast-128 cast-256 des enigma gost loki97
panama
rc2 rijndael-128 rijndael-192 rijndael-256 safer-sk128 safer-sk64
saferplus
serpent threeway tripledes twofish wake xtea </td></tr>

<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>Supported modes</b></td><td align="left">cbc cfb
ecb ncfb nofb ofb stream </td></tr>
</tbody></table><br>
<table border="0" cellpadding="3" cellspacing="1" width="600"
bgcolor="#000000" align="center">
<tbody><tr valign="middle"
bgcolor="#9999cc"><th>Directive</th><th>Local Value</th><th>Master
Value</th></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>mcrypt.algorithms_dir</b><br></td><td
align="center"><i>no value</i></td><td align="center"><i>no
value</i></td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>mcrypt.modes_dir</b><br></td><td
align="center"><i>no value</i></td><td align="center"><i>no
value</i></td></tr>
</tbody></table>
--clip--

Since mine still have no supported ciphers, so it explain why the
php-mycrypt function don't work at all.  I was trying to say that I
have been working on it for almost a week and I can tell that PHP
./configure didn't find it and when compiling PHP, PHP does not take in
hte libmcrypt algorithm.  It only take in libmcrypt but not the
algorithm or modes.  So, I believe I stand correct on this php bug.

------------------------------------------------------------------------

[2002-10-07 14:49:29] [EMAIL PROTECTED]

I have been working on this issues for almost a week now.  I have been
trying to get it to work.  Yes, I did read the manual at php.net/mcrypt
and I still struggle.  I will try again with the manual on
mcrypt_module_open().  What make you think I did not read this stupid
manual?  Thanks for the comment and I will try it again.

------------------------------------------------------------------------

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/19804

-- 
Edit this bug report at http://bugs.php.net/?id=19804&edit=1

Reply via email to