Using 2 function prototypes? - was Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml
| From: | Jesus M. Castagnetto | Date: | Mon, 19 Mar 2001 12:40:00 +0000 |
| Subject: | Using 2 function prototypes? - was Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969334742@lists.php.net to get a copy of this message | ||
It could be a good idea to use 2 distinct
funcprototype tags in cases in which the function
changed from PHP 3 to PHP 4.
Looking at the DocBook spec, a funcprototype can only
have one funcdef, and a funcdef can contain #PCDATA.
Also, a funcsynopsis element can contain one or more
funcprototype elements.
So we could use:
<funcsynopsis>
<funcprototype>
<funcdef>
(PHP 3) int <function>unset</function>
</funcdef>
<paramdef>
...
</paramdef>
</funcprototype>
<funcprototype>
<funcdef>
(PHP 4) void <function>unset</function>
</funcdef>
<paramdef>
...
</paramdef>
</funcprototype>
</funcsynopsis>
Opinions/comments?
=====
--- Jesus M. Castagnetto <jmcastagnetto@php.net>
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/