Commit Graph

112 Commits

Author SHA1 Message Date
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
Antony Dovgal
8d9be0338b fix test names 2007-05-07 16:50:40 +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
8efa71db4a - MFB: Fixed snprintf() usage 2007-02-24 19:09:18 +00:00
Pierre Joye
c7d417e50e - merge from pecl: Force binary mode on windows 2007-02-24 18:59:37 +00:00
Pierre Joye
52a965d136 - MFB: free temp buffer 2007-02-24 18:50:53 +00:00
Marcus Boerger
20a40063c5 - avoid sprintf 2007-02-24 16:25:58 +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
Pierre Joye
1766548574 - #39952 zip ignoring --with-libdir on zlib checks (judas dot
iscariote at gmail dot com)
2006-12-26 09:52:32 +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
Ilia Alshanetsky
8efa38df0b zts fixes 2006-11-30 16:38:53 +00:00
Nuno Lopes
bcdfb60c51 MFB: fix leak in oo_stream.phpt 2006-11-12 00:41:41 +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
d34fc386ba MFB :fix leak in oo_setArchiveComment.phpt 2006-11-11 23:36:52 +00:00
Nuno Lopes
3717adbbd9 MFB: static'fication 2006-11-09 16:18:28 +00:00
Pierre Joye
6b0966c2a7 - _zip_error_clear declaration
- WS
2006-11-03 16:34:44 +00:00
Pierre Joye
d57e692624 - fix protos 2006-11-03 16:23:12 +00:00
Pierre Joye
2378a0f4d0 - add simple test for addEmptyDir() 2006-11-01 19:56:53 +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
7003c17f48 - add comment 2006-10-31 01:47:30 +00:00
Pierre Joye
2134c4880c - missing test archive 2006-10-31 00:57:22 +00:00
Pierre Joye
c7e9224471 - nuke flags local variable, it is constant 2006-10-30 23:00:54 +00:00
Pierre Joye
646396c935 - add tests for extractTo, set/getComment and stream and zip_entry_close 2006-10-30 17:43:21 +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
Hannes Magnusson
f5f54be5c1 Missing RETURN_TRUE inside the PHP_ZIP_SET_FILE_COMMENT macro 2006-10-25 12:32:10 +00:00
Hannes Magnusson
71f4d1fa01 Fix protos 2006-10-25 12:31:12 +00:00
Pierre Joye
7694aa3222 - remove remaining "mode" arguments in the old api 2006-10-22 00:43:23 +00:00
Hannes Magnusson
e531458f89 Remove double "wrong param count" warnings 2006-10-07 22:55:18 +00:00
Antony Dovgal
6c15a9cbc4 fix tests 2006-10-02 14:31:32 +00:00
Hannes Magnusson
86ac8a4b14 Rename utils.php to utils.inc 2006-10-02 14:17:42 +00:00
Pierre Joye
c5108cf86d - fix test, php6 displays the class
- mv 38943.phpt to bug38943.phpt
2006-09-25 09:17:56 +00:00
Pierre Joye
c82408cd25 - MFB: #38944, freshly created archive has no comment or cdir 2006-09-25 09:09:53 +00:00
Antony Dovgal
0fcfad3e5d add test 2006-09-25 08:44:58 +00:00
Pierre Joye
0a853d04f3 - #38943, properties in extended class cannot be set
- use zend_object_std_init instead of a manual initialisation
2006-09-24 22:27:20 +00:00
Pierre Joye
a072c66184 - PECL Bug #8700, zipArchive::getFromIndex() fails 2006-09-15 12:10:50 +00:00