Doc #62374 [Asn->Csd]: Mcrypt examples use depricated functions
Edit report at https://bugs.php.net/bug.php?id=62374&edit=1
ID: 62374
Updated by: googleguy@php.net
Reported by: amvapor at gmail dot com
Summary: Mcrypt examples use depricated functions
-Status: Assigned
+Status: Closed
Type: Documentation Problem
Package: mcrypt related
PHP Version: Irrelevant
Assigned To: googleguy
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2012-08-11 03:28:20] 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-07-23 02:00:15] 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-07-19 18:47:00] 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-06-20 17:35:47] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62374&edit=1
Thread (4 messages)