php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12791 mcrypt doesnt work in 4.0.7 rc1 by this code
Submitted: 2001-08-16 09:00 UTC Modified: 2001-09-07 05:36 UTC
From: alberty at neptunlabs dot de Assigned:
Status: Closed Package: mcrypt related
PHP Version: 4.0CVS-2001-08-16 OS: i686-pc-linux-gnu
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alberty at neptunlabs dot de
New email:
PHP Version: OS:

 

 [2001-08-16 09:00 UTC] alberty at neptunlabs dot de
Hi all,

mcrypt doesnt work in 4.0.7 with the following code:

the following code produce a 
<b>Warning</b>:  Unknown list entry type in request shutdown (0) in 

---<PHP>---
function cipherx_stream(){
	$td = @mcrypt_module_open (MCRYPT_ARCFOUR , "", MCRYPT_MODE_STREAM, "");
}
$xyz=cipherx_stream();
---</PHP>---



if you use this, PHP crashes:

---<PHP>---
function cipherx_stream(){
	$td = @mcrypt_module_open (MCRYPT_ARCFOUR , "", MCRYPT_MODE_STREAM, "");
	if ($td) mcrypt_generic_end ($td);
}
$xyz=cipherx_stream();
---</PHP>---


PHP 4.0.6 work fine with the first code, but it crashes also
with the second :-(

Regards,

-- 
Steve

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-16 09:13 UTC] derick@php.net
I suppose this has something to do with the latest fixed to the ZTS mode of the module.
However, I've no time to check this out myself at the moment.
 [2001-09-07 05:36 UTC] derick@php.net
The "<b>Warning</b>:  Unknown list entry type in request shutdown (0) in" bug has been fixed in CVS.
The segfault is a bug in libmcrypt, and has been reported to the author.

Derick
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 17:01:30 2025 UTC