Skip to content

Commit 18c999e

Browse files
committed
Improve glob message
1 parent ce359ee commit 18c999e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

appendices/migration82/incompatible.xml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@
4343
<title>Standard</title>
4444

4545
<para>
46-
<function>glob</function> returns an empty &array; if all paths are restricted by <link linkend="ini.open-basedir">open_basedir</link>.
47-
Previously the error was returned but that behavior was not consistent and
48-
did not work correctly for all patterns.
46+
<function>glob</function> now returns an empty &array; if all paths are
47+
restricted by <link linkend="ini.open-basedir">open_basedir</link>.
48+
Previously it returned &false;.
49+
Moreover, a warning is now emitted even if only some paths are restricted by
50+
<link linkend="ini.open-basedir">open_basedir</link>.
4951
</para>
5052

5153
<para>
@@ -104,9 +106,11 @@
104106
</para>
105107

106108
<para>
107-
<classname>GlobIterator</classname> returns an empty &array; if all paths are
108-
restricted by <link linkend="ini.open-basedir">open_basedir</link>. Previously the error was returned but that
109-
behavior was not consistent and did not work correctly.
109+
<classname>GlobIterator</classname> now returns an empty &array; if all
110+
paths are restricted by <link linkend="ini.open-basedir">open_basedir</link>.
111+
Previously it returned &false;.
112+
Moreover, a warning is now emitted even if only some paths are restricted by
113+
<link linkend="ini.open-basedir">open_basedir</link>.
110114
</para>
111115
</sect2>
112116

0 commit comments

Comments
 (0)