|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62374 Mcrypt examples use depricated functions
Submitted: 2012-06-20 17:35 UTC Modified: 2012-08-11 03:32 UTC
From: amvapor at gmail dot com Assigned: googleguy (profile)
Status: Closed Package: mcrypt related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: amvapor at gmail dot com
New email:
PHP Version: OS:


 [2012-06-20 17:35 UTC] amvapor at gmail dot com

mcrypt_ecb is used in the first example, however it's listed as a deprecated function.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-19 18:13 UTC]
-Assigned To: +Assigned To: googleguy
 [2012-07-19 18:47 UTC]
Currently mcrypt_ecb does not issue an E_DEPRECATED error. The function clearly 
appears to be documented as deprecated, but there is no indication that it has 
been deprecated.

This appears to be a documentation problem. I will review further and fix this to 
reflect the function is not advised rather than deprecated.
 [2012-07-23 02:00 UTC]
Working on resolving this issue completely so that I can update the docs to 
reflect the proper changes. It appears this function was deprecated before PHP 
had E_DEPRECATED level errors. So a patch has been made to get the function 
issuing an E_DEPRECATED level error is in place
src/commit/29a0efccef0ea3843e1b68546bdc255d5b901746 and will update the docs to 
reflect this in the next release.

In the mean time I will remove the example.
 [2012-08-11 03:28 UTC]
Automatic comment from SVN on behalf of googleguy
Log: Removed example of deprecated function mcrypt_ecb, which also fixes bug #62374
 [2012-08-11 03:32 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

The source has been patched for mcrypt_ecb() to issue E_DEPRECATED.

Example removed from documentation.
 [2012-08-11 03:32 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 09:01:28 2024 UTC