Commit Graph

70 Commits

Author SHA1 Message Date
Pierre Joye
09edebd2b7 - MFB: fix filename property read 2009-01-02 00:22:55 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Felipe Pena
43791516db - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro (again!) 2008-11-17 11:26:25 +00:00
Felipe Pena
330dc7f034 - Removed unused variables 2008-11-12 17:26:19 +00:00
Pierre Joye
f5553f3494 - fix #14962 (makes 2nd argument really optional)
- replace ZEND_ENGINE_2_1 test with PHP_ZIP_USE_OO, version independent
- sync tests with 5.3
2008-11-12 11:24:48 +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
Pierre Joye
f8484b2d70 - MFB: flatten path and make them relative before extraction 2008-10-23 21:18:13 +00:00
Arnaud Le Blanc
51f7cc3925 initialize optional vars 2008-10-21 23:36:17 +00:00
Felipe Pena
fac97d5694 - Removed unused variables 2008-08-15 19:57:24 +00:00
Pierre Joye
1b57b75d50 - sync with 5.3 2008-08-08 18:13:55 +00:00
Felipe Pena
4b50d12a48 - MFB: Added arginfo (functions) 2008-07-03 12:21:25 +00:00
Antony Dovgal
485a57c37d fix typo 2008-07-01 08:21:57 +00:00
Pierre Joye
1e513413f2 - MFB: reflect the correct version 2008-01-18 01:24:29 +00:00
Greg Beaver
44173ebb5e MF5.3: install headers, use correct zip version 2008-01-18 00:33:15 +00:00
Antony Dovgal
338b087953 fix build 2008-01-14 08:17:55 +00:00
Greg Beaver
f9066b0e49 MFB: a few fixes: overwrote all my careful work in zipint_alias.h with zipint.h, so had to restore that.
PHP_RAW_NAMED_FE() won't work, have to use ZEND_RAW_FENTRY
2008-01-13 06:24:27 +00:00
Greg Beaver
f6c466a749 MFPECL: alias all zip identifiers to avoid potential name conflicts with other apache libs that may export zip symbols 2008-01-13 06:01:59 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Hannes Magnusson
6eee7dfce1 MFB: Fix protos 2007-12-15 12:57:05 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Hannes Magnusson
330797ea73 - Fix isset/empty($ZipArchive->property)
- Add test
2007-08-06 21:59:11 +00:00
Antony Dovgal
2ac15fe26d fix ws 2007-06-04 06:38:08 +00:00
Pierre Joye
6c9b114456 - MFB: fix logic 2007-06-03 21:35:39 +00:00
Pierre Joye
c4bff4d756 - MFB: PECL #11216, addEmptyDir crashes if the directory already exists 2007-06-03 21:30:12 +00:00
Pierre Joye
017f5f4238 - MFB:
- Fixed a possible crash in the event directory cannot be created, due to a
   double free. (Ilia)
 - Use the same tests for zip_stat
2007-05-19 22:26:32 +00:00
Pierre Joye
20a7f2b3f4 - MFB: Fixed a possible memory leak on open_basedir validation (Ilia) 2007-03-14 16:34:56 +00:00
Pierre Joye
4a13ef4b17 - add openbase_dir checks in ::open and addFile() 2007-03-14 12:02:40 +00:00
Pierre Joye
c5b9818e1e - MFB: free rsrc on error in zip_read (old API) 2007-03-14 11:37:35 +00:00
Pierre Joye
14c13cf53b - MFB: free buffer when zip_entry_read returns an empty entry 2007-03-14 11:25:20 +00:00
Pierre Joye
133c226f56 - MFB:
- rename SAFEMODE_CHECKFILE to OPENBASEDIR_CHECKPATH (can be used without
   confusing in head without confusion)
 - Add safemode and open basedir checks in zip:// wrapper (revert Ilia's
   patch). Bug found by Stefan Esser in his MOPB-20-2007
2007-03-14 11:22:13 +00:00
Pierre Joye
1a78358460 - MFB: #40228, ZipArchive::extractTo does create empty directories
recursively
2007-01-29 16:01:55 +00:00
Nuno Lopes
f3c60295ed MFB 2007-01-06 20:30:23 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal
fa6ec58949 add missing space for \0 2006-12-25 22:40:13 +00:00
Ilia Alshanetsky
34dc00fd7a MFB: safety checks 2006-12-23 23:29:41 +00:00
Pierre Joye
b29953d03c - unicode support for the procedural API 2006-12-19 02:05:27 +00:00
Pierre Joye
216631e809 - MFB: addDir returns true 2006-12-10 03:10:55 +00:00
Nuno Lopes
d21a598f61 MFB: fix leak in the object destrucotr when zip_close() fails (fixes oo_delete.phpt) 2006-11-12 00:31:37 +00:00
Nuno Lopes
cff4fd1eae MFB: fix leaks within zip entries in several tests 2006-11-11 23:43:40 +00:00
Nuno Lopes
3717adbbd9 MFB: static'fication 2006-11-09 16:18:28 +00:00
Pierre Joye
d57e692624 - fix protos 2006-11-03 16:23:12 +00:00
Pierre Joye
b4f45ea446 - fix stat when used with freshly added entries
- add zip_clear_error, zip_file_clear_error and  zip_stat_init in libzip
- add addEmptyDir(name) method, creates an empty directory
2006-11-01 00:53:32 +00:00
Pierre Joye
0ff3b772d0 - use zip_name_locate in getCommentName 2006-10-31 23:25:41 +00:00
Pierre Joye
e03046e2fb - mark extractTo as U-ready, path and filenames are now encoded correctly 2006-10-31 19:34:41 +00:00
Pierre Joye
9fecf3eea5 - fix possible leak in addFile when an unicode filename is given
- Mark getStream as Unicode ready, the tests was wrong
  $unistring .= fread($fpbinary); $unistring remains as unicode.
2006-10-31 19:03:57 +00:00
Pierre Joye
945f4cdfc4 - initial unicode support
. entry names will be converted to ascii. zip works with cp437
   when 7zip support will be added, unicode string will be supported
 . path and filenames are now encoded using php_stream_path_param_encode
   if the filename/path is used as entry name, it is converted to ascii
 . the stream (getStream and zip://) needs some tweak. I'm not sure if it
   should return unicode or binary, neither how to change the default. For
   now it returns unicode (seems to be the default :)
comments/suggestions welcome
2006-10-31 14:27:09 +00:00
Pierre Joye
c7e9224471 - nuke flags local variable, it is constant 2006-10-30 23:00:54 +00:00
Pierre Joye
602f95053a - fix leak in statName and statIndex
- use zip_locate_name instead of zip_stat in setCommentName (faster and
  work around for a possible bug)
2006-10-30 17:28:29 +00:00