[DOC-CVS] [doc-en] master: Fix parameter type and description for readgzfile()

[email protected] (Gina Peter Banyard via GitHub)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Gina Peter Banyard (Girgias)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2025-06-19T15:47:13+01:00

Commit: https://github.com/php/doc-en/commit/499109194434b7ee9e00ff928e1fb55a7eab908d
Raw diff: https://github.com/php/doc-en/commit/499109194434b7ee9e00ff928e1fb55a7eab908d.diff

Fix parameter type and description for readgzfile()

Found while working on https://github.com/php/php-src/pull/18879

Changed paths:
  M  reference/zlib/functions/readgzfile.xml


Diff:

diff --git a/reference/zlib/functions/readgzfile.xml b/reference/zlib/functions/readgzfile.xml
index 37393b95a412..6ff95163ce55 100644
--- a/reference/zlib/functions/readgzfile.xml
+++ b/reference/zlib/functions/readgzfile.xml
@@ -10,7 +10,7 @@
   <methodsynopsis>
    <type class="union"><type>int</type><type>false</type></type><methodname>readgzfile</methodname>
    <methodparam><type>string</type><parameter>filename</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>use_include_path</parameter><initializer>0</initializer></methodparam>
+   <methodparam choice="opt"><type>bool</type><parameter>use_include_path</parameter><initializer>0</initializer></methodparam>
   </methodsynopsis>
   <para> 
    Reads a file, decompresses it and writes it to standard output.
@@ -37,11 +37,11 @@
     <varlistentry>
      <term><parameter>use_include_path</parameter></term>
      <listitem>
-      <para>
-       You can set this optional parameter to <literal>1</literal>, if you
-       want to search for the file in the <link
-       linkend="ini.include-path">include_path</link> too.
-      </para>
+      <simpara>
+       When set to &true; the
+       <link linkend="ini.include-path">include_path</link>
+       will be used to determine which file to open.
+      </simpara>
      </listitem>
     </varlistentry>
    </variablelist>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.