Commit Graph

41253 Commits

Author SHA1 Message Date
Christopher Jones
7060c9574c oci8: Sync with 5.3 - version macro updates and DRCP tweaks 2008-03-25 02:25:03 +00:00
5d953954a2 ChangeLog update 2008-03-25 01:32:15 +00:00
Ilia Alshanetsky
1ad9e6e1d0 MFB: Fixed test on systems where . and .. order not guaranteed 2008-03-24 18:34:44 +00:00
Antony Dovgal
4c7b5a89ba Change streams to not use mmap() when reading files (aka copying to memory).
There are two problems with mmap() in this case:
1) there is no performance gain since we allocate the memory anyways;
2) memcpy() may crash if somebody truncates this file at the same moment
(see http://dev.daylessday.org/diff/mmap.phps for example);

It seems to work fine with fpassthru(), though why it is so should be investigated.

Thanks to Andrey Vasilishin for the report and Anight for pressing this through =)
2008-03-24 16:28:08 +00:00
Derick Rethans
38ffd11722 - Updated to version 2008.2 (2008b) 2008-03-24 13:00:24 +00:00
Marcus Boerger
7202434956 - Add documentation 2008-03-24 12:53:28 +00:00
Dmitry Stogov
cee56e2022 Fixed ws and comment 2008-03-24 09:30:54 +00:00
Dmitry Stogov
824fa7ad54 Fixed tests (file order is undefined, so we need to sort() them) 2008-03-24 09:00:41 +00:00
Greg Beaver
1bda8cf708 a subtle plea for help to Marcus... 2008-03-24 03:05:24 +00:00
Greg Beaver
2e9fca4f0b fix read/write for PharData object, update tests to current API 2008-03-24 03:01:31 +00:00
Greg Beaver
b4b890cb8f check for invalid aliases, add tests for this and direct setting of stub/alias 2008-03-24 01:33:30 +00:00
27826add0f ChangeLog update 2008-03-24 01:31:45 +00:00
Greg Beaver
cea3169ca6 prevent direct setting of stub or alias in tar/zip 2008-03-24 01:18:50 +00:00
Greg Beaver
7493b9dfb6 update TODO 2008-03-23 22:51:00 +00:00
Greg Beaver
95eeee9156 not all tests have been converted over to the new API, but it works
conversion is now split into 3 separate methods
1\) convertToZip\(\) convertToTar\(\) and convertToPhar\(\) exclusively change file format
2\) compress\(\) sets compression, accepting Phar::GZ, Phar::BZ2, or Phar::NONE
3\) convertToExecutable\(\) allows stub creation in tar/zip, convertToData\(\) prevents it

all methods return either Phar or PharData objects, allowing fluent interface.

only 1 test has been converted to the new format, but the API works
2008-03-23 22:42:45 +00:00
Greg Beaver
cac70206f2 add Phar->getPath() for retrieving the full path to the phar archive.
this is useful for renaming and also always returns the realpath()
2008-03-23 19:03:15 +00:00
Greg Beaver
ca92928b48 fix param parsing for Phar::running() to be optional
# this is the last bug for ZF app - it now works!
2008-03-23 17:36:57 +00:00
Marcus Boerger
69c71f703e - Add .cvsignore 2008-03-23 16:51:52 +00:00
Ilia Alshanetsky
4743186f27 MFB: removed unused var 2008-03-23 15:49:51 +00:00
Marcus Boerger
e8ef82bc6f - MFH Add tests 2008-03-23 13:38:20 +00:00
Greg Beaver
27ca45f898 don't disallow opening .tar/.zip files as Phar object if readonly is disabled, the whole idea is to be able to
add crap including an automatic stub or explicit stub
2008-03-23 06:59:59 +00:00
Greg Beaver
39c4f38c27 rename Phar::getRunningPhar\(\) to Phar::running\(\) and by default return the full
phar url, if optional parameter is false, return the path to the phar on disk.  Fix a double free on failed mount
2008-03-23 06:00:31 +00:00
Greg Beaver
eea82226c1 fix potential segfault by misuse of phar_find_in_include_path 2008-03-23 05:39:58 +00:00
66316d7f04 ChangeLog update 2008-03-23 01:31:36 +00:00
Greg Beaver
62ed0adcca fix memleak found by valgrind 2008-03-23 00:05:53 +00:00
Greg Beaver
15f8facded fix Bug #13110: using rewrite parameter to webPhar causes memory error 2008-03-22 22:56:04 +00:00
Greg Beaver
bf081ec2a5 add failing test for bug #13110 2008-03-22 22:44:21 +00:00
Greg Beaver
6cef8da201 move all blah++ to ++blah where possible for those with crapass compilers 2008-03-22 22:11:49 +00:00
Greg Beaver
1b05ce68d7 fix all frontcontroller tests - cgi sapi was not being detected, only fastcgi 2008-03-22 22:04:21 +00:00
Greg Beaver
01e5bbbaf5 fix memleak in php 5.2, simplify code slightly 2008-03-22 21:54:55 +00:00
Steph Fox
1feb9b581a Satisfy Greg's inertia 2008-03-22 21:54:15 +00:00
Greg Beaver
6be582b537 fix test 2008-03-22 21:53:11 +00:00
Felipe Pena
b859ca7770 - Fixed compilation warnings 2008-03-22 20:37:08 +00:00
Felipe Pena
26f3bd40ef Fixed compilation warnings 2008-03-22 19:29:43 +00:00
Felipe Pena
c3ca82f363 - Renamed zend_do_fetch_class_name() to zend_do_build_full_name() (It is not used only for classes)
- Moved zend_resolve_class_name prototype to zend_compile.h
2008-03-22 19:10:20 +00:00
Steph Fox
c0619c6523 Make versioning more standard 2008-03-22 17:09:24 +00:00
Marcus Boerger
f022bca16b - Fix build for PHP < 5.3 2008-03-22 16:33:33 +00:00
Felipe Pena
3ed829f10e - Added some UEXPECTs
- Fixed some tests
2008-03-22 14:58:29 +00:00
Antony Dovgal
5b5c286d49 use correct flags 2008-03-22 12:56:07 +00:00
Marcus Boerger
cc3ee90dc5 - Update and include 'channel://pear.php.net/PHP_Archive-0.11.3' 2008-03-22 01:52:12 +00:00
Marcus Boerger
eb0f0e36e1 - Still missed one debug output 2008-03-22 01:48:45 +00:00
03de752f6d ChangeLog update 2008-03-22 01:31:41 +00:00
Marcus Boerger
1b286e1475 - If multiple possible exts are found use the first one.
This fixes an issue with: phar.phar info -f install-pear-nozlib.phar
  because that archive contains a .tar file
2008-03-22 00:15:45 +00:00
Marcus Boerger
e08556eb2e - Constify 2008-03-22 00:11:43 +00:00
Marcus Boerger
4d8073056c - Don't throw exception for uninitialized instance 2008-03-21 23:56:52 +00:00
Marcus Boerger
efc1c1ea99 - Damn forgot to remove the debug code 2008-03-21 23:31:31 +00:00
Marcus Boerger
6d3bb76302 - Fix stub/hashbang generation 2008-03-21 23:22:18 +00:00
Marcus Boerger
9bfa3909bf - Fix error message 2008-03-21 23:07:44 +00:00
Felipe Pena
24505f7c87 - Simplify zend_do_build_namespace_name()
- Fix macro (Z_USTRLEN/Z_STRLEN -> Z_UNILEN) in zend_do_fetch_class_name()
2008-03-21 20:41:22 +00:00
Greg Beaver
891067c975 fix the memleak - but this breaks the \*compressAllFiles\*() methods because of fatal flaw
in renaming implementation - see pecl-dev email for details
2008-03-21 19:54:07 +00:00