Skip to content

Commit 184f3f7

Browse files
authored
Remove PHP 5, 7 references (#565)
1 parent 9da37a4 commit 184f3f7

34 files changed

+52
-295
lines changed

reference/curl/configure.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
directories. In the <filename>include</filename> directory there should be a folder
1010
named <filename>curl</filename> which should contain the <filename>easy.h</filename> and
1111
<filename>curl.h</filename> files. There should be a file named
12-
<filename>libcurl.a</filename> located in the <filename>lib</filename> directory. Before
13-
PHP 5.5.0 it was possible to configure PHP to use cURL for URL streams
14-
<option role="configure">--with-curlwrappers</option>.
12+
<filename>libcurl.a</filename> located in the <filename>lib</filename> directory.
1513
</para>
1614
<note>
1715
<title>Note to Win32 Users</title>

reference/curl/constants.xml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3660,19 +3660,6 @@
36603660
</simpara>
36613661
</listitem>
36623662
</varlistentry>
3663-
<varlistentry xml:id="constant.curl-wrappers-enabled">
3664-
<term>
3665-
<constant>CURL_WRAPPERS_ENABLED</constant>
3666-
(<type>int</type>)
3667-
</term>
3668-
<listitem>
3669-
<simpara>
3670-
Defined if PHP was configured with
3671-
<option role="configure">--with-curlwrappers</option>.
3672-
Moved to PECL in PHP 5.5.0.
3673-
</simpara>
3674-
</listitem>
3675-
</varlistentry>
36763663
<varlistentry xml:id="constant.curlpause-all">
36773664
<term>
36783665
<constant>CURLPAUSE_ALL</constant>
@@ -3746,7 +3733,7 @@
37463733
</term>
37473734
<listitem>
37483735
<simpara>
3749-
Available since PHP 7.0.0 and cURL 7.43.0.
3736+
Available since cURL 7.43.0.
37503737
</simpara>
37513738
</listitem>
37523739
</varlistentry>
@@ -3757,7 +3744,7 @@
37573744
</term>
37583745
<listitem>
37593746
<simpara>
3760-
Available since PHP 7.0.0 and cURL 7.43.0.
3747+
Available since cURL 7.43.0.
37613748
</simpara>
37623749
</listitem>
37633750
</varlistentry>
@@ -3768,7 +3755,7 @@
37683755
</term>
37693756
<listitem>
37703757
<simpara>
3771-
Available since PHP 7.0.0 and cURL 7.43.0.
3758+
Available since cURL 7.43.0.
37723759
</simpara>
37733760
</listitem>
37743761
</varlistentry>

reference/curl/functions/curl-setopt-array.xml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -90,31 +90,6 @@ curl_exec($ch);
9090
// close cURL resource, and free up system resources
9191
curl_close($ch);
9292
?>
93-
]]>
94-
</programlisting>
95-
</example>
96-
</para>
97-
<para>
98-
Prior to PHP 5.1.3 this function can be simulated with:
99-
</para>
100-
<para>
101-
<example>
102-
<title>Our own implementation of <function>curl_setopt_array</function></title>
103-
<programlisting role="php">
104-
<![CDATA[
105-
<?php
106-
if (!function_exists('curl_setopt_array')) {
107-
function curl_setopt_array(&$ch, $curl_options)
108-
{
109-
foreach ($curl_options as $option => $value) {
110-
if (!curl_setopt($ch, $option, $value)) {
111-
return false;
112-
}
113-
}
114-
return true;
115-
}
116-
}
117-
?>
11893
]]>
11994
</programlisting>
12095
</example>

reference/network/functions/dns-get-record.xml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
</entry>
263263
</row>
264264
<row>
265-
<entry><literal>A6</literal>(PHP &gt;= 5.1.0)</entry>
265+
<entry><literal>A6</literal></entry>
266266
<entry>
267267
<literal>masklen</literal>: Length (in bits) to inherit from the target
268268
specified by <parameter>chain</parameter>.
@@ -510,17 +510,6 @@ Additional = Array
510510
</para>
511511
</refsect1>
512512

513-
<refsect1 role="notes">
514-
&reftitle.notes;
515-
<note>
516-
<para>
517-
For compatibility with versions before PHP 5.3.0 on some operating systems,
518-
try the <link xlink:href="&url.php.pear;">PEAR</link> class
519-
<link xlink:href="&url.pear.package;Net_DNS">Net_DNS</link>.
520-
</para>
521-
</note>
522-
</refsect1>
523-
524513
<refsect1 role="seealso">
525514
&reftitle.seealso;
526515
<para>

reference/network/functions/gethostname.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535
<![CDATA[
3636
<?php
3737
echo gethostname(); // may output e.g,: sandie
38-
39-
// Or, an option that also works before PHP 5.3
40-
echo php_uname('n'); // may output e.g,: sandie
4138
?>
4239
]]>
4340
</programlisting>

reference/network/functions/ip2long.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,8 @@ if ($long == -1 || $long === FALSE) {
105105
</note>
106106
<note>
107107
<para>
108-
<function>ip2long</function> will return &false; for the IP
109-
<literal>255.255.255.255</literal> in PHP 5 &lt;= 5.0.2, and <literal>-1</literal>
110-
on 64-bits systems in PHP 5 &lt;=5.2.4. It was fixed in
111-
PHP 5.2.5 where it returns <literal>4294967295</literal>. 32-bit systems
112-
will return <literal>-1</literal> due to the integer value overflowing.
108+
<function>ip2long</function> will return <literal>-1</literal> for the IP
109+
<literal>255.255.255.255</literal> on 32-bit systems due to the integer value overflowing.
113110
</para>
114111
</note>
115112
</refsect1>

reference/pgsql/functions/pg-convert.xml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,10 @@
3131
</para>
3232
<note>
3333
<para>
34-
Since PHP 5.6.0, it accepts boolean values, converting them to PostgreSQL
35-
booleans. String representations of boolean values are also supported. &null; is
34+
Boolean values are accepted and converted to PostgreSQL booleans.
35+
String representations of boolean values are also supported. &null; is
3636
converted to PostgreSQL NULL.
3737
</para>
38-
<para>
39-
Prior to PHP 5.6.0, if there are boolean fields in <parameter>table_name</parameter>
40-
don't use the constant &true; in <parameter>assoc_array</parameter>. It will be
41-
converted to the string 'TRUE' which is not a valid entry for boolean fields
42-
in PostgreSQL. Use one of "t", "true", 1, "y", "yes" instead.
43-
</para>
4438
</note>
4539
</refsect1>
4640

reference/pgsql/functions/pg-get-notify.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
&reftitle.returnvalues;
5959
<para>
6060
An <type>array</type> containing the <literal>NOTIFY</literal> message name and backend PID.
61-
As of PHP 5.4.0 and if supported by the server, the array also contains the server version and the payload.
61+
If supported by the server, the array also contains the server version and the payload.
6262
Otherwise if no <literal>NOTIFY</literal> is waiting, then &false; is returned.
6363
</para>
6464
</refsect1>

reference/pgsql/functions/pg-lo-create.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
If an <parameter>object_id</parameter> is given the function
6767
will try to create a large object with this id, else a free
6868
object id is assigned by the server. The parameter
69-
was added in PHP 5.3 and relies on functionality that first
69+
relies on functionality that first
7070
appeared in PostgreSQL 8.1.
7171
</para>
7272
</listitem>

reference/pgsql/functions/pg-lo-import.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
If an <parameter>object_id</parameter> is given the function
6363
will try to create a large object with this id, else a free
6464
object id is assigned by the server. The parameter
65-
was added in PHP 5.3 and relies on functionality that first
65+
relies on functionality that first
6666
appeared in PostgreSQL 8.1.
6767
</para>
6868
</listitem>

0 commit comments

Comments
 (0)