Greg Beaver
a090d45251
fix build on PHP 5.2, prepare release of 2.0.0a2
2008-03-27 06:38:53 +00:00
Greg Beaver
0084937b10
turns out it is now tomorrow, so update package.xml
2008-03-26 05:20:43 +00:00
Greg Beaver
085bb5cdd6
prepare release of 2.0.0a1
2008-03-26 03:55:37 +00:00
Marcus Boerger
7202434956
- Add documentation
2008-03-24 12:53:28 +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
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
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
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
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
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
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
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
Greg Beaver
3fcc6565b7
with stream wrappers in include_path, and after marcus's last fix, only 1 failing test (tar/tar_makegz.phpt)
...
add mounted file/dir to url stat
2008-03-21 18:50:22 +00:00
Steph Fox
c11bcd5414
Deliberate test breakage (no idea how many) in an attempt to see where the valgrind 'bad news' is coming from on gcov.php.net.
2008-03-21 05:22:10 +00:00
Steph Fox
f0fdef1b64
Cosmetics (RC data)
2008-03-21 05:05:23 +00:00
Greg Beaver
d02dff1363
save work - sandbox is completely f**ed up, have to rm -rf and start again
...
This *SHOULD* fix issues, but I can't get run-tests to work reliably to be absolutely sure
2008-03-20 23:59:07 +00:00
Antony Dovgal
044f39293b
fix 5_3 ZTS build
2008-03-17 08:55:56 +00:00
Marcus Boerger
a1cbab9142
- Rewrite scanner to be based on re2c instead of flex
...
The full patch is available as:
http://php.net/~helly/php-re2c-5.3-20080316.diff.txt
This is against php-re2c repository version 98
An older patch against version 97 is available under:
http://php.net/~helly/php-re2c-97-20080316.diff.txt
2008-03-16 21:06:54 +00:00
Marcus Boerger
58f7de98f4
- Fix build
2008-03-13 19:43:14 +00:00
Antony Dovgal
983ff657ba
fix zts build
2008-03-13 09:57:49 +00:00
Greg Beaver
0262e844c4
implement full support and usage of phar stream in include_path, for both 5.2 and 5.3.
...
5.3 code expects the proposed patch for stream wrapper in include_path to be committed
5.2 code only supports phar stream wrapper in include_path.
this is a 2-step process. After this, more magic, particularly in funcinterceptors.c will be
converted to use phar_resolve_path, which is far safer than the current implementation.
this needs windows and 5.2 testing unix/windows
2008-03-12 03:55:12 +00:00
Greg Beaver
70e30449bb
fix leaked var, fixes all tests for me
2008-03-12 03:12:35 +00:00
Steph Fox
54615ca871
Fix for crash caused by unhappy c&p.
...
@Greg: this still doesn't fix bug #13353... not sure why
2008-03-10 19:11:16 +00:00
Steph Fox
3ee08069a6
Rename archive during compressAllFiles*()
...
Note: this only works for tar archives at present pending a fix for bug #13352
2008-03-09 04:46:16 +00:00
Greg Beaver
f0b329da20
pack tar structs so speed optimizations don't add extra bytes to the header
...
# Steph: try this and see if it fixes Bug #13353
2008-03-09 04:17:20 +00:00
Steph Fox
410c1584c6
update TODO
2008-03-07 14:59:47 +00:00
Steph Fox
5e4b47fa87
fix tests
2008-03-03 19:36:09 +00:00
Steph Fox
8343d7c139
- A bit more work on PharData creation/conversion.
...
- If readonly=0, why not $phardata->convertToPhar()?
- Known issue with directories creating 'as-file' copies within the archive (all formats)
@Greg/Marcus/Tony: This passes all tests on my box, 5.2/5.3/release_ts/debug_ts, and I can't find any more memleaks. Obviously this is too good to be true, so if conversion is still messy elsewhere please feel free to fix, or bug and assign to me.
2008-03-03 08:41:15 +00:00
Steph Fox
1cdade809b
Going back to square one ("it works on Scott's box" - OSX 10.5, gcc version 4.0.1 (Apple Inc. build 5465)). Thanks ScottMac, David C and Philip for testing...
...
Possibly a gcc version issue?
2008-03-02 00:42:29 +00:00
Steph Fox
5c2be9551b
Should work on all platforms now. (Testing.)
2008-03-01 22:38:10 +00:00
Steph Fox
d4cf7e47f6
Right problem, wrong solution. Also missed an '= 1' , thanks Marcus
2008-03-01 22:28:33 +00:00
Steph Fox
f96cd8fbc3
Tested this time. All's fine here, MacOSX still complaining @ present.
2008-03-01 22:04:19 +00:00
Steph Fox
66d3abac02
Untested. Killing remaining warnings under MacOSX (thanks again Philip).
2008-03-01 21:44:32 +00:00
Steph Fox
15fefd3692
All tests pass here now. Thanks Philip for reporting compiler errors that don't show on my setup.
2008-03-01 21:31:03 +00:00
Antony Dovgal
cd858fe243
fix segfault, comment out useless line
2008-02-29 13:56:46 +00:00
Steph Fox
ad0a7679ac
Kill an unnecessary bit of internal docu and add 'compression' to the TODO
2008-02-28 02:09:49 +00:00
Steph Fox
413df68971
Forgot to return... not that I understand this stuff...
2008-02-28 01:16:43 +00:00
Steph Fox
9e61358eda
Allow alias for phar.tar/phar.zip
2008-02-28 01:08:34 +00:00
Steph Fox
dd5196cf01
Update TODO
2008-02-27 21:41:59 +00:00
Steph Fox
001ffec19f
Initial support for PharData object.
...
Note: two tests currently fail. IMHO we should be throwing E_ERROR on encountering a corrupted archive, not trying to throw a trail of exceptions...
New tests still to be written, not all functionality is in place yet.
2008-02-27 21:34:26 +00:00
Steph Fox
6a63b3921e
Update protos.
2008-02-25 16:27:23 +00:00
Steph Fox
eaef0319d2
Make it possible to read the TODO file on a laptop :)
2008-02-25 16:15:57 +00:00
Steph Fox
4b849dcac6
Lunchbreak III
2008-02-25 15:44:21 +00:00
Steph Fox
d712008ba7
Lunchbreak II
2008-02-25 15:43:14 +00:00
Steph Fox
303b72fed3
Lunchbreak.
2008-02-25 15:41:47 +00:00
Steph Fox
f5ab70a3b9
Update reflection info
2008-02-25 12:21:19 +00:00
Steph Fox
1a3bf3619f
Leftover from experimenting with zend_hash_del...
2008-02-25 11:37:08 +00:00
Greg Beaver
2d36a89d83
update TODO
2008-02-25 04:49:19 +00:00
Greg Beaver
0503140256
add little fix to phar_mount_entry to ensure path separators are unix-based on windows
2008-02-25 04:30:55 +00:00
Greg Beaver
ec7f89fe79
implement Phar::mount() for directories, add test
...
# opendir not yet implemented for mounted directories
2008-02-25 04:23:36 +00:00
Greg Beaver
b5c765f942
fix tests
2008-02-24 23:48:19 +00:00
Greg Beaver
d108a03553
fix --CLEAN--
2008-02-24 23:47:13 +00:00
Greg Beaver
1ea58d0c04
fix test
2008-02-24 23:44:12 +00:00
Greg Beaver
a5a246e876
add missing declaration of phar_rename_archive
2008-02-24 23:40:14 +00:00
Steph Fox
8513db73bb
A bunch of stuff to do with filename conversion. Hopefully it won't sink the ship.
2008-02-24 22:29:06 +00:00
Steph Fox
89842172e3
Updating tests. 100% pass rate here now - not sure about the rest of the world just yet (sorry Marcus).
2008-02-24 19:34:05 +00:00
Greg Beaver
a8d0c64662
fix faulty & in check for creation of phar manifest
2008-02-23 21:33:46 +00:00
Greg Beaver
588f0660e9
free mounted_dirs on error to avoid memleak
2008-02-23 21:29:57 +00:00
Greg Beaver
f6862d4a33
fix unfreed value found in tempmanifest1.phpt
2008-02-23 19:44:51 +00:00
Greg Beaver
b3a266fca8
fix double error (this fixes frontcontroller22.phpt)
2008-02-23 19:26:18 +00:00
Greg Beaver
dc43219add
down to 1 failing zip test with this commit
2008-02-23 18:28:36 +00:00
Greg Beaver
94f39ee501
fix unfreed value
2008-02-23 18:26:20 +00:00
Greg Beaver
a0e5e40663
port same fix from tar.c to zip.c
2008-02-23 18:24:41 +00:00
Greg Beaver
2eb4db8d79
best fix for the bad logic in tar.c, now all tests pass that should
2008-02-23 18:17:48 +00:00
Greg Beaver
18444e3b5a
revert previous changes to tar.c, fix incorrect user_stub == dummy check, now things work that should
2008-02-23 18:14:44 +00:00
Greg Beaver
a561228843
revert previous changes to tar.c, fix incorrect user_stub == dummy check, now things work that should
2008-02-23 18:09:31 +00:00
Greg Beaver
0c647b5c1c
fix test, missing phar.readonly=0 --INI-- section
2008-02-23 18:08:54 +00:00
Greg Beaver
9d9bd2715a
that !zend_hash_exists should be zend_hash_exists
2008-02-23 15:07:02 +00:00
Greg Beaver
a1828999c5
fix unfreed stuff when adding default stub
2008-02-23 15:05:05 +00:00
Greg Beaver
0e6457b2cf
free spprintf'ed stub after using it
2008-02-23 14:59:52 +00:00
Greg Beaver
0996c1ffb5
fix test - needed phar.readonly=0 INI section
2008-02-23 14:57:59 +00:00
Marcus Boerger
2f29db8333
- Fix logic
2008-02-23 13:04:59 +00:00
Steph Fox
b2dbfbc321
As the line below says - there shouldn't be an exception here.
2008-02-21 18:51:54 +00:00
Steph Fox
20836262c8
Updated wrong expectation (different stub).
2008-02-21 18:44:06 +00:00
Steph Fox
9a1e7ee88b
Update tests to accommodate those two extra bytes
2008-02-21 15:20:46 +00:00
Steph Fox
cf9bbcc2e6
Satisfy the pedants :)
2008-02-21 14:48:41 +00:00
Steph Fox
e8e85afbcc
Updating conversion tests to check for more conversion parameters than one. Note that these will all fail against current CVS.
...
@Greg: We need to clarify conversion policy across the board.
2008-02-21 14:45:44 +00:00