Commit Graph

  • 506493c52d Added volume find callback to RarArchive::open/rar_open. cataphract 2010-04-23 11:01:14 +00:00
  • d9728f9a61 Added volume find callback to RarArchive::open/rar_open. cataphract 2010-04-23 11:01:14 +00:00
  • 3c8d037135 Added test for files when unpacked size bigger than 2 GiB (it will take some effort to do the same for packed size > 2 GiB). Relaxed test #12 (changes to the unpacking algorithm in unrar 3.9.10 have apparently changed the output stream for corrupted entries). cataphract 2010-04-21 14:13:43 +00:00
  • dbc1eb0324 Added test for files when unpacked size bigger than 2 GiB (it will take some effort to do the same for packed size > 2 GiB). Relaxed test #12 (changes to the unpacking algorithm in unrar 3.9.10 have apparently changed the output stream for corrupted entries). cataphract 2010-04-21 14:13:43 +00:00
  • 2fb18b2fe4 Fixed packed sizes using high bits from unpacked sizes. Changed the check on the size of longs so that the compiler does not complain when long is 32-bit long. Added unrar.dll documentation. cataphract 2010-04-21 11:46:04 +00:00
  • 6f0c225729 Fixed packed sizes using high bits from unpacked sizes. Changed the check on the size of longs so that the compiler does not complain when long is 32-bit long. Added unrar.dll documentation. cataphract 2010-04-21 11:46:04 +00:00
  • 8f206263cb Merged with UnRAR 3.9.10 (RAR 3.9.3). cataphract 2010-04-20 19:22:30 +00:00
  • 7af1a72fb4 Merged with UnRAR 3.9.10 (RAR 3.9.3). cataphract 2010-04-20 19:22:30 +00:00
  • d7d4f10f7f Tagging release 2.0.0 (only difference to the release tarball being the version number 2.0.0-dev having been changed to 2.0.0). ext-v2.0.0 cataphract 2010-04-20 12:48:08 +00:00
  • f78d15f947 Preparing for 2.0.0 release. cataphract 2010-04-20 12:26:15 +00:00
  • 0f76b938a4 Preparing for 2.0.0 release. cataphract 2010-04-20 12:26:15 +00:00
  • a751cf4565 Renamed RarArchive::list() to RarArchive::getEntries() (see bug #17025). The old name of the method can be activated by defining RAR_ARCHIVE_LIST_ALIAS. cataphract 2010-04-20 11:32:30 +00:00
  • 670290aad1 Renamed RarArchive::list() to RarArchive::getEntries() (see bug #17025). The old name of the method can be activated by defining RAR_ARCHIVE_LIST_ALIAS. cataphract 2010-04-20 11:32:30 +00:00
  • 8b99444811 s,function_entry,zend_function_entry, As announced in http://news.php.net/php.pecl.dev/7123 johannes 2010-03-31 20:39:48 +00:00
  • 82d3711a99 s,function_entry,zend_function_entry, As announced in http://news.php.net/php.pecl.dev/7123 johannes 2010-03-31 20:39:48 +00:00
  • 5194cca0c7 Listed files added in the previous commit to package.xml. cataphract 2010-03-07 00:50:00 +00:00
  • af49aafb1d Listed files added in the previous commit to package.xml. cataphract 2010-03-07 00:50:00 +00:00
  • 52925d7d7f Fixed infinite loop when opening files with missing volumes. cataphract 2010-03-07 00:43:31 +00:00
  • 7288320a37 Fixed infinite loop when opening files with missing volumes. cataphract 2010-03-07 00:43:31 +00:00
  • a831f6cdce Fixed config.w32 for static configurations. cataphract 2010-01-18 11:04:24 +00:00
  • fc23699737 Fixed config.w32 for static configurations. cataphract 2010-01-18 11:04:24 +00:00
  • 0867658c99 Updated bundled UnRAR lib to 3.9.7. Deleted two redundant files. cataphract 2010-01-18 04:09:51 +00:00
  • fffcb9d508 Updated bundled UnRAR lib to 3.9.7. Deleted two redundant files. cataphract 2010-01-18 04:09:51 +00:00
  • 858534eb8a Fixed RarException::isUsingExceptions parsing a boolean argument into a long, which made the value depend on uninitialized data. cataphract 2010-01-17 09:53:07 +00:00
  • 79afa19815 Fixed RarException::isUsingExceptions parsing a boolean argument into a long, which made the value depend on uninitialized data. cataphract 2010-01-17 09:53:07 +00:00
  • 9502d882d7 Fixed test 32 (trivial). cataphract 2010-01-17 08:54:43 +00:00
  • 02855820f7 Fixed test 32 (trivial). cataphract 2010-01-17 08:54:43 +00:00
  • 958c33f734 Fixed two bugs: RarArchive get iterator on closed file caused crash. rararch_it_current_data was copying the address of a stack allocated variable. Only caught this when testing on release PHP 5.2 under Linux. cataphract 2010-01-17 08:46:30 +00:00
  • 5f7b823e40 Fixed two bugs: RarArchive get iterator on closed file caused crash. rararch_it_current_data was copying the address of a stack allocated variable. Only caught this when testing on release PHP 5.2 under Linux. cataphract 2010-01-17 08:46:30 +00:00
  • 54cb3a4606 package.xml: Release Candidate versions must have upper-case RC, not lower-case rc cataphract 2010-01-16 20:55:07 +00:00
  • 59437d527f package.xml: Release Candidate versions must have upper-case RC, not lower-case rc cataphract 2010-01-16 20:55:07 +00:00
  • baf6afc412 package.xml updated. cataphract 2010-01-16 20:52:17 +00:00
  • 9be4e1e0e3 package.xml updated. cataphract 2010-01-16 20:52:17 +00:00
  • 71041456d1 Fixed memory leaks. Tab -> space in package.xml cataphract 2009-12-28 17:41:29 +00:00
  • 7089587b9e Fixed memory leaks. Tab -> space in package.xml cataphract 2009-12-28 17:41:29 +00:00
  • 0b214e92c5 Fixed missing definitions in 5.2. cataphract 2009-12-27 19:34:35 +00:00
  • 43dc0541aa Fixed missing definitions in 5.2. cataphract 2009-12-27 19:34:35 +00:00
  • ba0925f888 Hopefully fixed non-ZTS compilation. Fixed test #34. cataphract 2009-12-27 15:58:53 +00:00
  • 36b2b5d2fc Hopefully fixed non-ZTS compilation. Fixed test #34. cataphract 2009-12-27 15:58:53 +00:00
  • e29bc46e06 Renamed rar_solid_get to rar_solid_is. RarException::setUsingExceptions no longer returns anything. cataphract 2009-12-24 20:28:10 +00:00
  • 4e2dc20b2d Renamed rar_solid_get to rar_solid_is. RarException::setUsingExceptions no longer returns anything. cataphract 2009-12-24 20:28:10 +00:00
  • f9947cc073 Fixed prototypes and header missing. cataphract 2009-12-24 18:53:36 +00:00
  • 61183fa339 Fixed prototypes and header missing. cataphract 2009-12-24 18:53:36 +00:00
  • b602688d96 Added error handling with exceptions. Introduction of RarException. Added rar_solid_get RarEntry and RarArchive cannot be instantiated in user space. Quite some refactoring. cataphract 2009-12-21 14:04:56 +00:00
  • 7da530c6e3 Added error handling with exceptions. Introduction of RarException. Added rar_solid_get RarEntry and RarArchive cannot be instantiated in user space. Quite some refactoring. cataphract 2009-12-21 14:04:56 +00:00
  • 989fdbcaf4 Fixed line endings, added svn properties on rararch.c cataphract 2009-12-21 00:40:56 +00:00
  • b7794e851d Fixed line endings, added svn properties on rararch.c cataphract 2009-12-21 00:40:56 +00:00
  • a6623224ae RarArchive made traversable. cataphract 2009-12-16 10:49:54 +00:00
  • 444ee4b790 RarArchive made traversable. cataphract 2009-12-16 10:49:54 +00:00
  • f5d025190a state the truth tony2001 2009-12-10 10:38:46 +00:00
  • 51b5b9b267 state the truth tony2001 2009-12-10 10:38:46 +00:00
  • cddd4631bb Restored LPARAM to long and let's hope sizeof(long) == sizeof(void*) in non-windows platforms. cataphract 2009-12-07 16:48:43 +00:00
  • 65758585af Restored LPARAM to long and let's hope sizeof(long) == sizeof(void*) in non-windows platforms. cataphract 2009-12-07 16:48:43 +00:00
  • a79fcda447 Reverted accidental package.xml change. cataphract 2009-12-07 16:17:17 +00:00
  • 5966259561 Reverted accidental package.xml change. cataphract 2009-12-07 16:17:17 +00:00
  • 89d6579ddf Fix for Linux compilation. Tests correction and relaxation where required. cataphract 2009-12-07 16:08:33 +00:00
  • 67d29529f1 Fix for Linux compilation. Tests correction and relaxation where required. cataphract 2009-12-07 16:08:33 +00:00
  • 27de7b6dde Hopefully fixed VC6 compilation, added two more tests and updated package.xml cataphract 2009-12-07 15:34:13 +00:00
  • e09548cd2f Hopefully fixed VC6 compilation, added two more tests and updated package.xml cataphract 2009-12-07 15:34:13 +00:00
  • 6a6f00edaf Fixed RarArchive::getEntry not working. cataphract 2009-12-07 07:42:17 +00:00
  • 6faef72502 Fixed RarArchive::getEntry not working. cataphract 2009-12-07 07:42:17 +00:00
  • ffa6ee103e Fixed an obvious mistake. cataphract 2009-12-07 06:36:53 +00:00
  • c39465fa08 Fixed an obvious mistake. cataphract 2009-12-07 06:36:53 +00:00
  • a1809bf13d Refactoring/added RarArchive class. cataphract 2009-12-07 06:12:39 +00:00
  • 633a15f4b4 Refactoring/added RarArchive class. cataphract 2009-12-07 06:12:39 +00:00
  • 16a4089fda Hopefully fixed non-windows building. cataphract 2009-12-05 01:16:36 +00:00
  • c4432e6c4b Hopefully fixed non-windows building. cataphract 2009-12-05 01:16:36 +00:00
  • ac01e8d172 Proper support for encrypted files. Restored C-like feof semantics. Added tests with encrypted files and unix directories and links. cataphract 2009-12-01 00:38:02 +00:00
  • 81934056d0 Proper support for encrypted files. Restored C-like feof semantics. Added tests with encrypted files and unix directories and links. cataphract 2009-12-01 00:38:02 +00:00
  • c578e88a5b Same as last commit, but this time with the correct changes... cataphract 2009-11-29 19:21:06 +00:00
  • 896a5d3a91 Same as last commit, but this time with the correct changes... cataphract 2009-11-29 19:21:06 +00:00
  • 78df520047 Correct fixes for tests in PHP 5.2. cataphract 2009-11-29 19:05:05 +00:00
  • a153f2ba84 Correct fixes for tests in PHP 5.2. cataphract 2009-11-29 19:05:05 +00:00
  • 640c2032cc Fixed PHP 5.2 branch compatibility. cataphract 2009-11-29 19:00:18 +00:00
  • 6c8276f3c8 Fixed PHP 5.2 branch compatibility. cataphract 2009-11-29 19:00:18 +00:00
  • 834cbb9569 Fixed typo. Fixed package.xml. Promoted to beta. cataphract 2009-11-29 17:59:29 +00:00
  • 380eb4fd06 Fixed typo. Fixed package.xml. Promoted to beta. cataphract 2009-11-29 17:59:29 +00:00
  • 5280bcbdfc Updated package.xml and CREDITS. Release 2.0.0snap29112009 cataphract 2009-11-29 17:34:07 +00:00
  • c502332f09 Updated package.xml and CREDITS. Release 2.0.0snap29112009 cataphract 2009-11-29 17:34:07 +00:00
  • a550017f63 Fixed two memory leaks reported by the zend engine. Fixed expected output of test 021 to work in linux. cataphract 2009-11-29 16:17:48 +00:00
  • e64419b1c3 Fixed two memory leaks reported by the zend engine. Fixed expected output of test 021 to work in linux. cataphract 2009-11-29 16:17:48 +00:00
  • 6cb1f002bf Added missing prototype in rarentry.c. Currently a no-op since the usage of the function was below its definition. cataphract 2009-11-29 13:24:57 +00:00
  • a9d71e2adb Added missing prototype in rarentry.c. Currently a no-op since the usage of the function was below its definition. cataphract 2009-11-29 13:24:57 +00:00
  • 3afbfd7cdf rarentry.c: added header, added svn properties and wrapped in an extern C in case of compilation with a C++ compiler. cataphract 2009-11-29 13:19:02 +00:00
  • c56f0c4ad9 rarentry.c: added header, added svn properties and wrapped in an extern C in case of compilation with a C++ compiler. cataphract 2009-11-29 13:19:02 +00:00
  • 9a5d0a5158 Refactoring. Added a bunch of constants to RarEntry. Fixed possible crash with empty RAR files (though WinRAR doesn't let you create empty RAR files) Added __toString method All RarEntry properties are now private. Made most methods not implementation dependent. cataphract 2009-11-29 03:41:11 +00:00
  • 6de793130a Refactoring. Added a bunch of constants to RarEntry. Fixed possible crash with empty RAR files (though WinRAR doesn't let you create empty RAR files) Added __toString method All RarEntry properties are now private. Made most methods not implementation dependent. cataphract 2009-11-29 03:41:11 +00:00
  • 384c000fff Test for RarEntry::getStream() with diectories. feof marked right after creation of stream if it can right then be determined that there are no bytes to be read. These are not C feof semantics, but I can find no documentation that says this is forbidden. _rar_list_files now doesn't call realloc every time it processes a header (allocates powers of 2), thus improving performance. cataphract 2009-11-26 01:40:14 +00:00
  • ba66f77e5f Test for RarEntry::getStream() with diectories. feof marked right after creation of stream if it can right then be determined that there are no bytes to be read. These are not C feof semantics, but I can find no documentation that says this is forbidden. _rar_list_files now doesn't call realloc every time it processes a header (allocates powers of 2), thus improving performance. cataphract 2009-11-26 01:40:14 +00:00
  • e68e6e3bcb Added RarEntry::isDirectory(). cataphract 2009-11-25 11:22:03 +00:00
  • f93c189947 Added RarEntry::isDirectory(). cataphract 2009-11-25 11:22:03 +00:00
  • 98d0c44383 Test #012 had to be further relaxed. cataphract 2009-11-23 19:27:23 +00:00
  • 5ba817d02c Test #012 had to be further relaxed. cataphract 2009-11-23 19:27:23 +00:00
  • 85c3dd180c Fixed test #016 (file count correct). It's irrelevant that the file count is correct because you won't be able to extract the files that ended up with the same wide file name, but now the test passes... Test #012 still wouldn't pass, so it was relaxed. cataphract 2009-11-23 19:26:03 +00:00
  • 3655bf9e21 Fixed test #016 (file count correct). It's irrelevant that the file count is correct because you won't be able to extract the files that ended up with the same wide file name, but now the test passes... Test #012 still wouldn't pass, so it was relaxed. cataphract 2009-11-23 19:26:03 +00:00
  • 99da1bf738 Fixed bug in unrarlib that makes tests 012 and 016 fail less miserably. On dll.cpp on line 193, CharToWide is called but the return value is not checked. CharToWide calls mbstowcs(), which stops when an invalid multibyte sequence is encountered and returns -1. So the string will be truncated until before the invalid sequence and Dest buffer will not be L'\0'-terminated unless you happened to fill RARHeaderDataEx with 0's before (for instance, if you called calloc to allocate the memory). Fixed by checking the return value and force try to do the conversion via UtfToWide, which handles the conversion more gracefully (ignores invalid sequences). cataphract 2009-11-23 18:42:59 +00:00
  • 3254b497a2 Fixed bug in unrarlib that makes tests 012 and 016 fail less miserably. On dll.cpp on line 193, CharToWide is called but the return value is not checked. CharToWide calls mbstowcs(), which stops when an invalid multibyte sequence is encountered and returns -1. So the string will be truncated until before the invalid sequence and Dest buffer will not be L'\0'-terminated unless you happened to fill RARHeaderDataEx with 0's before (for instance, if you called calloc to allocate the memory). Fixed by checking the return value and force try to do the conversion via UtfToWide, which handles the conversion more gracefully (ignores invalid sequences). cataphract 2009-11-23 18:42:59 +00:00
  • 4dd6d7933d Hopefully fixed tests #012 and #016 in platforms with 32-bit wchar_t. Arc->FilenameW could have invalid unicode characters that were discarded when converted into multi-byte UTF-8 string. Then _rar_find_file would convert UTF-8 back to multi-character and compare with Arc->FilenameW, thus failing. Now Arc->FilenameW is fixed before the comparison by removing its invalid characters. cataphract 2009-11-23 13:01:20 +00:00
  • da1c055202 Hopefully fixed tests #012 and #016 in platforms with 32-bit wchar_t. Arc->FilenameW could have invalid unicode characters that were discarded when converted into multi-byte UTF-8 string. Then _rar_find_file would convert UTF-8 back to multi-character and compare with Arc->FilenameW, thus failing. Now Arc->FilenameW is fixed before the comparison by removing its invalid characters. cataphract 2009-11-23 13:01:20 +00:00
  • 606d842e57 Small corrections. cataphract 2009-11-23 00:49:10 +00:00