PHP 4.0 Bug #3323: mcrypt inserting extra null values into string
| From: | peter at knowpost dot com | Date: | Wed, 26 Jan 2000 20:24:02 +0000 |
| Subject: | PHP 4.0 Bug #3323: mcrypt inserting extra null values into string | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14937@lists.php.net to get a copy of this message | ||
From: peter@knowpost.com
Operating system: Debian/2.2
PHP version: 4.0 Latest CVS (26/01/2000)
PHP Bug Type: mcrypt related
Bug description: mcrypt inserting extra null values into string
In netscape (and telnet) the following code:
<?php echo "This is a test " . mcrypt(MCRYPT_RC6, "SECRET KEY",
mcrypt_ecb(MCRYPT_RC6, "SECRET KEY", "string", MCRYPT_ENCRYPT), MCRYPT_DECRYPT)
. " lets see if it works."; ?>
produces the output:
This is a test string
instead of the expected:
This is a test string lets see if it works.
Strangely enough, the full string appears in Internet explorer. In my experience this points to a
null value in the middle of the string.
PHP compiled with:
./configure --with-mysql --with-apxs=/usr/apache/bin/apxs --enable-trans-sid --enable-track-vars
--with-mcrypt --with-aspell --with-mm --enable-inline-optimization
--with-xml=/home/kovacsp/src/expat
Using apache 1.3.9