Derick Rethans [Sun, 13 Jan 2008 15:16:48 +0000 (15:16 +0000)]
- MF53: Added new date/time functionality:
* date_parse_from_format(): Parse date/time strings according to a format.
* date_create_from_format()/DateTime::createFromFormat(): Create a date/time
object by parsing a date/time string according to a given format.
* date_get_last_errors()/DateTime::getLastErrors(): Return a list of warnings
and errors that were found while parsing a date/time string through:
- strtotime() / new DateTime
- date_create_from_format() / DateTime::createFromFormat()
- date_parse_from_format()
Greg Beaver [Sun, 13 Jan 2008 06:24:27 +0000 (06:24 +0000)]
MFB: a few fixes: overwrote all my careful work in zipint_alias.h with zipint.h, so had to restore that.
PHP_RAW_NAMED_FE() won't work, have to use ZEND_RAW_FENTRY
Greg Beaver [Fri, 11 Jan 2008 07:30:03 +0000 (07:30 +0000)]
add Phar::interceptFileFuncs()
To intercept fopen(), file_get_contents(), opendir(), and all the stat-based functions so that
code like "if (is_readable('./config.inc.php'))" actually works inside of a phar
[DOC]
Greg Beaver [Wed, 9 Jan 2008 07:09:04 +0000 (07:09 +0000)]
implement whole-file compression of phars for phar/tar-based phars
still not 100% working, add failing test
add Phar::isCompressed(), which returns either 0, Phar::GZ, or Phar::BZ2
[DOC]
Greg Beaver [Wed, 9 Jan 2008 03:51:38 +0000 (03:51 +0000)]
add tests for directory creation and management for tar and zip-based phars, add isPhar() to phar-based test
to confirm it is indeed a phar-based archive
Greg Beaver [Wed, 9 Jan 2008 03:47:22 +0000 (03:47 +0000)]
add rmdir() support, add rmdir to dir test
fix *extremely* ancient problem where phar_wrapper_stat always returned success indicating the file existed
rename phar_destroy_manifest to phar_destroy_manifest_entry
Ulf Wendel [Tue, 8 Jan 2008 13:18:46 +0000 (13:18 +0000)]
Those functions have been deprecated and removed. We'll test them only internally
but not bother php.net with it. Unless you really want to have tests for deprecated
and removed functionality...
Greg Beaver [Tue, 8 Jan 2008 07:08:46 +0000 (07:08 +0000)]
complete set of new tests for zip-based phars (need to test compression for zip-based phars)
fix a whole bunch of zip-related bugs
tar tests need some naming
add phar information to error messages, fix existing tests to reflect this
Greg Beaver [Mon, 7 Jan 2008 22:21:10 +0000 (22:21 +0000)]
eliminate potential double-free of alias
major improvement of zip/tar-based phar stub execution, now __FILE__ says it is the phar, and not phar/.phar/stub.php,
so that the same stub can be used for phar or tar/zip-based phars
ridiculous speedup of rename() within a phar (something like 1000%)
last of the tar-based phar fixes
new tests for tar-based phars, fix existing tests to use new format of __FILE__
Greg Beaver [Mon, 7 Jan 2008 05:41:09 +0000 (05:41 +0000)]
fix stat of directory in tar/zip
improve phar recognition of tar/zip-based phars in phar_compile_file
fix segfault in Phar::webPhar() with invalid redirect
add Phar->isTar()/isZip()/isPhar() to determine internal file format
fix creation of tar-based phars from filename in some circumstances
fix read of corrupted file contents from a tar if the tar had been opened readonly and then modified
ensure directories are marked with is_dir in tar file format entries
copy fp_refcount logic into phar_tar_flush() from phar_flush()
fix segfault when flushing a tar with a new stub/alias