Skip to content

Commit e52b5c7

Browse files
committed
Update define() docs
1 parent e150cc6 commit e52b5c7

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

reference/misc/functions/define.xml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@
4242
<term><parameter>value</parameter></term>
4343
<listitem>
4444
<para>
45-
The value of the constant. In PHP 5, <parameter>value</parameter> must
46-
be a <type>scalar</type> value (<type>int</type>,
47-
<type>float</type>, <type>string</type>, <type>bool</type>, or
48-
&null;). In PHP 7, <type>array</type> values are also accepted.
45+
The value of the constant.
4946
</para>
5047
<warning>
5148
<para>
@@ -102,21 +99,21 @@
10299
</thead>
103100
<tbody>
104101
<row>
105-
<entry>8.0.0</entry>
102+
<entry>8.1.0</entry>
106103
<entry>
107-
Passing &true; to <parameter>case_insensitive</parameter> now emits an <constant>E_WARNING</constant>. Passing &false; is still allowed.
104+
<parameter>value</parameter> can now be an object.
108105
</entry>
109106
</row>
110107
<row>
111-
<entry>7.3.0</entry>
108+
<entry>8.0.0</entry>
112109
<entry>
113-
<parameter>case_insensitive</parameter> has been deprecated and will be removed in version 8.0.0.
110+
Passing &true; to <parameter>case_insensitive</parameter> now emits an <constant>E_WARNING</constant>. Passing &false; is still allowed.
114111
</entry>
115112
</row>
116113
<row>
117-
<entry>7.0.0</entry>
114+
<entry>7.3.0</entry>
118115
<entry>
119-
<type>array</type> values are allowed.
116+
<parameter>case_insensitive</parameter> has been deprecated and will be removed in version 8.0.0.
120117
</entry>
121118
</row>
122119
</tbody>

0 commit comments

Comments
 (0)