Commit Graph

41203 Commits

Author SHA1 Message Date
Greg Beaver
6d06058e81 add test coverage for fopen() with append mode 2008-04-14 16:38:58 +00:00
Greg Beaver
abb0766b8f add phar.extract_list test coverage for opendir 2008-04-14 16:34:11 +00:00
Greg Beaver
19e4a6113f add test coverage for phar.extract_list and mkdir/rmdir 2008-04-14 16:30:55 +00:00
Greg Beaver
eb252c5c92 fix potential segfault if some idiot tries to remove the root directory of a phar, add creation of root directory to test 2008-04-14 16:26:01 +00:00
Greg Beaver
07e36f5cad increase code coverage further 2008-04-14 16:10:58 +00:00
Greg Beaver
e7cbf4ddfe add error message on attempt to rmdir/mkdir 'phar://', add to test 2008-04-14 16:04:11 +00:00
Greg Beaver
2c0e0e1a96 update tests to ensure all temp files are erased, and to current error messages 2008-04-14 15:58:12 +00:00
Greg Beaver
61a9b7d8ee increase code coverage slightly 2008-04-14 15:52:57 +00:00
Greg Beaver
dbf43f5e0d add test for mkdir() of sub-directory of existing file, and restore the removed free()s with an is_temp_dir test 2008-04-14 15:48:25 +00:00
Greg Beaver
4b5079f4b7 increase test coverage of phar_wrapper_mkdir, fix segfault when mkdir() on existing directory 2008-04-14 15:46:06 +00:00
Hannes Magnusson
0789f3d81c MFB5.3: Remove config_get_hash() & and add new boolean parameter to
ini_get_all() to list ini entries key=>current_value like config_get_hash()
 did.
2008-04-14 15:42:14 +00:00
Greg Beaver
2277396fe3 fix edge case where a new phar is created via mkdir(), add to dir.phpt test 2008-04-14 15:21:41 +00:00
Hannes Magnusson
ef552c57de MFB53: Fixed bug#44716 (Progress notifications incorrect) 2008-04-14 12:17:38 +00:00
Greg Beaver
b8865a63ae another attempt at fixing mac OS X compile, remove unused obsolete code 2008-04-14 04:47:34 +00:00
Greg Beaver
2ed2ae7e53 missing from previous commit to remove stat from opendir wrapper ops 2008-04-14 04:47:00 +00:00
Greg Beaver
e69ea0731d more test coverage and fixes from increased coverage to opendir(). dir.phpt fails, but for wrong reasons (bug uncovered that needs fix) 2008-04-14 04:44:04 +00:00
aa3f1c0f66 ChangeLog update 2008-04-14 01:31:36 +00:00
Greg Beaver
aee1be851e add fstat to 027 test. Remove phar_dir_stat, stat should not be possible on a dir handle 2008-04-13 23:57:44 +00:00
Greg Beaver
61f439c1ad add to 027 test (for code coverage) of fwrite on dir handle 2008-04-13 23:48:46 +00:00
Greg Beaver
653b67b34f minor optimization 2008-04-13 23:47:15 +00:00
Greg Beaver
6f6a6dcb0e 100% code coverage for dir handle seeking, remove error log (not used in dir seeking, causes leak), update 027 test to have seeking test 2008-04-13 23:46:15 +00:00
Greg Beaver
c22b6a76ed add test for stat interception, fix stat interception 2008-04-13 23:33:31 +00:00
Hannes Magnusson
1972f83385 MFB5.3: Fixed bug#44712 (stream_context_set_params segfaults on invalid arguments) 2008-04-13 22:40:35 +00:00
Greg Beaver
b34cf3d86f MFB do not scan include_path with faulty plain_wrapper-based include_path fopen
# _fopen_with_path_rel probably needs to call out to regular php_stream_open, for exts that use it (it is exported)
2008-04-13 22:19:23 +00:00
Greg Beaver
abb227db46 sync fixed test properly with 5.3 branch 2008-04-13 21:41:46 +00:00
Greg Beaver
d90aa1a587 fix test 2008-04-13 21:41:45 +00:00
Greg Beaver
dc4da5e2f9 make tests php version-agnostic with regards to stream errors 2008-04-13 21:31:46 +00:00
Greg Beaver
02bbb72f6d add test for fopen interception, fix fopen interception 2008-04-13 20:46:45 +00:00
Greg Beaver
24d5595a8f add test for file_get_contents interception, fix file_get_contents interception 2008-04-13 19:36:33 +00:00
Greg Beaver
72daaf1d44 add test for opendir, fix bugs found 2008-04-12 22:21:29 +00:00
Greg Beaver
0814b2df09 fix build if SPL is disabled 2008-04-12 21:43:39 +00:00
937178d14d ChangeLog update 2008-04-12 01:31:40 +00:00
Hannes Magnusson
3a0776965a Update url for go-pear 2008-04-11 21:57:19 +00:00
Hannes Magnusson
780c3958c5 Apparenty go-pear no longer exists (bug#44699) 2008-04-11 21:53:37 +00:00
Felipe Pena
f6639abf7d MFB: Fixed bug #44703 (htmlspecialchars() does not detect bad character set argument) 2008-04-11 19:08:05 +00:00
Dmitry Stogov
111954d7f1 Speedup GC initialization 2008-04-11 17:32:18 +00:00
Robin Fernandes
30fd5ba517 Fix test parse_url_variation_002.phpt for 64bit platforms. 2008-04-11 14:35:07 +00:00
Greg Beaver
b0f281b159 restore Phar->compress/decompress() to simplify $phar->convertToExecutable(NULL, Phar::GZ) to $phar->compress(Phar::GZ)
[DOC]
2008-04-11 13:41:59 +00:00
Greg Beaver
8f28d19d4e cosmetics, extra space 2008-04-11 13:26:36 +00:00
Greg Beaver
3493fb6561 combine PharFileInfo->setCompressedGZ/setCompressedBZIP2 into compress() with parameter Phar::GZ or Phar::BZ2
use ZEND_ACC_PUBLIC in PharFileInfo definitions, to be consistent
[DOC]
2008-04-11 13:26:03 +00:00
Greg Beaver
ab34fcac05 merge PharFileInfo->isCompressed/isCompressedGZ/isCompressedBZIP2 by adding an
optional parameter to isCompressed for testing specific compression algorithm
[DOC]
2008-04-11 13:07:14 +00:00
Greg Beaver
c07a07ea68 change PharFileInfo->setUncompressed to decompress
[DOC]
2008-04-11 12:56:53 +00:00
Antony Dovgal
3c48de1912 fix tests 2008-04-11 11:05:33 +00:00
Antony Dovgal
0e7655209a fix 2 segfaults in ZTS mode 2008-04-11 10:59:50 +00:00
Dmitry Stogov
b287ccf508 Optimized ZEND_RETURN opcode to not allocate and copy return value if it is not
used.
2008-04-11 09:43:49 +00:00
Steve Seear
20b755c30e POSIX extension error tests 2008-04-11 09:33:59 +00:00
Steve Seear
bd6292a700 POSIX extension variation tests (failing due to spurious array to string conversion notices). 2008-04-11 09:29:08 +00:00
Robin Fernandes
91df70bdaa Adding some tests for ereg and url functions. 2008-04-11 08:57:06 +00:00
Greg Beaver
c0d82e966f refactor compress/convertToTar/convertToPhar/convertToZip/convertToExecutable/convertToData
into 2 methods:
convertToExecutable/convertToData.  Both methods accept 3 optional parameters
1 archive type, Phar::PHAR, Phar::TAR, or Phar::ZIP
2 compression Phar::NONE, Phar::GZ, or Phar::BZ2
3 file extension.  Default is <format>.<compression> where .phar.tar is executable .tar
convertToExecutable always returns a Phar object
convertToData always returns a PharData object
also added Phar::PHAR, Phar::TAR, and Phar::ZIP class constants
[DOC]
2008-04-11 04:20:15 +00:00
d90bf2ca0c ChangeLog update 2008-04-11 01:31:42 +00:00