ID:          28295
 Updated by:  [EMAIL PROTECTED]
 Reported By: m at bytech dot fi
 Status:      Open
 Bug Type:    Documentation problem
 PHP Version: Irrelevant
 New Comment:

The code for <function> and the TOC in ref.pages is exactly the same,
because the TOC returns:
<function>xpto_func</function> - $title

And then this is parsed by the format_function() function.

This won't be hard to implement. If we agree in the presentation style,
I may implement this.


Previous Comments:
------------------------------------------------------------------------

[2004-05-09 15:07:40] [EMAIL PROTECTED]

Good idea :) It would be nice, if we could modify our presentation code
(DSSSL and livedocs) to put a little [5] sign or something like that
after all the function names that are supported in PHP 5 only. I mean
if we have a <function>php5_magic_function</functoin> then the output
would be php5_magic_function()[5] (with the [5] being some good looking
image or a <sup>-ed text). This would not hide the functions but mark
them in the manual occurances. Also it would be nice to do the same on
the reference TOC pages (which is different rendering code). Anyone
with interest to code this?

------------------------------------------------------------------------

[2004-05-06 11:01:32] m at bytech dot fi

Well, hiding (or highlighting) PHP5 only functions alone would be a
significant improvement. The functional differences between versions
are less important to separate, because whether the functionality is
the same or not the user is already reading the documentation for the
function at that point. And of course, the function is available at
least in some form regardless of the version. 

On the other hand, it's only annoying that the documentation for
strpos() lists functions stripos() and strripos() in the "See also"
part, since they are not available in any form in versions prior to
PHP5.

------------------------------------------------------------------------

[2004-05-06 10:46:33] [EMAIL PROTECTED]

Consider yourself privileged ;-) DocBook is a beast, and we have 30 or
so different languages to maintain!

It would be fairly simple to hide functions that are PHP 5 only, but in
many cases we have features that differ by PHP version; these would be
impossible to parse automatically without some kind of AI that
understands English (and one for each of the other languages).

------------------------------------------------------------------------

[2004-05-06 10:33:34] m at bytech dot fi

I imagine this could initially be done so that the version information
that already exists in the current documentation would be automatically
parsed, and then the remaining version information could be applied
later. And the version checking could also be done by a community
effort. 

I'm not familiar with the documentation system that the php.net docs
use, but the version data that is already available there is pretty
extensive (especially with PHP5 specific functions), and generally
speaking in a format that could easily be automatically parsed from the
documentation. 

And of course, good things often require some effort. :)

------------------------------------------------------------------------

[2004-05-06 10:24:20] [EMAIL PROTECTED]

Would be good, but also a lot of effort for the doc team to audit the
whole text.  I'm not even sure if DocBook has a way to version sections
of text.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/28295

-- 
Edit this bug report at http://bugs.php.net/?id=28295&edit=1

Reply via email to