-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documented the detectCorrupted and corruptedMessage options #6433
Conversation
javiereguiluz
commented
Apr 5, 2016
Q | A |
---|---|
Doc fix? | no |
New docs? | yes |
Applies to | master (3.1+) |
Fixed tickets | symfony/symfony#17458 |
.. versionadded:: 3.1 | ||
The ``detectCorrupted`` option was introduced in Symfony 3.1. | ||
|
||
**type**: ``Boolean`` **default**: ``false`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
boolean
|
||
If this option is true, the image contents are validated to ensure that the | ||
image is not corrupted. This validation is done with PHP's ``imagecreatefromstring()`` | ||
function, which requires the PHP GD extension to be enabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we link to the GD Extension?
Thanks for the review! I've done all the changes. This is now ready to be merged. Thanks! |
👍 |
👍 Thanks! |
|
||
**type**: ``string`` **default**: ``The image file is corrupted.`` | ||
|
||
The error message when the `detectCorrupted`_ option is enabled and the image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was to unsure to commit this, but shouldn't we use if
here instead of when
?