Doc #54769 [Opn->Wfx]: Too much optional parameters in w32api_deftype()
| From: | salathe@php.net | Date: | Thu, 19 May 2011 12:11:30 +0000 |
| Subject: | Doc #54769 [Opn->Wfx]: Too much optional parameters in w32api_deftype() | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6587@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54769&edit=1
ID: 54769
Updated by: salathe@php.net
Reported by: gwarnants at gmail dot com
Summary: Too much optional parameters in w32api_deftype()
-Status: Open
+Status: Wont fix
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: salathe
Block user comment: N
Private report: N
New Comment:
The trailing parameters should be in pairs of $memberN_type and
$memberN_name.
Here having two $... makes sense.
Also, as with your earlier rand() bug [1] we cannot make the prototype
be like
bool w32api_deftype ( string $typename , string $member1_type ,
string
$member1_name [, string $..., string $...] )
[1] http://bugs.php.net/bug.php?id=54746
Previous Comments:
------------------------------------------------------------------------
[2011-05-17 10:43:08] gwarnants at gmail dot com
Description:
------------
---
From manual page:
http://www.php.net/function.w32api-deftype#Description
---
There is no reason the extra argument "..." to be written twice in the
function protoype. Once is clear enough.
Regards,
Geoffray
Expected result:
----------------
bool w32api_deftype ( string $typename , string $member1_type , string
$member1_name [, string $... ] )
Actual result:
--------------
bool w32api_deftype ( string $typename , string $member1_type , string
$member1_name [, string $... [, string $... ]] )
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54769&edit=1