#
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 ...
|
Revision tags: php-5.6.23RC1, php-7.0.8RC1, php-7.1.0alpha1 |
|
#
f8012595 |
| 07-Jun-2016 |
Pierre Joye |
#72337 invalid dimensions can lead to segv
|
Revision tags: php-5.6.22, php-5.5.36, php-7.0.7, php-5.6.22RC1, php-7.0.7RC1, php-7.0.6, php-5.6.21, php-5.5.35 |
|
#
c02301b6 |
| 20-Apr-2016 |
Stanislav Malyshev |
Better fix for #71952
|
#
f061867f |
| 19-Apr-2016 |
Stanislav Malyshev |
Fix bug #71952: Corruption inside imageaffinematrixget
|
Revision tags: php-5.6.21RC1, php-7.0.6RC1 |
|
#
f5f94d9c |
| 03-Apr-2016 |
Mark Plomer |
fix left-shifted/misaligned bounding-box + wrong kerning in imagettfbbox/imageftbbox - load glyph with FT_LOAD_IGNORE_TRANSFORM for bbox as final bbox is rotated at once later (fixes "double
fix left-shifted/misaligned bounding-box + wrong kerning in imagettfbbox/imageftbbox - load glyph with FT_LOAD_IGNORE_TRANSFORM for bbox as final bbox is rotated at once later (fixes "double-rotation" per glyph for calculating bbox) - reload the rotated glyph for painting after that (only if angle != 0) - rotate the original bbox at 0,0 and do not throw away xMin/yMin (drawing-rotation is also based at "origin" point - including the bearingX, see http://www.freetype.org/freetype2/docs/glyphs/glyphs-3.html#section-3) - this fixes the "left-shift"-problem also when angle = 0 - removed "xb/yb" and use "x/y" directly for offsetting brect (no need for adding "x1/y1" and substracting "yd" later) - removed therefore unused "yd" helper var which seems tried to fix parts of the original problems - initialize x/y with 0 instead of -1 in php_imagettftext_common() to make image*text() and image*bbox() results identical (there was a -1px shift in image*bbox() before) - fixed gdroundupdown() for negative numbers (-256 / 64 gives -5 instead of -4 before) - rotate kerning-delta by given angle (fixes completely wrong kerning and therefore wrong bounding box if angle != 0) - changed 3 tests and added a new one to test for the new (better) coordinates
show more ...
|
Revision tags: php-5.6.20, php-5.5.34, php-7.0.5, php-5.6.20RC1, php-7.0.5RC1, php-5.6.19, php-5.5.33, php-7.0.4, php-5.6.19RC1, php-7.0.4RC1, php-5.6.18, php-7.0.3, php-5.5.32, php-5.6.18RC1, php-7.0.3RC1, php-5.6.17, php-5.5.31, php-7.0.2 |
|
#
49493a2d |
| 01-Jan-2016 |
Lior Kaplan |
Happy new year (Update copyright to 2016)
|
Revision tags: php-7.0.2RC1, php-5.6.17RC1, php-7.0.1RC1, php-7.0.0, php-5.6.16, php-7.0.0RC8, php-7.0.0RC7, php-5.6.16RC1, php-5.6.15, php-7.0.0RC6, php-7.0.1, php-5.6.15RC1, php-7.0.0RC5, php-5.5.30, php-5.6.14, php-7.0.0RC4 |
|
#
ad4fa8f7 |
| 24-Sep-2015 |
Dmitry Stogov |
Fixed incorrect usage of HASH_OF() macro. Replaced HASH_OF() with more appropriate Z_ARRVAL_P() or Z_OBJPROP_P().
|
Revision tags: php-5.6.14RC1, php-7.0.0RC3, php-5.6.13, php-7.0.0RC2, php-5.5.29, php-5.4.45, php-5.6.13RC1, php-7.0.0RC1, php-5.6.12, php-5.5.28, php-7.0.0beta3, php-5.4.44, php-5.6.12RC1, php-7.0.0beta2 |
|
#
af0f857c |
| 18-Jul-2015 |
Anatol Belski |
fix comment
|
#
5c95226d |
| 17-Jul-2015 |
Nikita Popov |
Various warning fixes
|
#
450fbdc7 |
| 11-Jul-2015 |
Christoph M. Becker |
Fix #70047: gd_info() doesn't report WebP support Despite being documented, the array returned by gd_info() doesn't have a 'WebP Support' key. This patch adds it.
|
Revision tags: php-7.0.0beta1, php-5.6.11, php-5.5.27, php-5.4.43 |
|
#
4a2e40bb |
| 30-Jun-2015 |
Dmitry Stogov |
Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).
|
Revision tags: php-5.6.11RC1, php-5.5.27RC1 |
|
#
28d7bb97 |
| 23-Jun-2015 |
Rasmus Lerdorf |
Fix more proto comments
|
Revision tags: php-7.0.0alpha2, php-5.5.26, php-7.0.0alpha1, php-5.6.10, php-5.4.42 |
|
#
7469c7e7 |
| 06-Jun-2015 |
Christoph M. Becker |
Fixed bug #61221 - imagegammacorrect function loses alpha channel When applying imagegammacorrect() the alpha channel is now fully retained, instead of being completely lost.
|
#
f7d7befa |
| 01-Jun-2015 |
Stanislav Malyshev |
Fix #69719 - more checks for nulls in paths
|
Revision tags: POST_PHP7_NSAPI_REMOVAL, PRE_PHP7_NSAPI_REMOVAL |
|
#
7dcfdbbe |
| 29-May-2015 |
Kalle Sommer Nielsen |
Remove T1Lib support (see #69698) # Also removes imagepscopyfont() which was never available (commented out)
|