php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79848 crypt - deprecation notice for short salts has disappeared
Submitted: 2020-07-13 12:08 UTC Modified: 2020-07-13 12:47 UTC
From: sjon@php.net Assigned:
Status: Not a bug Package: *Encryption and hash functions
PHP Version: 8.0.0alpha2 OS: archLinux
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sjon@php.net
New email:
PHP Version: OS:

 

 [2020-07-13 12:08 UTC] sjon@php.net
Description:
------------
Originally found as https://3v4l.org/vTLSi

Test script:
---------------
crypt('84.193.76.32', 't');

Expected result:
----------------
Deprecated: crypt(): Supplied salt is not valid for DES. Possible bug in provided salt format. in /in/vTLSi on line 1

Actual result:
--------------
no deprecation notice

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-13 12:11 UTC] sjon@php.net
-Operating System: +Operating System: archLinux
 [2020-07-13 12:47 UTC] nikic@php.net
-Status: Open +Status: Not a bug
 [2020-07-13 12:47 UTC] nikic@php.net
That's because the deprecated functionality has been removed, as documented at https://github.com/php/php-src/blob/0cab3fa10eb1a2d15a2c27fe879c1c0398b7245a/UPGRADING#L457-L459.

In this particular example, it so happens that the call already failed on previous versions, in which case the deprecation warning probably shouldn't have been emitted in the first place.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 14:01:30 2024 UTC