Re: Protos and display

From: Date: Wed, 02 Jul 2003 14:03:06 +0000
Subject: Re: Protos and display
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969355000@lists.php.net to get a copy of this message
> It seems like we have a problem with the proto's constructions : > > From php.net/manual/en/function.dba-fetch.php : > string *dba_fetch* ( string key [, int skip, resource handle]) > > From /en/reference/dba/functions/dba-fetch.xml : > > > <methodparam><type>string</type><parameter>key</parameter></methodparam> > <methodparam > > choice="opt"><type>int</type><parameter>skip</parameter></methodparam> > > <methodparam><type>resource</type><parameter>handle</parameter></methodparam > > > As you may notice here : > > http://cvs.php.net/co.php/php-src/ext/dba/dba.c?login=2&r=1.96 > the XML file seems okay. > > two questions : > > - is there a 'hack' available to have the good display ? > - why the hell do we have an optionnal argument between two needed ones ? The display is based on the PHP rule, which means that if a parameter is optional, the additional parameters are also optional. There should not be a PHP funciton with a proto, where some parameter not on the end of the param list is optional... ;(( Goba

« previous php.doc (#969355000) next »