#
2a305b38 |
| 02-Oct-2016 |
Christoph M. Becker |
Implement request #33066: Add GD Image Function gdImageOpenPolygon() gdImageOpenPolygon() has been introduced with líbgd 2.0.29, so we finally add a PHP binding for it, and port the resp
Implement request #33066: Add GD Image Function gdImageOpenPolygon() gdImageOpenPolygon() has been introduced with líbgd 2.0.29, so we finally add a PHP binding for it, and port the respective libgd functionality to PHP's bundled libgd.
show more ...
|
#
82a8e57f |
| 02-Oct-2016 |
Christoph M. Becker |
Add support for gdEffectMultiply gdLayerMultiply() has been introduced in libgd 2.1.1, and as such would have been already available for imagelayereffect() with a system libgd. We port
Add support for gdEffectMultiply gdLayerMultiply() has been introduced in libgd 2.1.1, and as such would have been already available for imagelayereffect() with a system libgd. We port the respective code to the bundled libgd, and also make IMG_EFFECT_MULTIPLY available to userland.
show more ...
|
#
d0f14a44 |
| 02-Oct-2016 |
Christoph M. Becker |
Switch to libgd anti-aliased drawing API Instead of rolling our own in the bundled libgd, we use libgd's anti-aliased drawing API. This way imageantialias() is also available, when built
Switch to libgd anti-aliased drawing API Instead of rolling our own in the bundled libgd, we use libgd's anti-aliased drawing API. This way imageantialias() is also available, when built against a system libgd.
show more ...
|
#
65ee87f2 |
| 25-Sep-2016 |
Christoph M. Becker |
Refactor imagegammacorrect() We apply the law `(b**r)**s == b**(r*s)` which holds for all non-negative b and positive r,s, so a single pow() suffices. Furthermore, we precompute the
Refactor imagegammacorrect() We apply the law `(b**r)**s == b**(r*s)` which holds for all non-negative b and positive r,s, so a single pow() suffices. Furthermore, we precompute the gamma, so the refactored code is simpler and faster.
show more ...
|
#
d95b8eaf |
| 24-Sep-2016 |
Christoph M. Becker |
Don't enforce palette conversion when writing GD images The GD image format is able to handle truecolor images as of libgd 2.0.12 (<https://github.com/libgd/libgd/blob/gd-2.2.3/src/gd_gd
Don't enforce palette conversion when writing GD images The GD image format is able to handle truecolor images as of libgd 2.0.12 (<https://github.com/libgd/libgd/blob/gd-2.2.3/src/gd_gd.c#L31-L33>). Therefore we don't need the potentially lossy and time consuming palette conversion. This way, imagegd() can also be used to export raw truecolor image data.
show more ...
|
#
1da79a6c |
| 23-Sep-2016 |
Christoph M. Becker |
Fix #73157 (again): imagegd2() ignores 3rd param if 4 are given Obviously, there was a bad merge.
|
#
c2409780 |
| 23-Sep-2016 |
Christoph M. Becker |
Fix #73157: imagegd2() ignores 3rd param if 4 are given We must initialize `q` for *more* than three parameters, too.
|
#
3cc90901 |
| 11-Sep-2016 |
Andrea Faulds |
Remove remaining zpp fallback code (master branch) Follow-up to d690014bf35507ccb7a1150a27504d2f87848842
|
#
f203de07 |
| 23-Jul-2016 |
Christoph M. Becker |
Change the name of the second parameter of image writer functions As of PHP 5.4.0 the second parameter of all image writer functions (except imagexbm) accepts also a stream resource. The
Change the name of the second parameter of image writer functions As of PHP 5.4.0 the second parameter of all image writer functions (except imagexbm) accepts also a stream resource. Therefore the parameter name `filename` is inappropriate. We change it to `to` according to what it's already called in _php_image_output_ctx(). We consider the reflection only related BC break acceptable for a minor version.
show more ...
|
#
bca913d7 |
| 03-Sep-2016 |
Christoph M. Becker |
Fix proto comment While we're at it, we also change a related comment to use American English consistently.
|
#
0bf11d1e |
| 02-Sep-2016 |
Christoph M. Becker |
Implement FAST_ZPP support for imagecolorat() and imagesetpixel() These functions may be used in tight loops to do image manipulation in userland. Using FAST_ZPP is supposed to bring con
Implement FAST_ZPP support for imagecolorat() and imagesetpixel() These functions may be used in tight loops to do image manipulation in userland. Using FAST_ZPP is supposed to bring considerable performance improvements in this case; we've been able to measure up to 25%.
show more ...
|
#
6a232c36 |
| 21-Aug-2016 |
Christoph M. Becker |
Fix #68716: possible resource leaks in _php_image_convert() We properly clean up after ourselves wrt. to closing opened file pointers and created images.
|
#
1bd103df |
| 10-Aug-2016 |
Stanislav Malyshev |
Fix bug #72730 - imagegammacorrect allows arbitrary write access
|
#
a3598dd7 |
| 10-Aug-2016 |
Stanislav Malyshev |
Fix bug#72697 - select_colors write out-of-bounds
|
#
28022c9b |
| 16-Aug-2016 |
Anatol Belski |
Fix bug#72697 - select_colors write out-of-bounds (cherry picked from commit b6f13a5ef9d6280cf984826a5de012a32c396cd4) Conflicts: ext/gd/gd.c
|
#
e70069a6 |
| 10-Aug-2016 |
Stanislav Malyshev |
Fix bug #72730 - imagegammacorrect allows arbitrary write access (cherry picked from commit 047fe0ed03093a496691d376fcf51a7e2f1d04b0) Conflicts: ext/gd/gd.c
|
#
36b050c2 |
| 11-Aug-2016 |
Kalle Sommer Nielsen |
Get rid of these slow calls to LoadLibrary()/GetProcAddress() calls on Windows, we require Windows Vista as bare minimum for PHP anyway, so it does not make any sense to do this slow emulation anyway
Get rid of these slow calls to LoadLibrary()/GetProcAddress() calls on Windows, we require Windows Vista as bare minimum for PHP anyway, so it does not make any sense to do this slow emulation anyway. GD: - PrintWindow() is available as of Windows XP, it requires linking to User32.lib, which config.w32 for ext/gd already. CLI: - The borrowed functions from PostgreSQL to set the titles of the console window uses SetConsoleTitle() and GetConsoleTitle(), both are available as of Windows 2000 from Kernel32.lib which we already are linking against. Standard: - The disk space utility functions uses GetDiskFreeSpaceExA() which is available as of Windows XP, again links to Kernel32.lib. - The symlink() PHP function uses CreateSymbolicLinkA() which is available from Windows Vista, again from Kernel32.lib. - php_get_windows_name() in info.c uses GetNativeSystemInfo() which is available as of Windows XP and GetProductInfo() which is available as of Windows Vista, both are again from Kernel32.lib. Notes: - ext/interbase & ext/pdo_firebird uses GetProcAddress(), I'm not entirely sure how to handle this one. - ext/sqlite3, this is apart of the bundled libsqlite3, I don't really wanna play around with our bundled libs and make it a bigger issue for those who maintain and upgrade them. - ext/readline, the call to GetProcAddress() here does not do any system calls, so it is left as is. - win32/ioutil.c uses GetProcAddress(), but the function it attempts to load (PathCchCanonicalizeEx()) is only available from Windows 8 and greater (Pathcch.lib linkage). - win32/time.c uses GetSystemTimePreciseAsFileTime() which is available from Windows 8 and greater to get the current system date and time which the highest possible precision and falls back to GetSystemTimeAsFileTime() (available as of Windows 2000), again Kernel32.lib, the GetSystemTimePreciseAsFileTime() is left in a GetProcAddress().
show more ...
|
#
fad3f936 |
| 03-Aug-2016 |
Anatol Belski |
fix ts build
|
#
f5622f5c |
| 02-Aug-2016 |
Christoph M. Becker |
Fix #72709: imagesetstyle() causes OOB read for empty $styles Calling imagesetstyle() with an empty $styles array caused gdImageSetStyle() to be called with `noOfPixels==0`, what could h
Fix #72709: imagesetstyle() causes OOB read for empty $styles Calling imagesetstyle() with an empty $styles array caused gdImageSetStyle() to be called with `noOfPixels==0`, what could have lead to OOB reads. Actually, this issue will be fixed in libgd, but to avoid issues when older libgd is in use, we simply disallow passing an empty $styles array to imagesetstyle(), what wouldn't serve a useful purpose anyway.
show more ...
|
#
d795a6bf |
| 23-Jul-2016 |
Christoph M. Becker |
Implement #52857: Access to gdImageSetClip() and gdImageGetClip() We add the necessary PHP bindings for both functions which are available as of GD_2_0_12 (released 2006-04-05). The API
Implement #52857: Access to gdImageSetClip() and gdImageGetClip() We add the necessary PHP bindings for both functions which are available as of GD_2_0_12 (released 2006-04-05). The API of imagegetclip() is modelled according to imageftbbox().
show more ...
|
Revision tags: php-7.1.0beta1, php-5.6.24, php-7.0.9, php-5.5.38 |
|
#
1d69028d |
| 19-Jul-2016 |
Pierre Joye |
fix #72494, improve input color check and prevent issues when old gd are used, done before gd call
|
#
6cb75fb1 |
| 07-Jul-2016 |
Christoph M. Becker |
Fix #70315: 500 Server Error but page is fully rendered That happens because the external libgd uses other error codes than PHP (and the bundled libgd), but the libgd error codes are sim
Fix #70315: 500 Server Error but page is fully rendered That happens because the external libgd uses other error codes than PHP (and the bundled libgd), but the libgd error codes are simply forwarded to php_verror(). We fix that by properly mapping libgd errors to PHP errors.
show more ...
|
#
8bb3bd04 |
| 14-Jul-2016 |
Christoph M. Becker |
Fix bug #72596: imagetypes function won't advertise WEBP support We add the constant IMG_WEBP and make sure that WebP support is properly reported by imagetypes().
|
Revision tags: php-5.6.24RC1, php-7.1.0alpha3, php-7.0.9RC1, php-7.1.0alpha2, php-7.0.8, php-5.6.23 |
|
#
16160386 |
| 21-Jun-2016 |
Dmitry Stogov |
Added ZEND_ATTRIBUTE_FORMAT to some middind functions. "%p" replaced by ZEND_LONG_FMT to avoid compilation warnings. Fixed most incorrect use cases of format specifiers.
|
Revision tags: php-5.5.37 |
|
#
c0efb06e |
| 15-Jun-2016 |
Christoph M. Becker |
Change default gd.jpeg_ignore_warning = 1 Ignoring these warnings apparently works fine (libgd does so in gdImageCreateJpeg()), but not ignoring them may cause imagecreatefromjpeg()
Change default gd.jpeg_ignore_warning = 1 Ignoring these warnings apparently works fine (libgd does so in gdImageCreateJpeg()), but not ignoring them may cause imagecreatefromjpeg() to fail completely, so it seems reasonable to ignore warnings by default. Note that this change most likely doesn't constitute a BC break; we're simply being more resilient with regard to slightly broken JPEGs. See also the related [bug #72404](https://bugs.php.net/bug.php?id=72404).
show more ...
|