[PHP-DOC] rendering of <optional> From: Jeroen van Wolffelaar (jeroen <email protected>)
Date: 11/11/01

Compare the protos of:

http://www.php.net/manual/en/function.mysql-query.php

with

http://www.php.net/manual/en/function.flock.php

Both use the same way of specifying <optional>, i.e. like this:

     <paramdef>resource
      <parameter><optional>link_identifier</optional></parameter>
     </paramdef>

and

      <paramdef>int
       <parameter>
        <optional>wouldblock</optional>
       </parameter>
      </paramdef>

which is identical.

How is it possible than that the proto's are:

resource mysql_query (string query [, resource link_identifier])

vs.

bool flock (int fp, int operation, int [wouldblock])

? I don't get it... By the way, with my installation both are rendered
like mysql, which is IMO correct.

--Jeroen

Jeroen van Wolffelaar
Jeroen <email protected>
http://jeroen.A-Eskwadraat.nl