php.net |  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
 [2012-06-20 17:35 UTC] amvapor at gmail dot com
Description:
------------
http://www.php.net/manual/en/mcrypt.examples.php

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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-19 18:13 UTC] googleguy@php.net
-Assigned To: +Assigned To: googleguy
 [2012-07-19 18:47 UTC] googleguy@php.net
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] googleguy@php.net
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 
https://github.com/srgoogleguy/php-
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] googleguy@php.net
Automatic comment from SVN on behalf of googleguy
Revision: http://svn.php.net/viewvc/?view=revision&revision=327054
Log: Removed example of deprecated function mcrypt_ecb, which also fixes bug #62374
 [2012-08-11 03:32 UTC] googleguy@php.net
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
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

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

https://github.com/php/php-src/commit/29a0efccef0ea3843e1b68546bdc255d5b901746

Example removed from documentation.
 [2012-08-11 03:32 UTC] googleguy@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 01 09:05:52 2022 UTC