Req #55036 [NEW]: Have crypt() throw E_WARNING when salt parameter missing
From:
Operating system:
PHP version: Irrelevant
Package: *Encryption and hash functions
Bug Type: Feature/Change Request
Bug description:Have crypt() throw E_WARNING when salt parameter missing
Description:
------------
Currently, you can call crypt('foo') without any problems, however, given
how
useless that is for anything, it's a security risk if someone was actually
to do
this.
Test script:
---------------
<?php
crypt('foo');
Expected result:
----------------
Warning: crypt() expects at least 2 parameters, 1 given
Actual result:
--------------
Works fine
--
Edit bug report at http://bugs.php.net/bug.php?id=55036&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=55036&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=55036&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=55036&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=55036&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=55036&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=55036&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=55036&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=55036&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=55036&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=55036&r=support
Expected behavior: http://bugs.php.net/fix.php?id=55036&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=55036&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=55036&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=55036&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=55036&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=55036&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=55036&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=55036&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=55036&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=55036&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=55036&r=mysqlcfg
Thread (4 messages)
- ss23 at ss23 dot geek dot nz