Commit Graph

20195 Commits

Author SHA1 Message Date
Antony Dovgal
ea40c23358 fix macros for bigendian platforms 2007-02-06 21:43:46 +00:00
Antony Dovgal
65b47ce346 add missing closing marker 2007-02-06 21:04:22 +00:00
Antony Dovgal
bc779b98ec fix test, this error message may vary 2007-02-06 20:48:37 +00:00
Marcus Boerger
3f3c8fcd10 - Drop another superflous stream close 2007-02-06 20:30:33 +00:00
Marcus Boerger
d771917d08 - Prepare RC2 2007-02-06 20:17:04 +00:00
Marcus Boerger
2a37a1284d - Drop superflous stream close 2007-02-06 20:15:12 +00:00
Marcus Boerger
3a64f890cb - Fix test 2007-02-06 20:14:26 +00:00
Greg Beaver
4bfd3eac84 correct release notes 2007-02-06 17:54:32 +00:00
Greg Beaver
2052cf5534 correct version number/stability 2007-02-06 17:33:14 +00:00
Greg Beaver
5b776340e4 add test cases, prepare for release, indent fixes in package.xml deps 2007-02-06 17:30:19 +00:00
Greg Beaver
bc17dcfcd1 fix several potential segfaults, add tests for chmod(), fix chmod() 2007-02-06 17:09:37 +00:00
Greg Beaver
70dc64e95a add PharFileInfo->chmod() to set permissions (no other way to do it) 2007-02-06 05:41:18 +00:00
Marcus Boerger
45d63c3973 - Check temp file creation 2007-02-05 22:11:27 +00:00
Greg Beaver
40b66a8035 copyright year updates 2007-02-05 21:38:50 +00:00
Marcus Boerger
357b931e56 - Add additional check & test 2007-02-05 20:47:20 +00:00
Marcus Boerger
250119fa38 - Fix signed/unsigned warnings
- Use safe_emalloc where usefull
2007-02-05 20:34:23 +00:00
Marcus Boerger
06b9756c67 - Add missing PHPAPI 2007-02-05 20:04:56 +00:00
Marcus Boerger
5928d89d50 - Detect \0 in paths where possible 2007-02-05 19:16:07 +00:00
Marcus Boerger
08cf9ff731 - Check for illegal chars (control + potential UTF-8 (need to take care of in PHP 6)) 2007-02-05 07:58:29 +00:00
Greg Beaver
c0e2739103 improve error message empty entry => empty directory. Add check for phar://blah.phar/. and phar://blah.phar/.. 2007-02-05 07:19:35 +00:00
Frank M. Kromann
4874397501 MFB: #39213
Fix for '' returned as ' '.
This only works with FreeTDS as microsofts library returns a length of 1 for an empty string!
2007-02-04 21:24:28 +00:00
Marcus Boerger
c2d5db56ca - Need to drop // 2007-02-04 20:35:59 +00:00
Marcus Boerger
f210205e70 - PHP_VERSION_ID exists only in newer PHPs (5.1+)
- Improve error checking
2007-02-04 20:10:03 +00:00
Ilia Alshanetsky
ff0f2ad1bd Added a double free check. 2007-02-04 17:02:01 +00:00
Marcus Boerger
29cde76818 - Disallow stars in paths 2007-02-04 16:25:25 +00:00
Marcus Boerger
ab03af5eb5 - Add Makefile.frag 2007-02-04 16:24:48 +00:00
Marcus Boerger
1c690cb9d4 - Add path sanitizer for new paths
- Add test for a few things we check with the sanitizer
# We might want to use the sanitizer for opening as well
2007-02-04 13:21:40 +00:00
Frank M. Kromann
16ccbf0c0c MFB: Fix win32 build 2007-02-04 00:23:32 +00:00
Marcus Boerger
725148cc94 - Allow building with 5.1 (not all works thenperfectly though) 2007-02-03 16:31:36 +00:00
Marcus Boerger
d47db8526b - Fix protos 2007-02-03 13:42:10 +00:00
Marcus Boerger
1b5b78ce18 - Provide both version strings, api and ext 2007-02-03 13:20:12 +00:00
Marcus Boerger
91d7b4f048 - Update package file 2007-02-03 13:19:38 +00:00
Greg Beaver
93b387d327 fix mem leak on error, fix cwd issue. go back to BadMethodCallException for Phar->set*CompressedAllFiles(). ALL TESTS PASS, RELEASE IS IMMINENT 2007-02-03 04:04:18 +00:00
Greg Beaver
996b8e6108 fix test 2007-02-03 02:39:34 +00:00
Greg Beaver
340e9b24fc s/isFlushing/isFlushingToPhar much clearer purpose in method name 2007-02-03 00:45:24 +00:00
Michael Wallner
cd2554343b - add note about the past for the future, see http://bugs.php.net/?id=40310&edit=1 2007-02-02 17:11:10 +00:00
andy wharmby
ca1d1703ee ADW: Fix COM extension bug #35463. Fix in/out argument processing 2007-02-02 08:42:32 +00:00
andy wharmby
f5ffb540f0 ADW: Fixed COM extension bug #37927. Correct the processing of in/out arguments of type VT_DISPATCH|VT_REF 2007-02-01 18:05:10 +00:00
Antony Dovgal
bc87928158 bailout if bucket is NULL 2007-02-01 14:20:53 +00:00
Antony Dovgal
0e08c7027f free class_name when necessary 2007-02-01 14:07:03 +00:00
Antony Dovgal
3c10602950 fix compile failure in ZTS mode when collections support is missing 2007-01-31 12:45:56 +00:00
Antony Dovgal
74e11c349c fix segfault on re-binding and re-executing a statement
improve the test
patch by Chris Jones
2007-01-31 10:36:20 +00:00
Ilia Alshanetsky
eece353fe8 Minor code optimization 2007-01-31 00:15:06 +00:00
Marcus Boerger
5f8256cfc1 - Update TODO
- Add Phar::isFlushing()
- Improve test
2007-01-30 20:58:14 +00:00
Antony Dovgal
fdec496b73 improve test
patch by Chris Jones
2007-01-30 11:43:07 +00:00
Marcus Boerger
c9a8668847 - Add new test 2007-01-30 07:29:45 +00:00
Marcus Boerger
df99fd3d61 - CS & Fix expectations 2007-01-29 22:21:48 +00:00
Nuno Lopes
37960644df fix access to already free'ed memory 2007-01-29 19:36:53 +00:00
Antony Dovgal
47514fd793 fix test
different Oracle client versions report different error messages
2007-01-29 16:18:15 +00:00
Antony Dovgal
a4c6b4b0f3 fix test 2007-01-29 16:16:07 +00:00
Pierre Joye
1a78358460 - MFB: #40228, ZipArchive::extractTo does create empty directories
recursively
2007-01-29 16:01:55 +00:00
Marcus Boerger
7ae8840c50 - Fix mem access 2007-01-29 07:59:19 +00:00
Greg Beaver
41b5470358 update TODO for needed things 2007-01-29 06:10:18 +00:00
Greg Beaver
c7a5d062f5 throw exceptions from Phar object, and errors from stream wrapper
# we need to account for uncaught exceptions in shutdown, 2 tests leak because of this
2007-01-29 06:02:19 +00:00
Greg Beaver
c6dc9be489 implement Phar->getMetadata() Phar->setMetadata(), add tests, implement meta-data in the header 2007-01-29 03:59:55 +00:00
Greg Beaver
185a961812 make Phar metadata todo more explicit 2007-01-28 22:45:19 +00:00
Greg Beaver
744ec410ec add rename support 2007-01-28 22:43:38 +00:00
Marcus Boerger
0bc1b90ec3 - Split commit into commit and setStub 2007-01-28 22:11:28 +00:00
Greg Beaver
f78dc091f3 make sure we are in the test directory 2007-01-28 21:48:36 +00:00
Greg Beaver
a51ded0160 new test for creation of phar in current directory 2007-01-28 21:47:29 +00:00
Greg Beaver
b53229dae0 note finishing of docs (whew) 2007-01-28 21:46:13 +00:00
Marcus Boerger
8cfaa44955 - Make new flushing work 2007-01-28 21:26:54 +00:00
Marcus Boerger
1259c3f17a - Fix tests 2007-01-28 21:21:04 +00:00
Greg Beaver
aa47bbbd4d add rename() to TODO for 1.0 2007-01-28 21:04:57 +00:00
Greg Beaver
4596ee7d8a add todo about metadata, and 1.1 todo to search/match metadata [take 2] 2007-01-28 20:28:05 +00:00
Greg Beaver
20ad76141b add todo about metadata, and 1.1 todo to search/match metadata 2007-01-28 20:27:05 +00:00
Marcus Boerger
d13719ace8 - In Commit reset donotflush 2007-01-28 19:56:09 +00:00
Greg Beaver
2273af3104 beginWrite()/commitWrite() => begin()/commit(), note optional rollback() for 1.1 2007-01-28 19:09:12 +00:00
Marcus Boerger
5d03db8f5a - Move offsetGet()/SplFileClass entry to 1.1 2007-01-28 16:07:10 +00:00
Marcus Boerger
a908f3b449 - Add missing files 2007-01-28 16:06:25 +00:00
Marcus Boerger
ea9796cca4 - Drop phar_destroy_phar_data() from api 2007-01-28 12:18:07 +00:00
Marcus Boerger
834337f85a - Fixx illeagal memory access 2007-01-28 10:43:18 +00:00
Marcus Boerger
510c6e0dd1 - Test naming 2007-01-28 10:34:58 +00:00
Marcus Boerger
e1db72467c - Fix read/write mode handling 2007-01-28 10:32:45 +00:00
Marcus Boerger
1222f8c75a - Hash is donein ext/standard 2007-01-28 10:02:45 +00:00
Greg Beaver
e8cabb46f6 fix commitWrite test, enable creation of Phars with phar object 2007-01-28 05:40:18 +00:00
Greg Beaver
2ee6816c43 new failing test for commitWrite() 2007-01-28 05:11:41 +00:00
Greg Beaver
22f8379ea6 up API version to 1.0.0 - the file format is solid, prepare for release sometime in the near future 2007-01-28 03:59:30 +00:00
Greg Beaver
2513903e40 stream context for specifying meta-data 2007-01-28 03:25:53 +00:00
Marcus Boerger
a2bcf381b7 - Fix test 2007-01-27 23:11:45 +00:00
Marcus Boerger
4b2eed1fc1 - Clean up on flush 2007-01-27 23:02:42 +00:00
Marcus Boerger
f86b7b96fc - Refcounting 2007-01-27 22:23:52 +00:00
Marcus Boerger
426146b340 - More on 5.2.1 support 2007-01-27 22:18:18 +00:00
Marcus Boerger
d4fb3cb4d3 - Fix warning 2007-01-27 21:37:22 +00:00
Marcus Boerger
ec6c58ca94 - Add 5.2.1 support 2007-01-27 21:34:40 +00:00
Marcus Boerger
fc8754c892 - Dropped one line by accident 2007-01-27 21:24:28 +00:00
Marcus Boerger
d5bbd84d76 - Prevent memory corruption 2007-01-27 21:23:02 +00:00
Marcus Boerger
c26e5edbeb - Update package file 2007-01-27 21:22:00 +00:00
Marcus Boerger
c7523db97f - Cannot change stream here 2007-01-27 19:42:37 +00:00
Greg Beaver
a9901f31db fix uncompressAllFiles() and compressAllFilesBZIP2(), add tests 2007-01-27 19:37:17 +00:00
Greg Beaver
035ddeb1cd php_stream_truncate_set_size() is a noop with temp streams.
so, we're going to use a brand new tempfile for truncation.

ALL TESTS PASS NOW (finally)
2007-01-27 19:26:58 +00:00
Marcus Boerger
f096d18cd5 - Add missing INI setting 2007-01-27 19:17:56 +00:00
Greg Beaver
7b6b53b83d php_stream_truncate_set_size() is a noop with temp streams.
so, we're going to use a brand new tempfile for truncation.

ALL TESTS PASS NOW (finally)
2007-01-27 18:57:12 +00:00
Greg Beaver
1d11c2c4a7 fix memleaks and all but 1 test 2007-01-27 18:45:48 +00:00
Greg Beaver
78f1b9401b fix memleak in unlink() 2007-01-27 18:27:19 +00:00
Greg Beaver
74d7701b2b fix incorrect refcount increment on unlink() 2007-01-27 18:03:40 +00:00
Marcus Boerger
fa60adaffa - Add new tests 2007-01-27 17:32:21 +00:00
Marcus Boerger
13e860e66f - Fix memory access 2007-01-27 17:27:48 +00:00
Marcus Boerger
e2a46679bd - context not needed here 2007-01-27 17:27:09 +00:00
Marcus Boerger
ced8e1d9d1 - Make phar_flush() work without reloading
- Make refcounting fly
2007-01-27 15:31:24 +00:00
Marcus Boerger
9cd8d73677 - Simplify by providing delref function 2007-01-26 19:58:22 +00:00
Marcus Boerger
e52a5adc34 - Fix stream closing 2007-01-26 19:43:04 +00:00
Greg Beaver
616fa5839c fix test (still fails, but the test is accurate now) 2007-01-26 14:56:56 +00:00
Greg Beaver
8de7bd61bf implement phar refcounting
move setStub to commitWrite() and add beginWrite()

# many oo-based tests still fail, they need to be tweaked and fixed
2007-01-26 14:52:10 +00:00
Antony Dovgal
f597e9676b fix #40189 (possible endless loop in zlib.inflate stream filter) 2007-01-25 12:21:24 +00:00
Sara Golemon
cc1b19cf0e Expand allow_url_fopen/allow_url_include functionality 2007-01-24 21:43:47 +00:00
Greg Beaver
ffcf9f5de4 remove unused constants, note addition of docs in TODO 2007-01-24 04:38:19 +00:00
Antony Dovgal
4b3197ce2b initialize errno 2007-01-24 00:33:44 +00:00
Antony Dovgal
d6af95d1a4 fix folding and a couple of typos 2007-01-23 23:31:14 +00:00
Marcus Boerger
19c93586a0 - Simplify
- Add PHPAPI php_info_print_module()
2007-01-23 19:58:45 +00:00
Nuno Lopes
e9d4b10d86 MFB: fix a few crashes 2007-01-23 19:50:14 +00:00
Johannes Schlüter
4fd315e46b - Use utf-8 instead of utf8 as encoding to fix phpinfo() 2007-01-23 15:47:28 +00:00
Hannes Magnusson
00f925015e MFB: Fix typo 2007-01-23 12:38:40 +00:00
Dmitry Stogov
7d1110a3fb Fixed bug #39367 (clearstatcache() doesn't clear realpath cache)
Fixed bug #40092 (chroot() doesn't clear realpath cache)
2007-01-22 09:32:55 +00:00
Antony Dovgal
b784bacfc7 fix wrong param definition 2007-01-22 09:08:21 +00:00
Antony Dovgal
cb16a6ab97 fix long/int mess 2007-01-22 09:05:19 +00:00
Antony Dovgal
fd6d1e45f4 fix classname 2007-01-22 08:36:11 +00:00
Antony Dovgal
131a79ea25 add skipif 2007-01-22 08:21:45 +00:00
Antony Dovgal
d181d3a0b3 fix #40191 (use of array_unique() with objects triggers segfault) 2007-01-22 08:16:36 +00:00
Greg Beaver
d8c26fd461 fix tests, fix corruption issues with compression, simplify code. 3 tests still fail, memory leaks and mysterious crc error - the 16 tests are faulty 2007-01-22 03:41:41 +00:00
Marcus Boerger
47f82ace64 - Test names 2007-01-22 02:31:28 +00:00
Marcus Boerger
a3bce062fa - Don't be to picky, as long as we get an error here, we're fine 2007-01-22 02:24:40 +00:00
Marcus Boerger
03dfef9f99 -Simplify 2007-01-22 02:07:45 +00:00
Marcus Boerger
261749d402 - Generate CRC32 in case not done in original file 2007-01-22 02:04:51 +00:00
Marcus Boerger
79985976a6 - CRC is done on uncompressed data 2007-01-22 02:00:18 +00:00
Marcus Boerger
2312d0772d - Drop erroneously added numbers in error messages 2007-01-22 01:01:50 +00:00
Marcus Boerger
ed454d0fc8 - Finish get/setStub() 2007-01-22 00:59:02 +00:00
Greg Beaver
038de43fd6 new test for stream context setting of compression 2007-01-22 00:57:34 +00:00
Marcus Boerger
ea5e9b3190 - Add Phar::getStub(), step 1 2007-01-22 00:17:14 +00:00
Greg Beaver
27f4a3ad30 add setUncompressed(), setCompressedGZ(), setCompressedBZ2() to PharFileInfo, and a failing test (due to bug in streams + bug in phar) 2007-01-22 00:13:20 +00:00
Greg Beaver
9c2651d210 X Phar->setStub() for specifying a new stub to the phar [Greg] 2007-01-21 23:22:57 +00:00
Marcus Boerger
17eedd00b9 - Make ext/date happy if present 2007-01-21 20:22:36 +00:00
Marcus Boerger
d0d87d8435 - Rewrite/Finish metadata handling 2007-01-21 20:12:50 +00:00
Greg Beaver
40e4bba7ba spelling 2007-01-21 18:54:07 +00:00
Marcus Boerger
4529362c29 - Per defautl class Phar returns Info class on offsetGet() 2007-01-21 17:40:27 +00:00
Marcus Boerger
fc80ed5913 - Update tests 2007-01-21 16:58:23 +00:00
Marcus Boerger
a02afe32c1 - Fix issues with metadata testing 2007-01-21 15:57:12 +00:00
Marcus Boerger
c440902e04 - Simplify dtor
- Zero terminate meta data
2007-01-21 15:28:56 +00:00
Marcus Boerger
3066cfb3ef - Disable most of class Phar and all of class PharFileInfo if SPL is not present 2007-01-21 15:25:50 +00:00
Greg Beaver
f21a0cdd0c fix final memory leak, fix metadata reading (simple), add basic test that it doesn't break 2007-01-21 06:54:04 +00:00
Greg Beaver
d661faefda fix 1 mem leak 2007-01-21 06:39:32 +00:00
Greg Beaver
5bbd10296c implement reading meta-data from phars. writing is not yet supported 2007-01-21 06:30:55 +00:00
Greg Beaver
c575e19101 fix ini tests EXPECT 2007-01-20 23:12:28 +00:00
Greg Beaver
773fc51457 implement ini handler for phar.readonly and phar.require_hash that allows enabling it on
PHP_INI_ALL if it is disabled in the system, but does not allow disabling it
   if it is enabled in the syste
2007-01-20 22:40:47 +00:00
Marcus Boerger
154de1819e - Fix flags and tests 2007-01-20 16:43:45 +00:00
Marcus Boerger
ab2c4ffe54 - Mode debug info 2007-01-20 16:19:20 +00:00
Marcus Boerger
512f5dafb8 - Drop left-over 2007-01-20 14:41:04 +00:00
Marcus Boerger
c6ccbf32fb - Make use of get_debug_info() handler in ArrayObject/Iterator 2007-01-20 14:03:59 +00:00
Nuno Lopes
b3bca12cf6 MFB: fix crash & add tests 2007-01-20 12:58:20 +00:00
Nuno Lopes
ed9acc4e04 MFB: fix crash 2007-01-20 12:27:55 +00:00