mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
db16489501
commit
80b8e5fbd9
1 changed files with 11 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue