Pierre Joye
a4354756eb
- MFH:
...
- update lib/headers detection
- nuke unused variables
2008-07-06 17:07:26 +00:00
Felipe Pena
592cecf7d4
- Removed unused variables
2008-06-22 11:36:46 +00:00
Sebastian Bergmann
1a23fec1b0
Fix build.
2008-06-22 08:06:48 +00:00
Felipe Pena
1c7f474e81
- New parameter parsing API
2008-06-21 22:07:53 +00:00
Etienne Kneuss
94697acff9
MFH: Fix protos
2008-05-04 21:17:33 +00:00
Felipe Pena
14b2f7606b
MFB: Fixed bug #44591 (imagegif's filename parameter).
2008-04-04 17:42:18 +00:00
Felipe Pena
84a8bb038a
MFH: New way for check void parameters
2008-03-10 22:15:36 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Dmitry Stogov
6c810b0d4c
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:00:48 +00:00
Pierre Joye
fd15282c77
- [DOC] add alpha support for imagefilter's IMG_FILTER_COLORIZE
2007-09-11 21:03:48 +00:00
Pierre Joye
a83c2153f9
- gd bug #102 , alternative fix when an old library is used
2007-08-29 06:26:30 +00:00
Pierre Joye
6ed7c8f3aa
- fix gd bug #102 , < 0 means that no load are loaded, return false
...
- add error code in the warning
2007-07-30 21:42:36 +00:00
Antony Dovgal
8853804482
MFH: fix several integer overflows in GD
2007-06-06 09:45:43 +00:00
Pierre Joye
256de924c7
- MFH: @DOC add constants GD_MAJOR_VERSION, GD_MINOR_VERSION, GD_RELEASE_VERSION
...
GD_EXTRA_VERSION and GD_VERSION_STRING
2007-06-03 17:46:18 +00:00
Pierre Joye
f4926a042e
- sx/sy must be > 0 and < INT_MAX
2007-06-02 15:38:09 +00:00
Antony Dovgal
083844f847
MFH: fix #41442 (imagegd2() under output control)
2007-05-22 10:22:49 +00:00
Pierre Joye
4a8e75b990
- MFH: fix build when use with a museum freetype version (1.x)
2007-05-07 14:54:36 +00:00
foobar
c8925ba493
- fix compile warning
2007-04-24 12:51:22 +00:00
Hannes Magnusson
8edb601981
Fix proto
2007-04-17 15:44:23 +00:00
Pierre Joye
8eb8ae051b
- INFO_EX not INFO
2007-04-17 15:39:19 +00:00
Pierre Joye
569e8596af
- MFH: add imagegrabwindow and imagegrabscreen (win32 only) [DOC]
...
capture a window using its handle or a full screen
2007-04-17 15:31:45 +00:00
Pierre Joye
17eaaea1f7
- Fix windows mutex intialization, add HAVE_GD_FONTMUTEX and HAVE_LIBFREETYPE
...
to config.w32 (Thanks to Frank for the report)
2007-04-06 15:38:35 +00:00
Pierre Joye
12b66657d7
- reflect the "real" version to avoid confusions. Users should really use
...
only the bundled version
2007-04-05 11:57:57 +00:00
Antony Dovgal
70cd86420b
MFH: fix build
2007-04-05 09:33:10 +00:00
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
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
18e4a7aacb
- Fixed bug #40428 , imagepstext() doesn't accept optional parameter
...
(Pierre)
2007-02-11 11:11:48 +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
7ddd4ed1d7
- #39286 , misleading error message when nvalid dimensions are given
2006-12-10 02:55:30 +00:00
Pierre Joye
9e533e39b6
- MFH:#39780, PNG image with CRC/data error raises fatal error
2006-12-10 01:38:02 +00:00
Hannes Magnusson
5006fb2ceb
MFH: Fix double "wrong param count" messages
2006-11-03 15:13:17 +00:00
Hannes Magnusson
b99ba323d5
MFH: fix arginfo
2006-10-18 16:04:37 +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
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
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
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
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
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
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
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
Ilia Alshanetsky
71bd44ac02
MFH: Added missing safe_mode checks.
2005-10-06 20:47:41 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
Antony Dovgal
0a830b33fc
fix off-by-one in _php_image_output()
...
and prevent such errors in php_do_open_temporary_file()
2005-05-06 16:48:30 +00:00
Derick Rethans
bb8988109d
- Fixed bug #32735 (Compile error in GD extension).
2005-04-17 10:17:03 +00:00
Pierre Joye
3963ba649d
- export imageconvolution to userland, making people happy to do not
...
use the predefined ones :)
2005-04-16 12:12:24 +00:00
Andrey Hristov
d9f5f1ee08
fix memory corruption on 64bit in imagefttext(),
...
domdocument::load() and domdocument::loadxml()
2005-04-10 21:37:17 +00:00
Pierre Joye
c8ce18c155
- allow to keep or ignore the transparent color in imagerotate (thx
...
Ken Coar to report this "bug")
- be sure to restore alphablending in imagefill
- use zend_parse_parameter in imagerotate
2005-03-27 23:43:52 +00:00
foobar
e82eb93cf2
- Added some sanity checks by changing to the parameter parsing API
2005-01-17 17:07:28 +00:00
foobar
0e9866bfd6
ws fix
2005-01-15 04:34:30 +00:00
foobar
330746480e
- Fixed bug #31060 (imageftbbox() does not use linespacing parameter)
2005-01-14 23:07:46 +00:00
foobar
68ca0ed6d8
- Fixed bug #30120 (imagettftext() and imagettfbbox() accept too many parameters)
2005-01-14 22:43:15 +00:00
foobar
a2177b2e8e
- Fixed bug #31396 (compile fails with gd 2.0.33 without freetype)
2005-01-04 06:51:45 +00:00
Ilia Alshanetsky
12c2113b3e
Fixed compiler warnings.
2004-12-29 21:40:34 +00:00
Ilia Alshanetsky
3f79dfbb04
Don't forget to unload t1lib.
2004-12-29 21:07:59 +00:00
Ilia Alshanetsky
8091bfb84c
MFB: Fixed bug #30658 (Ensure that temporary files created by GD are removed).
2004-11-02 16:41:41 +00:00
Ilia Alshanetsky
4d360ead0c
Fixed bug #29594 (Use PHP's own tmpfile() implementation).
2004-08-16 23:07:42 +00:00
Ilia Alshanetsky
69a5253284
Fixed bug #29349 (imagecreatefromstring() crashes with external GD library)
...
Original Patch By: adconrad at debian dot org
2004-07-27 00:27:06 +00:00
Edin Kadribasic
67c42a4a9b
Updated version number
2004-07-23 02:28:18 +00:00
Andi Gutmans
56f8195fe5
- Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
...
used to return "" and not bool(false). It's not worth keeping it because
STR_FREE() and zval_dtor() always have to check for it and it slows down
the general case. In addition, it seems that empty_string has been abused
quite a lot, and was used not only for setting zval's but generally in
PHP code instead of "", which wasn't the intention. Last but not least,
nuking empty_string should improve stability as I doubt every place
correctly checked if they are not mistakenly erealloc()'ing it or
calling efree() on it.
NOTE: Some code is probably broken. Each extension maintainer should
check and see that my changes are OK. Also, I haven't had time to touch
PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
Ilia Alshanetsky
9cccfa57b6
Fixed stream leak on error.
2004-05-20 23:37:59 +00:00
Ilia Alshanetsky
d3fda74acf
Fixed bug #28267 (php_image_filter_contrast calls gdImageBrightness).
2004-05-09 17:39:20 +00:00
Ilia Alshanetsky
6e9c4b3125
Upgrade bundled GD library to 2.0.23.
...
Fixed bug #28175 (build problem for people using FreeType 2.1.0-2.1.2).
2004-05-09 17:33:50 +00:00
Edin Kadribasic
31de856abb
Allow compilation with gdlib 1.8
2004-04-07 22:27:32 +00:00
Ilia Alshanetsky
3b27b0f18b
Fixed a bug that prevented building of gd extension against external GD
...
lib 1.X.
2004-04-04 17:59:08 +00:00
Ilia Alshanetsky
8b079070a3
Synchronized bundled GD library with GD 2.0.22.
2004-03-29 18:20:33 +00:00
Ilia Alshanetsky
52b962ca2f
wbmp conversion warning fix.
2004-02-22 18:03:09 +00:00
Ilia Alshanetsky
cc2dc6c85e
Set correct default threshold for image2wbmp().
2004-02-21 16:49:39 +00:00
Ilia Alshanetsky
cb5c9156c2
Fixed bug #27293 (two crashes inside image2wbmp()).
2004-02-17 21:30:00 +00:00
Ilia Alshanetsky
472a3a2446
Fixed bug #27056 (ints used instead of longs inside some GD functions).
2004-01-28 01:36:53 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Ilia Alshanetsky
8ec2fd0c54
Last bit of CS fixes.
2003-12-28 21:08:46 +00:00
Ilia Alshanetsky
8d6cfb797b
Synchronized bundled GD library with GD 2.0.17
...
. GD is now thread-safe thanks to wrappers around freetype library
. Significant optimization to png writing code.
. Miscellaneous fixes.
Fixed memory leak inside php_imagettftext_common()
Make ext/gd compile with GD 2.0.17+ (gdFreeFontCache() is not avaliable)
2003-12-25 22:12:12 +00:00
Rasmus Lerdorf
749cf47ef7
Fix remaining gd build issue
2003-12-18 08:17:45 +00:00
Ilia Alshanetsky
44e180b286
Fixed bug #26309 (Fixed argument parsing for imageftbbox()).
2003-11-19 15:49:55 +00:00
Moriyoshi Koizumi
676755da54
FREETYPE_PATCH is not always defined.
...
# will likely fix Sebastian's build :)
2003-09-15 07:27:18 +00:00
Moriyoshi Koizumi
36e89f6deb
Add an phpinfo entry showing which version of freetype is linked to gd.
2003-09-09 19:08:30 +00:00
Andrey Hristov
b2eb454171
format string fixes
2003-08-28 21:00:24 +00:00
Ilia Alshanetsky
93bcd55eaf
emalloc -> safe_emalloc
2003-08-12 00:58:52 +00:00
Ilia Alshanetsky
aeadf9bd4a
Fixed a crash inside php_imagettftext_common();
2003-06-19 15:47:46 +00:00
Marcus Boerger
8fd5e11ff4
Add ImageXBM
2003-06-15 20:00:08 +00:00