Default value of $mode parameter of imagecropauto() is changed as of PHP 7.4.0

Cf. <https://github.com/php/php-src/pull/3679>-

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346308 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2018-12-12 17:13:40 +00:00
parent db16489501
commit 80b8e5fbd9

View file

@ -12,7 +12,7 @@
<methodsynopsis>
<type>resource</type><methodname>imagecropauto</methodname>
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>-1</initializer></methodparam>
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>IMG_CROP_DEFAULT</constant></initializer></methodparam>
<methodparam choice="opt"><type>float</type><parameter>threshold</parameter><initializer>.5</initializer></methodparam>
<methodparam choice="opt"><type>int</type><parameter>color</parameter><initializer>-1</initializer></methodparam>
</methodsynopsis>
@ -30,8 +30,7 @@
<term><parameter>mode</parameter></term>
<listitem>
<para>
One of the following constants
(<literal>-1</literal> corresponds to <constant>IMG_CROP_DEFAULT</constant>):
One of the following constants:
</para>
<variablelist>
<varlistentry>
@ -151,6 +150,15 @@
the same algorithm as system libgd.
</entry>
</row>
<row>
<entry>7.4.0</entry>
<entry>
The default value of <parameter>mode</parameter> has been changed to
<constant>IMG_CROP_AUTO</constant>. Formerly, the default value has been
<literal>-1</literal> which corresponds to <constant>IMG_CROP_DEFAULT</constant>,
but passing <literal>-1</literal> is now deprecated.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>