mirror of
https://github.com/php/doc-en.git
synced 2026-03-24 07:42:10 +01:00
Document ValueError for empty filename in getimagesize()
This commit is contained in:
committed by
Christian Weiske
parent
122d5d0969
commit
6bb90d24b2
@@ -185,6 +185,10 @@ if ($size && $fp) {
|
||||
<function>getimagesize</function> will generate an error of level
|
||||
<constant>E_NOTICE</constant>.
|
||||
</para>
|
||||
<para>
|
||||
As of PHP 8.0.0, a <exceptionname>ValueError</exceptionname> is thrown
|
||||
if <parameter>filename</parameter> is empty.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
@@ -207,6 +211,14 @@ if ($size && $fp) {
|
||||
and bits and channels were not reported at all.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>8.0.0</entry>
|
||||
<entry>
|
||||
A <exceptionname>ValueError</exceptionname> is now thrown if
|
||||
<parameter>filename</parameter> is empty; previously an
|
||||
<constant>E_WARNING</constant> was raised and the function returned &false;.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>7.1.0</entry>
|
||||
<entry>
|
||||
|
||||
Reference in New Issue
Block a user