1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Commit Graph

51 Commits

Author SHA1 Message Date
Ilia Alshanetsky ae31c3c66a MFB: Fixed 2 memory corruptions in zip extension idenfied by
oo_properties.phpt test
2009-03-01 17:35:25 +00:00
Pierre Joye 74f431ed45 - Fixed a crash on extract in zip when files or directories entry names contain
a relative path. (affects only 5.2 as it is a limitation in 5.2's virtual_file_ex)
2009-02-05 19:53:22 +00:00
Pierre Joye ab61e0138e - MFH: fix filename property read 2009-01-02 00:12:29 +00:00
Sebastian Bergmann ef49b9a8de MFH: Bump copyright year, 3 of 3. 2008-12-31 11:17:49 +00:00
Felipe Pena 1bedb57dd4 - MFH: Removed unused variables 2008-11-12 17:50:37 +00:00
Pierre Joye 36b9272e3c - MFH:
- #14962, makes extractTo 2nd argument really optional
 - replace ZEND_ENGINE_2_1 by PHP_ZIP_USE_OO
 - sync tests
2008-11-12 11:59:26 +00:00
Pierre Joye 047bda3cb8 - MFH
- Update ziplib
 - flatten path and make them relative before extraction
 - remove unnecessary export
2008-10-23 16:13:51 +00:00
Pierre Joye c1fa811b5c - reflect the correct version 2008-01-18 00:51:38 +00:00
Greg Beaver 736e23a4c5 MF5.3: install headers, use correct zip version 2008-01-18 00:31:23 +00:00
Greg Beaver 1d3604c1b1 MFH: export libzip symbols 2008-01-14 03:19:41 +00:00
Sebastian Bergmann d9f3a1305f MFH: Bump copyright year, 2 of 2. 2007-12-31 07:20:42 +00:00
Hannes Magnusson 25a7740600 Fix protos 2007-12-15 12:52:11 +00:00
Hannes Magnusson 42e003cd6c MFH: - Fix isset/empty($ZipArchive->property)
MFH: - Add test
2007-08-06 22:02:32 +00:00
Antony Dovgal 61d697d100 fix ws 2007-06-04 06:38:22 +00:00
Pierre Joye c76e5dd0bd - fix logic (goto is a gift, I should use it :) 2007-06-03 21:34:21 +00:00
Pierre Joye d5d2d6e30e - pecl bug #11216, better fix, leak removed and improved test
- typo in news, better late than never (-d)
2007-06-03 21:21:57 +00:00
Pierre Joye ef952b0383 - PECL #11216, addEmptyDir crashes if the directory already exists 2007-06-03 19:47:17 +00:00
Pierre Joye b65cdd0793 - use the same checks for zip_stat 2007-05-19 22:25:11 +00:00
Ilia Alshanetsky c009fc8915 CS fixes
Fixed a possible crash in the event directory cannot be created, due to a
double free.
2007-05-19 19:29:37 +00:00
Ilia Alshanetsky 5ed63dd8a9 Fixed a possible memory leak on open_basedir validation 2007-03-14 15:02:20 +00:00
Pierre Joye fc3a62ed48 - MFH: openbasedir and safemode check in ::open() 2007-03-14 12:06:20 +00:00
Pierre Joye b40b5b5305 - MFH: Fixed possible relative path issues in zip_open in TS mode (old API) 2007-03-14 11:32:25 +00:00
Pierre Joye 1c0b8e6f15 - 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:08:57 +00:00
Pierre Joye 601a77b3a3 - #40228, ZipArchive::extractTo does create empty directories
recursively
2007-01-29 15:25:06 +00:00
Ilia Alshanetsky cbf6f5b538 Fixed memory leaks on error 2007-01-07 03:12:14 +00:00
Nuno Lopes 3eaf46af3e fix a few memleaks and double-free()s on error conditions 2007-01-06 20:16:25 +00:00
Sebastian Bergmann 4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Antony Dovgal 32d078f8e7 MFH 2006-12-25 22:40:23 +00:00
Hannes Magnusson 6077df1a03 Fix typo 2006-12-24 01:29:20 +00:00
Ilia Alshanetsky eaf3d32157 Safety checks 2006-12-23 23:28:39 +00:00
Pierre Joye a70264892b - fix warning
- addEmptyDir returns true on success
- remove useless semi column
2006-11-28 01:31:53 +00:00
Nuno Lopes c0b0d0a81a fix leak in the object destrucotr when zip_close() fails (fixes oo_delete.phpt) 2006-11-12 00:31:03 +00:00
Nuno Lopes 232bb79bed fix leaks within zip entries in several tests 2006-11-11 23:43:00 +00:00
Nuno Lopes d6802e1022 statification of local functions and variables.
also remove a few uneeded global variables
interesting new warnings:
/cvs/php5/ext/xmlwriter/php_xmlwriter.c:391: warning: 'xmlwriter_objects_clone' defined but not used
/cvs/php5/ext/xmlwriter/php_xmlwriter.c:1281: warning: 'zif_xmlwriter_start_dtd_entity' defined but not used
/cvs/php5/ext/xmlwriter/php_xmlwriter.c:1325: warning: 'zif_xmlwriter_end_dtd_entity' defined but not used
/cvs/php5/ext/xmlwriter/php_xmlwriter.c:1333: warning: 'zif_xmlwriter_write_dtd_entity' defined but not used
2006-11-09 16:04:34 +00:00
Pierre Joye 8ad0c6d543 - MFH:
- fix possible leak in statName and statIndex
 - add addEmptyDir() method
 - add zip_stat_init,zip_clear_error and zip_file_clear_error
 - add tests
 - Fix protos (Hannes)
 - setComment return value on success (Hannes)
2006-11-03 16:46:19 +00:00
Pierre Joye 85985ad895 - #38943, properties in extended class cannot be set
- use zend_object_std_init instead of a manual initialisation
2006-09-24 22:27:57 +00:00
Pierre Joye a0aabccac6 - MFH: PECL Bug #8700, zipArchive::getFromIndex() fails 2006-09-15 12:12:25 +00:00
Pierre Joye bb2d53e768 - PECL Bug #8676, addFile was not updated and still used VCWD_REALPATH,
it now uses expand_filepath
2006-09-12 12:02:49 +00:00
Pierre Joye 3f0f73beba - bump version, 5.2.0 will have zip-2.0.0-stable 2006-09-06 17:38:36 +00:00
Pierre Joye e85a378770 - wrong cast, strlen is int 2006-09-06 17:24:41 +00:00
Nuno Lopes eee95ef3f0 MFH zend_parse_parameters() fixes 2006-09-06 15:19:41 +00:00
Pierre Joye ad58ad265b - MFH: zip_open takes only one parameter (Thx Nuno L.) 2006-09-06 13:03:55 +00:00
Pierre Joye 46ce362ff3 - 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:23:43 +00:00
Pierre Joye 8e54de1d77 - bundled matches pecl 1.7.1 2006-08-25 16:03:00 +00:00
Pierre Joye 5c8533aa76 - solve the relative path issues in TS environment 2006-08-24 16:37:14 +00:00
Pierre Joye 4b7358e4e5 - nuke unused parameter (not present in old versions) 2006-08-14 15:07:52 +00:00
Pierre Joye 284ce40c4a - MFH: locateName should not change the state/error, can be used to test
an entry
2006-08-13 23:43:11 +00:00
Pierre Joye 8d07735332 - MFP:
- add overwrite mode to ZipArchive::open, always starts a new archive
 - Fix safe mode checks on extract
 - Fix possible leaks when a safe mode error has been raised
2006-08-13 21:09:59 +00:00
Pierre Joye 9d26a88c3d - temp fix for a segfault happening when one adds two entries with
the same name
2006-08-13 00:52:59 +00:00
Ilia Alshanetsky 3a78dce032 Cleanup phpinfo() output 2006-07-28 13:59:06 +00:00