Commit Graph

57 Commits

Author SHA1 Message Date
Felipe Pena
b22f47ee30 - Added arginfo 2008-07-20 14:28:41 +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
Antony Dovgal
c9805e7b92 MFH: check return value of *time_r() functions for NULL 2007-06-07 08:44:41 +00:00
Ilia Alshanetsky
f8958c466d Fixed a possible memory corruption inside mime_content_type() on a
non-existent file.
2007-02-15 00:05:42 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Antony Dovgal
e5f95ec3e4 MFH 2006-12-28 20:45:27 +00:00
Ilia Alshanetsky
20b92bf4cc Use thread-safe code 2006-11-30 15:13:19 +00:00
Ilia Alshanetsky
e6a3431315 Fixed bug #39623 (thread safety fixes on *nix for putenv() & mime_magic). 2006-11-26 17:02:13 +00:00
Dmitry Stogov
1dbaae2795 Added automatic module globals management 2006-06-15 18:33:09 +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
Derick Rethans
3e46adb183 - MFH: Fixed bug #33829 (mime_content_type() returns text/plain for gzip and
bzip files).
2005-10-18 15:04:07 +00:00
Antony Dovgal
bddc4e6c1d MFH: fix mime_magic problems with ZTS 2005-10-18 12:41:29 +00:00
Ilia Alshanetsky
a218299d6a ZTS fix 2005-10-14 15:30:39 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Ilia Alshanetsky
35df0e5571 Compiler warning fix. 2005-07-11 03:24:28 +00:00
Ilia Alshanetsky
266f2fbf13 Return error on an invalid input to mime_content_type() function. 2005-05-25 03:05:47 +00:00
foobar
ce742b08b0 - Fix typo (avaliable -> available). (bug #28725) 2004-12-16 12:34:32 +00:00
Frank M. Kromann
2acc314e6f sys/stat.h is includes in php_streams.h no need to do that again. 2004-08-03 04:15:34 +00:00
foobar
99bc88b7c0 Fix the mime_magic.debug option init 2004-01-16 11:15:13 +00:00
foobar
124e6c8b6d - Fixed bug #26844 (ext/mime_magic: magic file validation broken). 2004-01-15 06:09:16 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
foobar
5b4e619cdd - Moved all the mime_magic.c specific stuff into their own header file
to prevent possible compile failures.

# Should fix bug #26103
2003-11-04 05:15:19 +00:00
Ilia Alshanetsky
30cc4dc8c9 Fixed bug #25918 (Possible crash in mime_content_type()). 2003-10-20 14:36:51 +00:00
Hartmut Holzgraefe
ee922e3085 compiler warning fixes, one of them a potential crash bug 2003-09-26 07:47:01 +00:00
Ilia Alshanetsky
ef088c9d16 Fixed bug #25155 (Possible namespace conflict between mime-magic & mssql) 2003-08-19 22:13:01 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Hartmut Holzgraefe
bf0e2751bb ... as suggested by Wez 2003-06-05 14:42:12 +00:00
Hartmut Holzgraefe
55e2bbecfa mime_content_type() now also accepts open streams as argument
streas have to bee seekable, the stream position is reset to
its original value using ftell and fseek after operation
2003-06-04 14:21:40 +00:00
foobar
a09e1397c7 Fixed compile failures when ZLIB / PCRE are compiled as shared
extensions in same build.
2003-02-09 19:09:52 +00:00
Sander Roobol
e9d0a58cb0 Fix build 2003-01-26 09:13:31 +00:00
Hartmut Holzgraefe
974ff24e80 - mime file parser messages only with mime_magic.debug=On (default: off)
- fix docref URL in startup error messages
- show status in php info, either "enabled" or "..., disabled"
2003-01-25 16:25:37 +00:00
Ilia Alshanetsky
3d8e54f3a2 Changed php_error to php_error_docref. 2003-01-19 00:45:53 +00:00
Moriyoshi Koizumi
7ecd3ff91a Reduced compiler warnings 2003-01-10 04:37:26 +00:00
Sebastian Bergmann
b506f5c8f8 Bump year. 2002-12-31 16:08:15 +00:00
Stefan Esser
e900f8c97b do correct casting 2002-12-24 23:28:05 +00:00
Stefan Esser
0bb1ff71d6 fix compile error on IRIX 2002-12-23 08:50:05 +00:00
Hartmut Holzgraefe
8bd550825f email address change 2002-11-25 12:30:28 +00:00
Moriyoshi Koizumi
b75f2df3d4 We have to use binary mode here. 2002-11-18 21:20:45 +00:00
Moriyoshi Koizumi
a9d7509036 Fixed possible leaks 2002-11-18 21:15:41 +00:00
Moriyoshi Koizumi
90317cbc5d Always use binary mode for magic files 2002-11-15 16:25:31 +00:00
Moriyoshi Koizumi
3ecc71a099 Fixed segfault in case the specified magic file cannot be read. 2002-11-15 15:13:30 +00:00
Moriyoshi Koizumi
ee37386183 Use C comments 2002-11-15 01:45:23 +00:00
Wez Furlong
c429805e0b Make that error message more meaningful for systems like my SuSE 7.0 with
an apparently broken magic file.
2002-10-04 19:01:34 +00:00
Sascha Schumann
75c9efc08a Fix typo 2002-09-24 06:39:43 +00:00
Edin Kadribasic
3c4c2926d0 magic.mime seems to be more common name for the file. 2002-08-22 13:23:51 +00:00
Edin Kadribasic
55173781b5 @- Made mime_magic extension available on win32 platform. (Edin)
Mime_magic extensions builds on windows now.
2002-08-22 13:16:03 +00:00
Ilia Alshanetsky
848bcf7527 Instead of hardcoding the path of magic.mime file, try to find the file
inside common paths for the file.
2002-08-22 12:21:25 +00:00
Derick Rethans
734496b44f - Nuke some TSRMLS_FETCHes 2002-06-26 18:49:08 +00:00