Commit Graph

360 Commits

Author SHA1 Message Date
Ilia Alshanetsky
5944170872 Fixed bug #44388 (Crash inside exif_read_data() on invalid images) 2008-03-12 17:32:01 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Jani Taskinen
31a779e813 - Fix indent of macros 2007-12-17 08:51:17 +00:00
Ilia Alshanetsky
ec90d48331 Fixed bug #43606 (define missing depencies of the exif extension) 2007-12-16 17:14:11 +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
Ilia Alshanetsky
79d58abf65 Fixed memory corruption when reading exif data of a non-file 2007-06-10 20:12:45 +00:00
Martin Kraemer
9c62ddde34 Typo 2007-03-14 09:58:14 +00:00
Ilia Alshanetsky
cc04404b28 snprintf() -> slprintf()
# Part 1
2007-02-27 03:04:40 +00:00
Marcus Boerger
255c6a71d7 - MFH Readability 2007-02-25 13:09:13 +00:00
Ilia Alshanetsky
3588f9eed6 missing -1 2007-02-24 18:02:11 +00:00
Ilia Alshanetsky
9651aeaf78 Pad to given length, not replace data with spaces 2007-02-24 17:57:57 +00:00
Ilia Alshanetsky
afa4b732c5 Eliminate strncpy and simplify code 2007-02-24 17:40:45 +00:00
Marcus Boerger
1b1c62d708 - Make debug code really safe 2007-02-24 14:28:09 +00:00
Stanislav Malyshev
698f114ddc use safe allocations 2007-02-24 03:08:05 +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
Ilia Alshanetsky
17864fc3e9 emalloc() -> safe_emalloc() 2007-01-23 00:23:17 +00:00
Marcus Boerger
023144ffa9 - MFH Fix for #40073 2007-01-09 17:55:29 +00:00
Antony Dovgal
1e352b3ae7 MFH: zerofill info_data and fix possible segfault
partly fixes #40073
2007-01-09 11:37:17 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
e2c110bebf Allocation safety checks 2006-12-25 23:43:10 +00:00
Ilia Alshanetsky
0776e56437 Use %F (ignores locale) for internal representation of floats 2006-12-25 16:48:18 +00:00
Marcus Boerger
79946dc8a0 - MFH: Make parameter parsing api check happy 2006-11-04 20:46:32 +00:00
Antony Dovgal
cb90d3ce76 MFH: fix leak and typos in error messages 2006-10-10 22:22:43 +00:00
Antony Dovgal
1f3b6ebc89 initialize static buffer with 0's 2006-08-17 14:32:35 +00:00
Dmitry Stogov
1dbaae2795 Added automatic module globals management 2006-06-15 18:33:09 +00:00
Hannes Magnusson
3104233019 MFH: arginfo, protos, vim folding 2006-06-11 01:42:17 +00:00
Marcus Boerger
3438469b84 - MFH Fix condition 2006-04-10 18:23:24 +00:00
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
foobar
3e669bc950 MFH: nuke php3 legacy 2005-12-06 02:28:41 +00:00
foobar
c0ec353655 fix test 2005-10-11 18:11:13 +00:00
Marcus Boerger
656f02fada - MFH Fix Logic 2005-10-10 06:09:25 +00:00
foobar
036f28f115 MFH: fix test 2005-10-10 05:57:21 +00:00
foobar
60d70459f3 extra spaces removed 2005-10-10 05:55:44 +00:00
Marcus Boerger
bc81f55541 - MFH Bugfix #34704 (Infinite recursion due to corrupt JPEG) 2005-10-09 14:40:01 +00:00
Anantha Kesari H Y
9270751a7f NetWare specific stat structure issues.
--Kamesh
2005-08-05 14:03:57 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Ilia Alshanetsky
1f06bb94c6 MFB: Fixed build of exif extension on win32. 2005-03-17 17:20:52 +00:00
Stefan Esser
4d5599f6e0 Fixed possible bufferoverflow 2005-03-02 18:21:45 +00:00
Marcus Boerger
5b1af1c1ed - Change to enable (synch with unix build system) 2005-02-25 01:17:45 +00:00
foobar
3f9dc8814e PHP_WIN32 is defined or not defined. 2005-02-16 23:47:38 +00:00
Edin Kadribasic
d388e4dc16 Enable mbstring use on windows. We were linking against mbstring for
some time now, but have never actually used it on Windows.
Fixes #31980.
2005-02-16 09:53:26 +00:00
Ilia Alshanetsky
43d1785ea1 Fixed bug #31986 (Max nesting limit set too low). 2005-02-15 21:56:17 +00:00
Ilia Alshanetsky
8c97b9dc73 Fixed bug #31797 (exif_read_data() uses too low nesting limit). 2005-02-01 23:27:33 +00:00
Andrei Zmievski
ecb9f8668d MFB (bugfix for 24851) 2005-01-22 00:01:33 +00:00
Ilia Alshanetsky
8992aa0bcf Fixed possible overflow. 2004-11-10 01:43:04 +00:00
Marcus Boerger
28ced40c63 Bug #30627 2004-11-04 20:13:30 +00:00
Hartmut Holzgraefe
eeb172b29f "The Visa to Sibiria" (work in progress)
Adding a package.xml to a bundled extension does not only
ease the transition to PECL whereever suitable but also
allows to build and install an extension as "shared" using
the PEAR installer without having to deal with phpize and
friends by hand
2004-03-23 19:46:10 +00:00
Derick Rethans
1e8e284c6b - Fixed typo 2004-03-16 20:58:01 +00:00
foobar
f4983c0d3f - Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5 2004-01-17 13:00:38 +00:00
foobar
ccfc46b0aa - Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Marcus Boerger
8a072165f5 Typos found by Petras Kudaras. 2003-12-22 23:45:53 +00:00
Wez Furlong
3b450ec431 Add dependencies for these extensions 2003-12-22 13:16:43 +00:00
Marcus Boerger
a841334860 Fix warning 2003-12-17 09:07:11 +00:00
Ilia Alshanetsky
56f046a67a Fixed ZTS build. 2003-12-10 21:23:35 +00:00
Frank M. Kromann
075ee21165 Include exif in the new win32 build system 2003-12-05 07:17:11 +00:00
Ilia Alshanetsky
4aaa2becbe String format stuff. 2003-09-22 23:27:51 +00:00
Marcus Boerger
93a07f6c68 Allow to search for section FILE with 2nd parameter (found by Derick) 2003-09-07 23:46:33 +00:00
Marcus Boerger
ae2c7b9b4f Fix warnings 2003-08-17 18:21:35 +00:00
Sascha Schumann
2405caf32e kill some warnings 2003-08-17 15:04:57 +00:00
Marcus Boerger
30a68c8d84 Fix exif_thumbnail 2003-08-09 20:43:06 +00:00
Zeev Suraski
538d58dd5f Use new infrastructure.
There are bound to be some messups, please report build/runtime bugs!
2003-08-03 17:44:39 +00:00
Marcus Boerger
c5d4b5ddcd - Errors, warnings and notices start with a capital letter.
- Show sorcode info when debugging exif.
2003-06-20 18:24:38 +00:00
Edin Kadribasic
e92e7d47c5 Fixed win32 build 2003-06-15 22:58:04 +00:00
Andrey Hristov
eb33adf139 proto fixes 2003-06-15 15:29:46 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Marcus Boerger
6f524ac9f1 Use safe_estrdup() instead.
# Thanks Sascha i didn't knew about that thing.
2003-05-30 18:59:49 +00:00
Marcus Boerger
07ba5f6c9e Fix handling of ini settings 2003-05-30 17:46:57 +00:00
Hartmut Holzgraefe
e6490c4a41 basename() now binary safe, testcases added 2003-05-05 13:46:14 +00:00
Marcus Boerger
8363658641 Change to use safe_emalloc() and provide macro for now 2003-04-16 06:10:41 +00:00
Ilia Alshanetsky
b2e521a178 Fixed bug #23102 (integer overflow in exif_iif_add_value()). 2003-04-08 00:18:57 +00:00
Rasmus Lerdorf
7461f1f45a MFB 2003-04-03 22:45:25 +00:00
Rasmus Lerdorf
716142c4ea MFB: Get rid of bogus dtors 2003-04-02 22:07:22 +00:00
Rasmus Lerdorf
423147c194 MFB 2003-04-01 18:50:31 +00:00
Marcus Boerger
9d02c2bd56 correct my fault here and documnet the sense of the test 2003-01-18 19:06:29 +00:00
Ilia Alshanetsky
a3daf3bbe8 Additional memory allocation fixes by Marcus Börger. 2003-01-18 18:51:12 +00:00
Ilia Alshanetsky
e0654de590 Removed the no longer needed memory allocation checks. 2003-01-18 18:32:19 +00:00
Marcus Boerger
6a75a52ad8 better to check for existance first 2003-01-04 19:19:59 +00:00
Sebastian Bergmann
b506f5c8f8 Bump year. 2002-12-31 16:08:15 +00:00
Sascha Schumann
20e8bc31f0 (char *) vptr += expr; is refused by the IRIX compiler, so we use
vptr = (char *) vptr + expr; instead.
2002-12-22 16:34:13 +00:00
Sascha Schumann
280f4a4373 'index' is a function name in the C library, do not use it as variable name.
also, cast the 'void *' correctly to a 'char *' for manipulation
instead of an 'int'.
2002-12-22 16:03:28 +00:00
Marcus Boerger
59656cc706 fix compiler definition tests 2002-12-16 17:52:43 +00:00
Marcus Boerger
50af908f01 fix compiler definition tests 2002-12-16 15:53:46 +00:00
Marcus Boerger
2d3b3fd97f fix test 2002-12-16 15:19:57 +00:00
Marcus Boerger
9042a9ddbd Add version check since this will be available since php 4.4. 2002-12-16 15:04:12 +00:00
Marcus Boerger
da1a617f6b forgot to remove that dot 2002-12-16 14:54:35 +00:00
Marcus Boerger
5dc4d38204 -Add constant that shows whether or not exif uses mbstring.
-Fix tests
2002-12-16 14:48:00 +00:00
Marcus Boerger
6e055f9a77 change mbstring detection 2002-12-16 09:58:49 +00:00
Marcus Boerger
c1be81a84e ws 2002-12-15 18:49:07 +00:00
Marcus Boerger
16694d3500 Fix build when mbstring is a shared module or dll under windows 2002-12-14 19:53:20 +00:00
Marcus Boerger
9455657a7a Bugfix: #21010 (Here it's maker (manufacturer) instead of marker) 2002-12-14 17:49:19 +00:00
Ilia Alshanetsky
52d0f1c143 decode variable is only used when mbstring is avaliable. 2002-12-11 07:37:30 +00:00
Ilia Alshanetsky
91a6272972 Fixed win32 build. 2002-12-10 18:00:47 +00:00
Marcus Boerger
26c5c323ab -make those debug messages 2002-12-10 14:35:13 +00:00
Ilia Alshanetsky
aa4c85dda1 Fixed bug #20907, patch by m-arai@sco.bekkoame.ne.jp. 2002-12-10 00:10:27 +00:00
Marcus Boerger
28c10e29d0 -Code completley rewritten 2002-11-27 02:42:41 +00:00
Marcus Boerger
569c69ba36 -Add test for exif_read_data and magic_quotes_runtime 2002-11-27 02:31:26 +00:00
Marcus Boerger
57f41b1a90 -Forgot to correct length 2002-11-27 02:28:29 +00:00
Marcus Boerger
3ff08b91a6 -Add magic_quotes_runtime support
-Fix Canon Markernote
2002-11-27 01:46:36 +00:00
Marcus Boerger
318e561905 Testing default behaviour 2002-11-23 00:54:04 +00:00
Ilia Alshanetsky
962e4864a1 Fixed bug #20560. 2002-11-22 21:51:38 +00:00
Marcus Boerger
25641a7e96 Minor test corrections 2002-11-14 21:45:01 +00:00
Marcus Boerger
37e64f38ac Test is affected by mbstring 2002-11-14 21:43:49 +00:00
Ilia Alshanetsky
6e06948c19 Removed duplicate assignment. 2002-11-08 01:08:01 +00:00
Marcus Boerger
0a7653263d README.TESTING examples 2002-10-25 11:10:08 +00:00
Marcus Boerger
ee4dfeec5d New naming scheme 2002-10-25 10:59:52 +00:00
Marcus Boerger
339dfe0cd2 better use var_dump and EXPECTF
#seems i waited for EXPECTF
2002-10-23 23:51:15 +00:00
Marcus Boerger
cda87f7509 Allow ifd start at offset other than 00000007h and provide testcase.
#Now we can read images modified by Exifer.
2002-10-19 09:52:00 +00:00
Ilia Alshanetsky
b4348434be Fixed the output_handler ini setting.
Code cleanup.
2002-10-15 12:48:21 +00:00
Derick Rethans
1a08e5b622 - Staying consistent with other tests 2002-10-15 06:37:05 +00:00
Marcus Boerger
d396d9c7ce remove ob_end_clean() and instead use ini section
#Derick you're right this was no good idea. I just left it over after testing
#the test.
2002-10-15 00:35:05 +00:00
Marcus Boerger
9f8b57fb57 typing 2002-10-03 10:44:13 +00:00
Derick Rethans
cf07c698d1 - Align configure --help messages 2002-09-19 20:14:35 +00:00
Marcus Boerger
38247a7993 One zero to much 2002-08-29 08:32:41 +00:00
Derick Rethans
9d31d92712 - EXIF is about meta data from images, not for digital cameras 2002-08-29 05:36:42 +00:00
foobar
715615ea6b revert that undiscussed change until it is really agreed upon. 2002-08-29 00:55:24 +00:00
Marcus Boerger
562b78f422 Enable EXIF by default as discussed with Rasmus
@Made EXIF (digital camera) extension enabled by default. (Marcus)
2002-08-28 19:31:01 +00:00
Marcus Boerger
412c2ba7a3 MFB 2002-08-25 18:48:46 +00:00
Marcus Boerger
d104d08a84 These require exif and mbstring 2002-08-21 23:14:40 +00:00
Marcus Boerger
3b24fc1c5a Reflect recent changes to exif.c 2002-08-21 11:37:22 +00:00
Marcus Boerger
6474731f91 some work on the messages 2002-08-13 09:41:30 +00:00
Rasmus Lerdorf
0779da509b Don't use long as a type 2002-08-13 04:11:51 +00:00
Marcus Boerger
4294f2a93d use of php_error_docref 2002-08-12 20:18:25 +00:00
Marcus Boerger
abb280e9f7 left on debug infos
#overlooked that in diff
2002-08-07 16:35:48 +00:00
Marcus Boerger
36986742ae Ignore additional thumbnails
#anybody interested in expansion to support multiple thumbnails?
2002-08-07 16:19:43 +00:00
Dan Kalowsky
e410749014 Keeping function prototype variables the same 2002-08-06 03:48:15 +00:00
Marcus Boerger
7477baf33a datatype inconsistency found by Dan Kalowsky 2002-08-06 03:32:16 +00:00
Marcus Boerger
dfe1a65faf -fix warnings in windows build 2002-07-31 21:34:37 +00:00
Marcus Boerger
0383426860 -decode several MarkerNotes
-correct offset information in debug mode
@exif_read_data() can decode MarkerNote of several Cameras. (Marcus)
2002-07-28 17:21:51 +00:00
Marcus Boerger
8b853592b1 Missing Photoshop tags 2002-07-26 17:09:02 +00:00
Marcus Boerger
4a8dd1255f -handling of thumbnails in sub IFDs (the Photoshopway for TIFF)
-Some Photoshop specific tags
#after the last patches this finally fixes all warnings and errors in bug #18405
2002-07-25 00:52:30 +00:00
Marcus Boerger
837fa41da5 -naming convention
-better notices
-(D)WORD are unsigned datatypes
-started to split tygs into different arrays that would allow to handle vendor specific tags after detection of their markers
#BUT simply i do not have any vendor specific image tags...
2002-07-24 00:05:41 +00:00
Marcus Boerger
469266e4a2 added some more tags from WinXP
changed conersion for TAG_FMT_SBYTE & BYTE
#second change fixes unnecessary conversion timeout
#found by Johan Hultgren <johan@6thgear.se>
2002-07-22 15:07:12 +00:00
Marcus Boerger
b4c3a0f06e added EXIF Version 2.2 Tags 2002-07-22 11:36:17 +00:00
Marcus Boerger
21da93abe1 unify error messages & notices
# this fixes exif again since it was broken by message unify
2002-07-21 22:38:23 +00:00
Marcus Boerger
b634ec9e30 -fix datatypes for some vriables
-fix comment for function exif_process_CME
-force return parameters to be passed by reference
#this should kill warnings on win systems as found by Edin
2002-07-02 22:38:37 +00:00
Derick Rethans
dc900d4f77 Unify error messages part 1 2002-06-29 17:40:28 +00:00
Marcus Boerger
46a373ba70 modified test3 (old one had a warning) 2002-06-24 22:22:42 +00:00
Marcus Boerger
cccc4e3c5a register IMAGETYPE_<xxx> constants in image.c as they are needed
there.
2002-06-24 19:36:26 +00:00
Marcus Boerger
48bdf08edb @GetImageSize now allways set fields unknown to 0 and new Imagetype
@iff. (Marcus)
2002-06-24 19:19:08 +00:00
Marcus Boerger
1f56d4ba08 -imagetype2mimetype renamed to image_type_to_mime_type 2002-06-23 00:43:11 +00:00
Marcus Boerger
16a753d3c2 -new test for WinXP tags 2002-06-23 00:39:34 +00:00
Marcus Boerger
b21a4d7fa9 -fix test results 2002-06-23 00:38:25 +00:00
Marcus Boerger
966e1d450e -corrected test result 2002-06-23 00:26:34 +00:00
Marcus Boerger
d782c712ca -exif version
-missing constant (and notice)
-corrected error messages
2002-06-22 23:43:16 +00:00
Marcus Boerger
4c53f954be @exif_read_data returns mime-type now for image and thumbnail And exif_thumbnail now optionally returns imagetype. (Marcus)
#So now you can use imagetype2filetype with exif_thumbnail
2002-06-22 18:38:33 +00:00
foobar
3b9401a3ed DO NOT use C++ comments! 2002-05-19 00:02:07 +00:00
Frank M. Kromann
45881d2b40 Fixing Win32 compilation of exit 2002-04-15 22:23:20 +00:00
Marcus Boerger
ef5c0f7cc6 support for WinXP tags (thanks to Rui Carmo) 2002-04-14 20:47:21 +00:00
foobar
8581de0fe2 Fix the build.
# Marcus, do you TEST build at all before you commit?!
2002-04-12 22:02:28 +00:00