Scott MacVicar
62a07e7f2e
Fix BC break in mime_content_type()
2009-08-11 23:05:13 +00:00
Scott MacVicar
daf4211e0b
Update fileinfo to libmagic 5.00 and remove dependency on dirent.h on Windows
2009-03-15 23:02:35 +00:00
Marcus Boerger
d4f5b3f0a9
- This is PHP 6 - if this ... ever gets out
2009-03-10 23:40:06 +00:00
Scott MacVicar
67e6af2b91
Remove all of the stuff we have in here for pre PHP 5.2 support and memset the fileinfo struct.
2008-12-22 16:44:51 +00:00
Felipe Pena
43791516db
- Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro (again!)
2008-11-17 11:26:25 +00:00
Pierre Joye
510d80e388
- MFH
...
- add 64bit typedef support
- fix vc6 build (1/2)
- still broken/does not build cleanly, more to come
2008-11-06 13:56:49 +00:00
Felipe Pena
e006a89e71
- Revert ZEND_BEGIN_ARG_INFO change
2008-11-02 21:10:13 +00:00
Felipe Pena
7eb2715464
- Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-10-24 14:34:17 +00:00
Antony Dovgal
07aac764a5
fix compile warning
2008-09-16 09:48:07 +00:00
Scott MacVicar
355c6d4226
Fix memory leak in a few cases
2008-09-16 09:45:06 +00:00
Scott MacVicar
71d0a46269
MFB Fixed bug #46086 (Segfault when accessing fileinfo class property)
2008-09-15 22:15:16 +00:00
Antony Dovgal
43034db4c1
actually reset stream position when finished
2008-09-13 21:32:15 +00:00
Felipe Pena
ac3ae236ec
- MFB:
...
- use php's stream in libmagic
- remove duplicate code (like mime_content_type() compatibility function
now use the same base as finfo_file())
- make it portable (works now on windows too, belongs other OSes)
- don't close caller streams in libmagic (prevent leak and zombie stream)
- string returned by magic_* are freed on magic_close, duplicate before
calling magic_close (set return value)
- if stat failed, don't try to call magic_* (when FILEINFO_MODE_FILE)
2008-09-07 20:29:54 +00:00
Felipe Pena
091ef5362f
- Fixed build
2008-08-29 15:17:25 +00:00
Antony Dovgal
674a7de88a
check for \0 to be consistent with other functions
2008-08-29 13:48:26 +00:00
Derick Rethans
6152e055b6
- MFB: Disable COMPRESS support for now, as it requires forking.
...
# @DOC [DOC] "DOC"
2008-08-29 13:39:17 +00:00
Derick Rethans
58a04c4494
- Adding back in mime_content_type().
2008-08-29 13:29:18 +00:00
Antony Dovgal
f0d93b2a07
fix file check and avoid segfault
2008-08-27 07:40:59 +00:00
Felipe Pena
ea5d69120d
- Fixed check for empty file name
2008-08-27 01:02:58 +00:00
Felipe Pena
2058709940
- Improved fix
2008-08-26 16:19:29 +00:00
Felipe Pena
3ade387884
- Added check for empty file name
2008-08-26 15:03:33 +00:00
Felipe Pena
f074bae1ea
- Added arginfo
...
- Fixed:
. proto: finfo_buffer
. parameter type in _php_finfo_get_type()
2008-07-25 15:20:58 +00:00
Felipe Pena
5d1a2c3317
- Fix build
2008-07-25 11:54:06 +00:00
Jani Taskinen
419a40f14a
- Enable fileinfo by default
2008-07-25 09:16:09 +00:00
Antony Dovgal
1133a7c224
use "r" instead of "z" when accepting resources
2008-07-24 15:07:37 +00:00
Antony Dovgal
8e24e64882
fix folding
2008-07-24 14:44:15 +00:00
Derick Rethans
8c8b504bc4
- Bundle the data file - you can still use the external file if you
...
specify that in the call to finfo_open().
2008-07-24 13:40:21 +00:00
Steph Fox
d834c32dea
- Bring the majority of PECL extensions into line with macro/x.x.x versioning.
...
- Please use the -dev tag during the development cycle so that snapshots can easily be distinguished from releases.
2008-03-31 09:37:51 +00:00
Ilia Alshanetsky
0b785996cf
Fixed pecl bug #6284
2006-11-07 21:18:51 +00:00
Derick Rethans
8b2b5efc88
- Make fileinfo compile with PHP 5.2 as well.
2006-10-10 09:52:06 +00:00
Ilia Alshanetsky
f2d96a5a96
fixed php version detection
2005-12-20 19:17:00 +00:00
Ilia Alshanetsky
1be62560c5
1.0.2
2005-12-06 00:27:01 +00:00
Ilia Alshanetsky
edca4a83ba
Fixed copy & paste error
2005-11-24 23:24:53 +00:00
Ilia Alshanetsky
9e3bff7b0f
1.0.1 release
2005-11-24 23:12:38 +00:00
Michael Wallner
1736cb4759
PHP-5.1 compatibility
2005-11-19 21:41:08 +00:00
Edin Kadribasic
adcc19f9ec
Support for Windows (Michael Wallner)
2005-09-07 11:16:57 +00:00
Antony Dovgal
5e8cd3a2da
fix segfault when failed to open magic file
2005-01-31 15:01:47 +00:00
Ilia Alshanetsky
25fd4c3bc2
Fixed ZTS build
2005-01-24 23:53:00 +00:00
Derick Rethans
f7afbb9370
- Fixed type which prevented this extension from being loaded as shared
...
extension.
2004-05-08 17:34:07 +00:00
Ilia Alshanetsky
d641ba3eae
More C++ comments.
2004-04-21 23:16:34 +00:00
Ilia Alshanetsky
1b80b33b87
C++ comments are ungood ;).
2004-04-21 23:06:26 +00:00
Hartmut Holzgraefe
375b5df63d
libmagic will only consume up to HOWMANY (hardcoded to 65536) bytes
...
from a file, so lets save bandwith and memory by limiting us to this
2004-04-21 22:49:35 +00:00
Ilia Alshanetsky
5a38078385
Fixes for PHP 4.3.X.
2004-02-13 01:19:57 +00:00
Ilia Alshanetsky
eb06e0c425
Initial commit of the fileinfo extension.
2004-02-13 01:06:06 +00:00