Commit Graph

992 Commits

Author SHA1 Message Date
Rasmus Lerdorf
f5dc937a0d Fix for bug #45030 2008-07-31 09:23:59 +00:00
Antony Dovgal
2560c18bf6 fix tests 2008-07-30 09:57:55 +00:00
Kalle Sommer Nielsen
a00f7db067 Add test for imagecolorclosesthwb() 2008-07-30 04:35:21 +00:00
Kalle Sommer Nielsen
73558cf334 MFB: Add test case for #44849 2008-07-30 01:38:37 +00:00
Jani Taskinen
a1981bf2d8 - Cleanup after test 2008-07-25 09:10:02 +00:00
Kalle Sommer Nielsen
db03ac036a Fixed #44849 (imagecolorclosesthwb() is not available on Windows) 2008-07-20 19:00:35 +00:00
Pierre Joye
a883ec0aca - MFB: fix crash when some crafted font are given 2008-07-17 23:28:11 +00:00
Rob Richards
0b17233704 MFB: dont forget the header 2008-07-11 15:06:06 +00:00
Rob Richards
75cc69e2b9 MFB: fix iconv linking 2008-07-11 14:42:00 +00:00
Rob Richards
3b58e7e8c6 MFB: fix zlib detection and linking
- synch zip config.w32
2008-07-09 16:13:53 +00:00
Pierre Joye
739450edb7 - use _a for static lib
- fix logic for shared zlib
2008-07-08 19:07:53 +00:00
Pierre Joye
c9d7050fa1 - add support for old named zlib (no _a or dynamic)
- nuke the right unused vars
2008-07-07 08:40:04 +00:00
Pierre Joye
579a044be3 - restore wrongly removed vars
- test if zlib is shared or not (possible conflict)
2008-07-07 08:36:04 +00:00
Pierre Joye
ed1e8ca285 - update lib/headers detection
- nuke unused variables
2008-07-06 17:06:43 +00:00
Antony Dovgal
0830b0026d cleanup on test failure 2008-07-01 11:20:15 +00:00
Zoe Slattery
3b99caaa7d Test committed for felixdv 2008-06-16 19:23:43 +00:00
Zoe Slattery
de67854ff7 Commited for Sanjay, reviewed by Pierre. Testfest task 5. 2008-06-13 15:59:31 +00:00
Zoe Slattery
d88bbe3434 Commited for Sanjay, reviewed by Pierre. Testfest task 79. 2008-06-13 13:51:22 +00:00
Felipe Pena
7504d57043 - Fixed tests (unicode results, UEXPECT, line endings) 2008-06-13 00:18:57 +00:00
Zoe Slattery
bc84bcc19c Written by Sanjay Mantoor and reviewed by Pierre. 2008-06-10 18:31:37 +00:00
Steph Fox
4be7f4aecd - killed off UEXPECT
- com_dotnet gets a .cvsignore
- Ulf will take care of mysql extensions, rest complete
2008-05-27 18:16:04 +00:00
Etienne Kneuss
5f4e5fa60a Fix protos 2008-05-04 21:16:22 +00:00
Felipe Pena
c82d6062ac Fixed return value changed previously 2008-02-28 17:43:32 +00:00
Felipe Pena
a1e8d340c3 New macro for check void parameters 2008-02-28 14:16:25 +00:00
Robert Nicholson
6da9b239aa - a few more gd tests (committed on behalf of andy wharmby) 2008-02-01 16:32:37 +00:00
Dmitry Stogov
42a683d688 Imporoved PHP binary size and startup speed with GCC4 visibility control (Nuno) 2008-01-30 09:56:22 +00:00
Pierre Joye
fa3f2f7ead - MFB: #43790, fix crash when no family name has been found 2008-01-09 01:52:03 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Mattias Bengtsson
a074d094a2 -MFB, Right filename 2007-11-05 01:14:44 +00:00
Mattias Bengtsson
7e0ca9e1d7 -MFB, Fixed Bug #43121 (gdImageFill with IMG_COLOR_TILED crashes httpd) 2007-11-04 23:57:07 +00:00
Mattias Bengtsson
f2b8a75004 -MFB, Be paranoid and dont allow multiplication with zero 2007-10-23 01:58:41 +00:00
Jani Taskinen
9026a201a3 - Fix compiler warning 2007-09-28 12:52:12 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Pierre Joye
32a5a95752 - MFB 2007-09-11 21:31:14 +00:00
Pierre Joye
f196ad4d98 - MFB: alpha support for colorize filter 2007-09-11 21:10:51 +00:00
Pierre Joye
9dfdaac244 - MFB:
- gdImageTileApply does not respect transparent color
 - gdImageArc regression
 - Alpha channel support for gdImageColor (IMG_FILTER_COLORIZE)
2007-09-11 21:07:04 +00:00
Nuno Lopes
0006462a5b MFB: malloc+memset == calloc
# this was sitting here for quite a looong time..
2007-09-03 14:34:42 +00:00
Pierre Joye
268386674a - gd #106, imagerectangle draws 1x1 rectangles as 1x3 rectangles 2007-08-26 20:33:22 +00:00
Mattias Bengtsson
94bf93f531 -MFB: libgd #101, imagecreatefromgd can crash if gdImageCreate fails 2007-08-09 14:22:38 +00:00
Mattias Bengtsson
3b8fc04079 -MFB: libgd #94, imagecreatefromxbm can crash if gdImageCreate fails 2007-08-09 12:09:30 +00:00
Pierre Joye
322a68f726 - MFB:
- fix gd bug #102, < 0 means that no load are loaded, return false
 - add error code in the warning
2007-07-30 21:44:53 +00:00
foobar
f0f44a3652 - Fix some configure --help texts 2007-07-03 17:24:39 +00:00
Pierre Joye
bf11cccf75 - Re commit "sync with libgd: improve _gdImageFillTiled()", I reverted
it in my previous commit
2007-06-17 17:14:02 +00:00
Pierre Joye
fd8baff90a - MFB: Drop useless tests (Daniel Diaz) 2007-06-17 17:12:46 +00:00
Pierre Joye
a05b93e5fc - #41717, imagepolygon does not respect thickness
(sync with libgd)
2007-06-17 10:53:33 +00:00
Nuno Lopes
5da2f6e7de MFB: sync with libgd: improve _gdImageFillTiled() 2007-06-15 19:50:05 +00:00
Pierre Joye
f1ef64401e - MFB: Fixed regression introduced by the fix for the libgd bug #74 2007-06-14 19:18:00 +00:00
Pierre Joye
7114e613d8 - MFB: #41630, fix segfault when an invalid color index is present in the
image data
2007-06-08 05:25:52 +00:00
Antony Dovgal
144b05cdd0 fix several integer overflows in GD 2007-06-06 09:43:39 +00:00
Pierre Joye
d6eb2e1c46 - @DOC add constants GD_MAJOR_VERSION, GD_MINOR_VERSION, GD_RELEASE_VERSION
GD_EXTRA_VERSION and GD_VERSION_STRING
- fix #ifdef else clause
2007-06-03 17:43:13 +00:00
Pierre Joye
893225c0aa - MFB: sx/sy must be > 0 and < INT_MAX 2007-06-02 15:41:02 +00:00
foobar
520c4a0510 - Fixed bug #41555 (configure failure: regression caused by fix for #41265 2007-06-01 21:33:30 +00:00
Pierre Joye
8e664dd105 - enable tests even when an external GD is used. Latest releases
(2.0.34 or 2.0.35) work.
  NB: if you use Debian, you'll realize how bad their package is and start
  to either use the source or push all patches I posted to their bugs
  tracker
2007-05-28 17:57:20 +00:00
Pierre Joye
5d6f374641 - fix test, requires binary string 2007-05-28 17:49:43 +00:00
Antony Dovgal
873218f07a fix tests 2007-05-22 09:45:12 +00:00
Antony Dovgal
93b3bc490d fix #41442 (imagegd2() under output control) 2007-05-22 09:44:55 +00:00
Pierre Joye
bdee172749 - fix title 2007-05-16 22:54:33 +00:00
Pierre Joye
69dca143c9 - libgd #86: Fixed possible infinite loop in libgd/gd_png.c
(Reported by Xavier Roche)
2007-05-16 22:16:22 +00:00
Pierre Joye
ca1a485d65 - fix build when use with a museum freetype version (1.x) 2007-05-07 14:50:07 +00:00
foobar
495ce1d791 - Prevent bugs like #41265 being submitted from now on. 2007-05-04 21:57:22 +00:00
Antony Dovgal
08536784db improve test 2007-05-03 12:10:02 +00:00
Scott MacVicar
fef929f044 Fixed bug #40130 (TTF usage doesn't work properly under Netware) 2007-04-23 15:06:13 +00:00
Antony Dovgal
ff4ee42767 avoid 10 000 warnings 2007-04-20 21:00:07 +00:00
Hannes Magnusson
3e7223aeb5 Fix proto 2007-04-17 15:44:25 +00:00
Pierre Joye
1720985ee1 - +ZEND_BEGIN_ARG_INFO_EX not _INFO (thx bjori) 2007-04-17 15:37:26 +00:00
Pierre Joye
4b2861090f - fix arginfo 2007-04-17 15:24:05 +00:00
Pierre Joye
17f6220b8d - add imagegrabwindow and imagegrabscreen (win32 only)
capture a window using its handle or a full screen
  optional bbox and to/from clipboard  will follow shortly
2007-04-17 15:11:56 +00:00
Pierre Joye
e24e904efb - libgd #74, gdImageFilledArc, huge CPU usage with large angles 2007-04-14 17:30:51 +00:00
Pierre Joye
4b25f38a07 - add HAVE_GD_FONTMUTEX and HAVE_GD_FONTCACHESHUTDOWN to win32 build 2007-04-11 11:45:19 +00:00
Scott MacVicar
9c49c0403e fix #41048 (PHP6 Segmentation fault issue) 2007-04-11 10:43:28 +00:00
Pierre Joye
41274c7f87 - MFB: Fix windows mutex intialization, add HAVE_GD_FONTMUTEX and
HAVE_LIBFREETYPE to config.w32 (Thanks to Frank for the report)
2007-04-06 15:42:27 +00:00
Pierre Joye
8fc091b51a - depends on 2.0.34 2007-04-05 11:59:13 +00:00
Antony Dovgal
ad260f633f fix build without FreeType 2007-04-05 09:32:58 +00:00
Nuno Lopes
5e50336e7e MFB: fix race condition on font cache shutdown 2007-04-04 14:26:04 +00:00
Pierre Joye
19ac790b35 - MFH:
- do not try to use the global color map when none was found (Nuno, Pierre)
 - free im on error
2007-04-04 11:42:54 +00:00
Pierre Joye
a110d07c96 - fix previous commit (missing #ifdef in shutdown declaration)
- MFB:
 - Sync with gd 2.0.35 (bug #52, #60 and #66)
  - Improve TS of gif loading code (Roman Nemecek, Nuno, Pierre)
  - a frame size must be confined to the screen defition (Pierre)
  - be sure to always read the dimensions in the frame and does not use
    the screen size (see #66 for a side effect) (Pierre)
  - Update #37360 test. The frame does not fit the logical screen (specs
    tell that it must fit) (Pierre)
2007-04-04 01:54:34 +00:00
Pierre Joye
1cd4938ef5 - remove double lock (tween colors cache is created in each thread, the
cache mutex is already locked earlier)
- #40858, other TS improvements for gd freetype cache management
  cache initialization and shutdown is now done in MINIT and MSHUTDOWN.
2007-04-04 00:44:38 +00:00
Pierre Joye
02f5db029d - MFB: colors allocated henceforth from the resulting image overwrite
the palette colors (sync with 2.0.34) (Rob Leslie)
2007-04-04 00:41:08 +00:00
Pierre Joye
37ad5f77df - CVE-2007-1001, integer overflow with invalid wbmp images 2007-03-10 12:16:19 +00:00
Pierre Joye
01c8b39ab8 - MFB: #40764, line thickness not respected for horizontal and vertical
lines
2007-03-10 01:23:42 +00:00
Nuno Lopes
78f33b160a MFB: fix thread unsafety in the gif reader code (merge from libgd cvs) 2007-03-08 20:26:48 +00:00
Nuno Lopes
9777b3a933 MFB
#Pierre: libgd isn't affected. this problem was caused by the recent conversion to strlcpy()
2007-03-02 18:46:16 +00:00
Nuno Lopes
ea624e97e5 MFB 2007-03-01 18:41:45 +00:00
Pierre Joye
519e18a2c3 - MFB: sync with libgd.org, patch from Kees Cook 2007-02-25 02:56:03 +00:00
Marcus Boerger
20a40063c5 - avoid sprintf 2007-02-24 16:25:58 +00:00
Pierre Joye
7d437feb83 - MFB: #40578, fix the 2nd race condition on shutdown when the cache is
freed
2007-02-23 01:02:57 +00:00
Antony Dovgal
c3b7cb1901 fix #40578 (imagettftext() multithreading issue) 2007-02-21 14:59:36 +00:00
Antony Dovgal
71340e43f9 fix test name 2007-02-16 11:08:11 +00:00
Pierre Joye
a0a19d79b9 - MFB: Fixed bug #40428, imagepstext() doesn't accept optional parameter
(Pierre)
2007-02-11 11:13:40 +00:00
Pierre Joye
198fdf319d - MFB: save/restore the alpha blending mode correctly in imagefill and
imagefilltoborder
2007-01-19 15:16:46 +00:00
Nuno Lopes
b1f02b95ce MFB 2007-01-13 11:22:44 +00:00
Nuno Lopes
8cf3db93ad MFB 2007-01-13 11:16:53 +00:00
Nuno Lopes
6d3b054556 MFB 2007-01-08 22:56:26 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Pierre Joye
5f83f04cbb - Add better zlib detection 2006-12-26 10:42:25 +00:00
Pierre Joye
80ecfc354e - MFB: #39286, misleading error message when invalid dimensions are given 2006-12-10 03:03:48 +00:00
Pierre Joye
df5d4a52f9 - MFB: #39508, imagefill crashes with small image 2006-12-10 02:08:07 +00:00
Pierre Joye
ad5d1383de - #39780, PNG image with CRC/data error raises fatal error 2006-12-10 01:28:01 +00:00
Pierre Joye
4f2e67121d - MFH: Merge from gd-cvs, initialize the signature not the infile ctx 2006-11-05 15:06:50 +00:00
Pierre Joye
20f1d35048 - Fixed filter argument for imagepng in gdImagePngEx 2006-11-04 14:34:04 +00:00
Pierre Joye
75f4f96203 - MFB: vim folding 2006-11-04 14:32:23 +00:00
Pierre Joye
c25d7f249a - MFB: silent compiler warnings 2006-11-04 14:29:00 +00:00
Pierre Joye
5334153117 - ws 2006-11-04 14:22:23 +00:00
Pierre Joye
3475bd62e0 - #39366, imagerotate does not use alpha with angles>45 2006-11-04 03:12:36 +00:00
Pierre Joye
799e6c0e98 - MFB: #39273, imagecopyresized and alpha channel 2006-11-04 02:23:45 +00:00
Nuno Lopes
de57a1f871 cleaning some warnings (char* -> zstr) 2006-10-31 22:13:09 +00:00
Hannes Magnusson
1b8cf37abd Fix arginfo for imagepng() and imagejpeg() 2006-10-18 16:04:25 +00:00
Pierre Joye
2e1b7b03f8 - don't check signature if the file is empty (valgrind reports with test
001), thx Tony for the head up
2006-10-11 00:21:33 +00:00
Antony Dovgal
81c149153e add new test 2006-10-10 22:38:00 +00:00
Pierre Joye
7ecbbfc206 - MFB: #39082, image* segfaults when used with only one argument
(introduced in 5.2+, no news entry)
2006-10-08 17:42:55 +00:00
Hannes Magnusson
527af42bd4 Fix "wrong param count" error message 2006-10-08 15:27:28 +00:00
Hannes Magnusson
cf59f0063f fix test 2006-10-08 13:43:20 +00:00
Pierre Joye
f242191738 - update tests 2006-10-07 19:57:15 +00:00
Ilia Alshanetsky
bf92fa9569 Fixed build 2006-10-07 18:12:04 +00:00
Sara Golemon
489565732d More PHP6 Updates 2006-10-07 17:41:14 +00:00
Sara Golemon
39a12a8824 Minor refactoring using zpp API
A few meaningful Unicode updates.
A handful of leak plugs,
and a crash fix in a pear tree.
2006-10-07 16:38:23 +00:00
Ilia Alshanetsky
9b46b3f7e6 MFB: Fixed a large leak inside _php_image_create_from() 2006-09-28 23:18:29 +00:00
Pierre Joye
66cd47d5e9 - MFB: imagefill(), infinite loop with wrong color index 2006-09-28 08:52:23 +00:00
Nuno Lopes
f2da2decd4 MFB: fix compiler warnings introduced in my previous commit 2006-09-16 19:08:21 +00:00
Nuno Lopes
678b162fef MFB 2006-09-15 16:14:57 +00:00
Nuno Lopes
22088632e2 MFB 2006-09-15 15:14:04 +00:00
Pierre Joye
96aedc6efd - add support for entities in hexadecimal format, like &copy; can
be passed as &#169 or &#xA9;
2006-08-23 20:21:34 +00:00
Pierre Joye
8019b9d264 - please don't use base64 to test image files, it does not work
fix tests on 64bit platfrom
2006-08-23 12:00:05 +00:00
Antony Dovgal
eeede0fa1e implement my own FR #36995
nuke unused variable
2006-08-01 22:41:33 +00:00
Pierre Joye
dfb431b7c5 - MFB #38214, gif interlace never worked 2006-07-26 10:03:41 +00:00
Pierre Joye
58cb2cd8b4 - mv 38179.phpt to bug38179.phpt 2006-07-26 08:58:31 +00:00
Pierre Joye
8c0dc5a856 - #38212, Segfault on invalid imagecreatefromgd2part() parameters 2006-07-26 08:51:53 +00:00
Pierre Joye
5b02056c23 - MFB: #38179, imagecopy, palette to truecolor must use alpha channel too 2006-07-23 21:48:18 +00:00
Nuno Lopes
8aafe02cc9 MFB 2006-07-22 15:16:40 +00:00
Pierre Joye
004ed49028 - MFB: #38112, corrupt GIF Image segfault 2006-07-17 15:08:46 +00:00
Hannes Magnusson
12fbcb6344 nuke types in arginfo 2006-07-02 00:10:36 +00:00
Hannes Magnusson
284ad23f60 Add array type hinting
Remove unnecessary array checkes
2006-06-15 16:25:12 +00:00
Hannes Magnusson
66ad36259b Revert array type hinting 2006-06-15 15:31:39 +00:00
Hannes Magnusson
3b36c0e4d8 Added argument info
Fixed protos & vim folding
2006-06-11 19:59:53 +00:00
Pierre Joye
154507f6bc - #37360, bad gif size 2006-05-08 11:49:33 +00:00
Pierre Joye
9d07689c67 - CS (spaces > tabs) 2006-05-08 11:46:13 +00:00
Pierre Joye
fc91929f94 - MFB: #37346, invalid colormap format 2006-05-07 17:21:11 +00:00
foobar
b8cdb46cce - More safe_mode left-overs. 2006-04-11 11:32:06 +00:00
Pierre Joye
ff2822a82b - MFB: #36697, truecolor image lost im->transparent 2006-03-14 03:46:59 +00:00
Pierre Joye
cb076717e2 - MFB: #36686, do not be quiet with the extern GD 2006-03-10 18:15:21 +00:00
Pierre Joye
f4ea8372a4 - revert Harmut commit, Histogram implementation not correct and no idea
where you got the ok to add that
2006-03-05 19:20:12 +00:00
Hartmut Holzgraefe
dd659ea648 - fixed size information for _php_sig_png array
- removed extra memcmp step in signature comparison,
  this seemed to have been inherited from ext/standard/image.c
  but is not needed here as the provided buffer is big enough
  from the start
2006-03-05 18:26:12 +00:00
Hartmut Holzgraefe
05fa58f84e added ImageColorHistogram function 2006-03-05 18:23:47 +00:00
Andi Gutmans
c28cff57d1 - Couple of compile fixes. 2006-02-19 05:05:42 +00:00
Andi Gutmans
1efe984d08 - Get rid of using ENFORCE_SAFE_MODE. 2006-02-19 04:29:42 +00:00
Andi Gutmans
e94e25e621 Start nuking safe_mode. Still a lot of work to do... 2006-02-19 00:55:22 +00:00
Pierre Joye
d78e8d749c - test for jpeg support 2006-02-05 15:53:02 +00:00
Pierre Joye
ccaa5eaab2 - remove libjpeg direct output and wrap them in php warnings 2006-02-04 14:56:58 +00:00
Pierre Joye
bc436e2fd3 - add a weak/tolerant mode to the jpeg loader
* new INI option to enable it (off by default)
   gd.jpeg_ignore_warning (0|1)
 * The default mode is the current behavior
 * if the warning mode is enabled, the image may be loaded succesfully
   but the jpeg warnings will be raise as notices
2006-02-02 20:30:54 +00:00
Michael Wallner
64d4c588ad MF5_1: include png.h prior php.h 2006-01-27 20:48:42 +00:00