Commit Graph

132 Commits

Author SHA1 Message Date
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
Pierre Joye
8b87c6ba8e - MFB:PECL Bug #8676, addFile was not updated and still used VCWD_REALPATH,
it now uses expand_filepath
2006-09-12 12:04:03 +00:00
Hannes Magnusson
8f85e67b33 fix build 2006-09-06 19:50:22 +00:00
Pierre Joye
d21df00da5 - bump zip version, 2.0.0 2006-09-06 17:39:33 +00:00
Nuno Lopes
da0feb9dcd fix a few more zend_parse_parameters() issues 2006-09-06 15:13:16 +00:00
Pierre Joye
f4e4d1813b - MFB: don't rely/use VCWD_REALPATH, use expand_filepath instead
NB: that'd to be true for all this VCWD mess
2006-08-26 12:29:59 +00:00
Pierre Joye
204cb47e90 - MFB: bundled version matches pecl release 1.7.1 2006-08-25 16:03:50 +00:00
Pierre Joye
615ff5aaf2 - store the resolved path 2006-08-24 17:54:36 +00:00
Pierre Joye
296cef9570 - MFB: solve the relative path issues in TS environment 2006-08-24 17:31:20 +00:00
Pierre Joye
3717342c9f - MFB: nuke unused parameter (not present in old versions) 2006-08-14 15:39:28 +00:00
Pierre Joye
65c16fdbeb - locateName should not change the state/error, can be used to test
an entry
2006-08-13 23:39:57 +00:00
Pierre Joye
6f10c89a53 - remove all safe mode checks instead of borking the sources...Y 2006-08-13 20:54:27 +00:00
Pierre Joye
4ca1cc32e8 - package.xml is not needed here, only in pecl 2006-08-13 20:26:40 +00:00
Pierre Joye
faa0291462 - add overwrite mode to ZipArchive::open, always starts a new archive
- fix build with php6
- remove safemode when built against php6
2006-08-13 20:16:48 +00:00
Pierre Joye
926d018ea6 - remove dl() usage 2006-08-13 19:06:46 +00:00
Pierre Joye
dd76c0c737 - should not have been commited 2006-08-07 20:27:49 +00:00
Ilia Alshanetsky
321804b984 MFB: Cleanup phpinfo() output 2006-07-28 14:00:07 +00:00
Ilia Alshanetsky
03c13dd252 MFB: Fixed compiler warnings. 2006-07-27 00:37:06 +00:00
Pierre Joye
b4d4c0b0f8 - missing file 2006-07-24 17:38:22 +00:00
Pierre Joye
719447d3b6 - reimport (cannot symlink without replacing 4.4 and 5.0 versions) 2006-07-24 16:58:58 +00:00
Sterling Hughes
2d64d3aff5 pecl 2003-05-17 14:37:28 +00:00
David Hill
5c90216d2c 64-bit correction to variables passed to zend_parse_parameters
@64-bit correction to variables passed to zend_parse_parameters (Dave)
2003-03-06 23:07:28 +00:00
Ilia Alshanetsky
b566ad5d1b Changed php_error to php_error_docref. 2003-01-18 19:20:02 +00:00
Sebastian Bergmann
b506f5c8f8 Bump year. 2002-12-31 16:08:15 +00:00
Wez Furlong
58210f9232 Centralize fopencookie test 2002-12-09 18:29:07 +00:00
foobar
258177fafa Fix the phpize build 2002-10-17 05:06:53 +00:00
foobar
fcfa4ea62f Part 1 of fixing the shared build 2002-10-17 04:42:22 +00:00
Markus Fischer
601cf3690c - Add safe_mode/uid and open_basedir check to zip_open() (closes #16927). 2002-05-20 18:33:08 +00:00
Edin Kadribasic
cfd594e0ee Made ZIP extension available on Windows.
@- Made ZIP extension available on Windows. (Edin)
2002-05-11 02:12:44 +00:00
Derick Rethans
069d83c68a - Fix null-termination problem 2002-04-14 08:49:57 +00:00
Derick Rethans
d449021900 - Fix zzip_entry_read 2002-04-06 17:28:58 +00:00
Sascha Schumann
5cba3a99c2 extension converted automatically to PHP_NEW_EXTENSION. Manually confirmed 2002-03-12 16:44:00 +00:00
Sebastian Bergmann
90613d2282 Maintain headers. 2002-02-28 08:29:35 +00:00
Derick Rethans
b498ec567c - Fix for bug 14554 - segfault upon zip_entry_open. (patch by
phpbug@robin.pfft.net)
2001-12-23 01:59:10 +00:00
Sebastian Bergmann
38933514e1 Update headers. 2001-12-11 15:32:16 +00:00
Hartmut Holzgraefe
e3fdc42dfa proto fixes 2001-12-04 22:46:06 +00:00
foobar
f1397d5339 Unified the configure messages. 2001-11-30 19:00:13 +00:00
foobar
7e88a009d2 Fixed bug: #13652 2001-10-13 15:06:14 +00:00
Sterling Hughes
cdc5600880 revert removal of zend_parse_parameters and properly use
zend_parse_parameters (ie zval * instead of zval **).
2001-10-12 19:16:39 +00:00
Sterling Hughes
ce6dde342b fix segv's, zend_parse_parameters seems not to be able to handle
resources.

# emacs is cool
2001-10-12 15:07:05 +00:00
Stig Bakken
689252082c * zend_module_entry change: apino, debug and zts are moved first,
see README.EXTENSIONS file for upgrade help.
@Introduced extension version numbers (Stig)
2001-10-11 23:33:59 +00:00
Derick Rethans
9d4c81e925 - whitespace fix 2001-09-26 12:44:34 +00:00
Derick Rethans
6b0196b652 - Fixed error introduced by the macro substitution 2001-09-26 12:34:30 +00:00
Jeroen van Wolffelaar
23a942c795 Fix build 2001-09-26 09:09:40 +00:00
Sascha Schumann
78fb121a61 indentation fix 2001-09-21 13:13:10 +00:00
Derick Rethans
78747bd2df - Don't wrap lines... this is annoying while coding. 2001-09-09 13:29:31 +00:00
Sterling Hughes
36412eb5de proto fix 2001-08-24 02:24:03 +00:00
Sterling Hughes
bd4eb1bf78 noet 2001-08-24 01:23:14 +00:00
Andrei Zmievski
4e89fa671e I'm sure you meant 'l' here, Sterling. 2001-08-14 13:01:11 +00:00
Sterling Hughes
a24e3174a0 remove "i" 2001-08-13 22:01:39 +00:00
Zeev Suraski
0116a7b911 Fix crashes in parse_parameters calls
HEADS UP:  Make sure you supply TSRMLS_CC for this function!
I'll try to think of a way that'd allow us to find this issue using
the compiler.
2001-08-13 19:31:18 +00:00
Sterling Hughes
3f505f8624 ws 2001-08-13 05:51:06 +00:00
Sterling Hughes
e9cdaccc51 Whitespace fixes and moving to zend_parse_parameters() 2001-08-13 05:44:37 +00:00
Zeev Suraski
aa1772ca72 More TSRMLS_FETCH annihilation 2001-07-31 05:44:11 +00:00
Zeev Suraski
1c25b8dd53 Avoid TSRMLS_FETCH()'s, and clean up a bit of stale extern's and layout on the way 2001-07-30 01:56:43 +00:00
Sterling Hughes
bf1738e86d remove unneccessary cast 2001-06-06 20:30:58 +00:00
Rasmus Lerdorf
81e2cf03ac Fix folding and clean up some extensions 2001-06-06 13:06:12 +00:00
Rasmus Lerdorf
25c3a3a39d vim-6 does folding - clean up a bunch of missing folding tags plus
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
2001-06-05 13:12:10 +00:00
Sterling Hughes
c0779b6db9 Leftovers from master Beckham's patch. 2001-06-02 05:25:36 +00:00
Sterling Hughes
aa281a0771 Patch from Daniel Beckham, fetch the entry resource id, not the directory
resource id and fix prototype.
2001-06-02 05:12:44 +00:00
Sterling Hughes
ad0fb091a3 fix crash. 2001-05-31 23:48:05 +00:00
Sterling Hughes
ee60cf057f Change the names around a bit zip_opendir() -> zip_open() and
zip_open() -> zip_entry_open()
2001-05-27 02:52:45 +00:00
Sterling Hughes
ea0f4078b5 @ Renamed the ZZiplib extension to the Zip extension, function
@ names have also changed accordingly, functionality, has stayed
@ constant. (Sterling)
2001-05-27 02:49:46 +00:00