Pierre Joye
89ad25f1af
- MFH: don't declare MSHUTDOWN if both cachesetup and t1lib are not used
2007-04-04 01:58:24 +00:00
Pierre Joye
e4749c609c
- 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:34:50 +00:00
Pierre Joye
6ef9642b16
- MFH:
...
- 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:47:55 +00:00
Pierre Joye
a9ca51ff1a
. colors allocated henceforth from the resulting image overwrite
...
the palette colors (sync with 2.0.34) (Rob Leslie)
2007-04-04 00:30:18 +00:00
Pierre Joye
cb11ba761e
- MFH: CVE-2007-1001, integer overflow with invalid wbmp images
2007-03-10 12:18:36 +00:00
Pierre Joye
547e4760e0
- #40764 , line thickness not respected for horizontal and vertical lines
...
- add test
- NEWS entry
2007-03-10 01:13:19 +00:00
Pierre Joye
1286d9e266
- #40764 , line thickness not respected for horizontal and vertical lines
2007-03-09 01:18:40 +00:00
Nuno Lopes
5116b67016
fix thread unsafety in the gif reader code (merge from libgd cvs)
2007-03-08 20:24:53 +00:00
Nuno Lopes
7b37c41384
fix access to non initialized memory (check valgrind reports on http://gcov.php.net )
2007-03-02 18:41:25 +00:00
Nuno Lopes
e5c4b50127
merge from gd sources: unlock mutex before shuting it down
2007-03-01 18:39:49 +00:00
Pierre Joye
dfeff9efe6
- sync with libgd.org, patch from Kees Cook
2007-02-25 02:45:06 +00:00
Ilia Alshanetsky
9783f5f1f3
strncpy() -> strlcpy()
2007-02-24 18:00:56 +00:00
Marcus Boerger
50ea26760d
- Avoid sprintf, even when checked copy'n'paste or changes lead to errors
2007-02-24 02:17:47 +00:00
Pierre Joye
b5e6c78eda
- #40578 , fix the 2nd race condition on shutdown when the cache is freed
2007-02-23 00:58:49 +00:00
Antony Dovgal
94bab7b206
MFH: fix #40578 (imagettftext() multithreading issue)
2007-02-21 15:00:26 +00:00
Antony Dovgal
9208d250c2
MFH
2007-02-16 11:08:22 +00:00
Pierre Joye
18e4a7aacb
- Fixed bug #40428 , imagepstext() doesn't accept optional parameter
...
(Pierre)
2007-02-11 11:11:48 +00:00
Pierre Joye
4dafc7a2fa
- save/restore the alpha blending mode correctly in imagefill and
...
imagefilltoborder
2007-01-19 15:03:56 +00:00
Nuno Lopes
8815fdf5e0
OMG, this line was really bogus (and allocating huge amounts of memory unecessarly)
2007-01-13 11:21:21 +00:00
Nuno Lopes
e22c9cd775
fix valgrind error in test bug24594.phpt
...
while at it, remove some dead code and change the pts vector to char to save (much) memory
# Pierre: one more to merge ;)
2007-01-13 11:16:15 +00:00
Nuno Lopes
43369cef58
avoid calling MSHUTDOWN when built without libt1
2007-01-08 22:52:22 +00:00
Ilia Alshanetsky
7d901eacbe
%f -> %F
2007-01-05 15:06:55 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Pierre Joye
f458ff3dac
- MFH: add better zlib detection
2006-12-26 10:42:50 +00:00
Pierre Joye
7ddd4ed1d7
- #39286 , misleading error message when nvalid dimensions are given
2006-12-10 02:55:30 +00:00
Pierre Joye
7faf8325e7
- #39508 , add test (imagefill crashes with small image)
2006-12-10 01:58:50 +00:00
Pierre Joye
9e533e39b6
- MFH:#39780, PNG image with CRC/data error raises fatal error
2006-12-10 01:38:02 +00:00
Pierre Joye
df56d24304
- #39508 , do not use the 4 neighbors implementation for small images (w<4)
...
test will follow
2006-11-14 13:45:24 +00:00
Pierre Joye
5784602544
- Merge from gd-cvs, initialize the signature not the infile ctx
...
NB: good that we don't use getC :)
2006-11-05 15:04:50 +00:00
Pierre Joye
4e257c03a1
- WS
2006-11-04 14:34:33 +00:00
Pierre Joye
29242cfab9
- MFH: optimize horizontal and vertical lines
2006-11-04 14:27:07 +00:00
Pierre Joye
d05ef39c74
- MFH #39366 , imagerotate does not use alpha with angles>45
2006-11-04 03:15:31 +00:00
Pierre Joye
541f9940ac
- #39273 , imagecopyresized and alpha channel
2006-11-04 02:21:06 +00:00
Hannes Magnusson
4deb09e72e
Generated file
2006-11-03 15:41:09 +00:00
Hannes Magnusson
5006fb2ceb
MFH: Fix double "wrong param count" messages
2006-11-03 15:13:17 +00:00
Hannes Magnusson
ace3f94d20
MFH: Fix test
2006-11-03 14:51:02 +00:00
Hannes Magnusson
b99ba323d5
MFH: fix arginfo
2006-10-18 16:04:37 +00:00
Pierre Joye
ea2d32381d
- don't check signature if the file is empty (valgrind reports with test
...
001), thx Tony for the head up
2006-10-11 00:19:12 +00:00
Antony Dovgal
5866ef42e6
add new test
2006-10-10 22:37:43 +00:00
Pierre Joye
895aa7d7f7
- #39082 , image* segfaults when used with only one argument
...
(introduced in 5.2+, no news entry)
2006-10-08 17:36:10 +00:00
Sara Golemon
34ed116e90
MFH(r-1.356) Don't assume the array elements are arrays too
2006-10-07 16:40:39 +00:00
Ilia Alshanetsky
66bdeaddb4
Fixed a large leak inside _php_image_create_from()
2006-09-28 23:17:31 +00:00
Pierre Joye
cee0a7df24
- imagefill(), infinite loop with wrong color index
2006-09-28 08:48:02 +00:00
Nuno Lopes
d43c9c11f4
fix compiler warnings introduced in my previous commit
2006-09-16 19:07:46 +00:00
Nuno Lopes
e299095ca1
fix a valgrind warning. this also provides a 5x speedup in the imagefttext.phpt test, because without this patch it never got cache hits
2006-09-15 16:11:39 +00:00
Nuno Lopes
fe9d3b16c5
mark some huge arrays as read-only
2006-09-15 15:11:54 +00:00
Pierre Joye
75e9e12093
- MFH: add support for entities in hexadecimal format, like © can
...
be passed as © or © (sync with gd)
2006-08-23 20:22:31 +00:00
Pierre Joye
aecbddef42
- MFH: please don't use base64 to test image files, it does not work
...
fix tests on 64bit platfrom
2006-08-23 12:00:54 +00:00
Pierre Joye
6dbb90af21
- fix compiler warnings
2006-08-08 11:56:36 +00:00
Antony Dovgal
e17320651c
MFH: implement my own FR #36995
...
add missing ifdefs
2006-08-01 22:42:11 +00:00
Pierre Joye
bc11170217
- #38214 , gif interlace never works
2006-07-26 10:03:09 +00:00
Pierre Joye
40c059b8fc
- MFH: mv 38179.phpt to bug38179.phpt
2006-07-26 08:59:55 +00:00
Pierre Joye
206ec1a06b
- MFH #38212 , Segfault on invalid imagecreatefromgd2part() parameters
2006-07-26 08:53:30 +00:00
Pierre Joye
261beb0326
- #38179 , imagecopy, palette to truecolor must use alpha channel too
2006-07-23 21:41:12 +00:00
Nuno Lopes
5e7efb5ec9
dont create images in the php source root. output them instead
2006-07-22 15:15:53 +00:00
Pierre Joye
2a06ce8518
- #38112 , add test and use MAX_LWZ_BITS instead of the value
2006-07-17 14:30:21 +00:00
Pierre Joye
cb41a19f28
- sync tests with HEAD
2006-07-17 12:54:09 +00:00
Pierre Joye
17f6ae66ce
- #38112 , corrupt GIF segfaults, test will follow
2006-07-16 11:07:31 +00:00
Hannes Magnusson
7af33194e5
MFH: arginfo fixes
2006-07-02 00:11:06 +00:00
Hannes Magnusson
954acfe261
MFH: Revert array type hinting
2006-06-15 15:31:54 +00:00
Hannes Magnusson
21b0f60332
MFH: argument infos
2006-06-11 20:03:05 +00:00
Pierre Joye
3bad805e35
- more CS
2006-05-08 12:06:59 +00:00
Pierre Joye
4428076eae
- MFH: #37360 , bad gif size
2006-05-08 11:50:47 +00:00
Pierre Joye
570511c9b2
- CS (spaces > tabs)
2006-05-08 11:12:49 +00:00
Pierre Joye
52619b8427
- #37346 , invalid colormap format
2006-05-07 16:37:40 +00:00
Pierre Joye
01479757e3
- #36697 , Transparency is lost when using imagecreatetruecolor
2006-03-13 21:56:38 +00:00
Pierre Joye
0ebab9d495
- #36686 , do not be quiet with the extern GD
2006-03-10 18:07:27 +00:00
Pierre Joye
6f632a77c3
- MFH: add a weak/tolerant mode to the jpeg loader
2006-02-05 15:53:58 +00:00
Michael Wallner
fe52312f59
- include png.h prior php.h
2006-01-27 20:46:02 +00:00
Pierre Joye
1b546b9f77
- MFH: add filter option to imagepng
...
- add constants
PS: If someone can check why #include "png.h" fails, it will be cleaner
2006-01-27 13:36:30 +00:00
Antony Dovgal
56242031aa
MFH: improve open_basedir checks in GD
2006-01-17 23:47:08 +00:00
Pierre Joye
5ea4c827c9
- remove old return_long
2006-01-17 19:04:06 +00:00
Pierre Joye
afa77062d1
- return false on error
2006-01-17 15:44:12 +00:00
Pierre Joye
328c294569
- Returns FALSE on error, it is how it must work
2006-01-17 15:23:29 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
Ilia Alshanetsky
5c32e974aa
Not a fatal error.
2005-12-29 21:59:39 +00:00
foobar
73ab144544
MFH: fix test
2005-12-26 18:30:33 +00:00
Pierre Joye
d07b094461
- MFH: raise warnings instead of errors in colormatch
2005-12-25 20:33:05 +00:00
Pierre Joye
f5a7694305
- MFH: fix segfault/leak in imagecolormatch
...
- MFH: test for imagecolormatch
2005-12-25 19:39:53 +00:00
Ilia Alshanetsky
8370e1aca4
Fixed uninitialized variable in a test.
2005-12-17 19:57:37 +00:00
Pierre Joye
1024844a41
- MFH:
...
- fix leaks and wrong error when invalid/empty string are given to
imagecreatefromstring
- add test for imagecreatefromstring
- add test for palettecopy
2005-12-17 17:46:59 +00:00
Pierre Joye
7a6ac7ce16
- MFH: no need to test if jpeg support exists
2005-12-09 18:17:02 +00:00
Pierre Joye
ce90a27a48
- MFH, PNG compression support exposed
2005-12-09 18:07:57 +00:00
foobar
3e669bc950
MFH: nuke php3 legacy
2005-12-06 02:28:41 +00:00
foobar
4e874820e9
MFH: nuke php3 legacy
2005-12-06 01:21:28 +00:00
Antony Dovgal
1cbe552f4d
change "-o" to "||" (fixes potential problems on weird systems where test doesn't support -o)
2005-11-29 18:26:02 +00:00
foobar
edc87ef840
MFH: Fixed bad usage of php_checkuid()
2005-11-02 21:26:25 +00:00
foobar
289402edc6
MFH: - Added missing safe-mode checks
...
# Added by replacing the existing open_basedir checks with a macro
# Also, the filename passed might be null, etc. so it's not very good
# idea to pass to php_error_docref() (catch by Ilia)
2005-11-01 17:05:09 +00:00
Antony Dovgal
5b502880b6
MFH: fix #34996 (ImageTrueColorToPalette() crashes when ncolors is zero)
2005-10-26 21:38:20 +00:00
Pierre Joye
af888a4807
- fix #34980 , divisor and offset never passed correctly (s/float/double/)
2005-10-25 23:00:19 +00:00
Pierre Joye
5dd9ad8f53
-fix build as shared or separate from main build (bfrance)
2005-10-09 12:06:27 +00:00
Ilia Alshanetsky
71bd44ac02
MFH: Added missing safe_mode checks.
2005-10-06 20:47:41 +00:00
Pierre Joye
655743c4e7
- #33125 , imagecopymergegray produces mosaic rainbow effect
...
at some point the alpha emulation formula has been broken
restored.
2005-09-30 20:48:05 +00:00
Pierre Joye
c81c189198
- MFH #33220 , infinite loop while loading invalid GIF (nlopees)
2005-09-24 14:39:16 +00:00
foobar
75d362225c
MFH
2005-08-18 12:54:44 +00:00
foobar
757a76df3f
Missing entry
2005-08-07 21:00:28 +00:00
Edin Kadribasic
6e5ddd7b30
Only link zlib if we dont compile it in ( #3406 )
2005-08-06 22:20:06 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
Edin Kadribasic
88fcc4859f
Allow building gd on windows systems without t1lib (M. Sisolak) #33620
2005-08-01 21:57:09 +00:00
Pierre Joye
9859780570
- fix #33794 imagerotate rotates only CCW
...
introduced by transparent color patch
2005-07-23 16:41:38 +00:00