Doc #73557 [Opn->Nab]: Typo error
| From: | requinix@php.net | Date: | Thu, 17 Nov 2016 20:17:14 +0000 |
| Subject: | Doc #73557 [Opn->Nab]: Typo error | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14117@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73557&edit=1
ID: 73557
Updated by: requinix@php.net
Reported by: krishna dot mondeddu at gmail dot com
Summary: Typo error
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
PHP Version: 7.0.13
Block user comment: N
Private report: N
New Comment:
That would mean
password_hash($password, $algo,)
is valid syntax. It is not.
Putting the comma inside the brackets is common practice in all programming documentation - not just
PHP's.
Previous Comments:
------------------------------------------------------------------------
[2016-11-17 20:12:06] krishna dot mondeddu at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.password-hash
---
password_hash document syntax has typo error.
string password_hash ( string $password , integer $algo [, array $options ] )
should be like
string password_hash ( string $password , integer $algo , [ array $options ] )
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73557&edit=1