Doc #61888 [Asn->Csd]: crypt() should be documented as not binary safe
| From: | cmb@php.net | Date: | Wed, 09 Jan 2019 18:06:13 +0000 |
| Subject: | Doc #61888 [Asn->Csd]: crypt() should be documented as not binary safe | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16310@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61888&edit=1
ID: 61888
Updated by: cmb@php.net
Reported by: M8R-11ccwk at mailinator dot com
Summary: crypt() should be documented as not binary safe
-Status: Assigned
+Status: Closed
Type: Documentation Problem
Package: Strings related
PHP Version: Irrelevant
Assigned To: girgias
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2019-01-09 18:00:03] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=346579
Log: Fix #61888: crypt() should be documented as not binary safe
------------------------------------------------------------------------
[2019-01-01 21:01:14] girgias@php.net
The following patch has been added/updated:
Patch Name: patch-crypt-not-binary-safe-warning
Revision: 1546376474
URL: https://bugs.php.net/patch-display.php?bug=61888&patch=patch-crypt-not-binary-safe-warning&revision=1546376474
------------------------------------------------------------------------
[2012-05-01 13:10:54] M8R-11ccwk at mailinator dot com
Description:
------------
http://www.php.net/manual/en/function.crypt.php
I understand that crypt() must not be binary safe in order to maintain
compatibility with other implementations, but it should be clearly stated in the
crypt() documentation, since it might lead to unexpected results (for example,
when feeding raw bytes directly into crypt()).
Test script:
---------------
For example, this two lines generate the same output, which is correct, but can be confusing:
echo crypt("aaa", '$2a$07$usesomesillystringforsalt$');
echo crypt("aaa\x00aa", '$2a$07$usesomesillystringforsalt$');
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61888&edit=1