History log of /php-src/ext/phar/phar_internal.h (Results 176 – 200 of 249)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# d4d8f3d4 01-Feb-2008 David Coallier

- OSX "extern" compatibility fix.

# 9fd5c0b4 28-Jan-2008 Steph Fox

- Moved phar_unixify_path_separators() to a single central point
- The last two VC 6 compiler warnings gone. Please test under *nix.

# 6cdabede 28-Jan-2008 Greg Beaver

remove ext/zip dependency entirely, write better native zip support
re-organize, create util.c, move entry_info/archive_data/entry_data access methods to this file
refactor entry->fp, now thi

remove ext/zip dependency entirely, write better native zip support
re-organize, create util.c, move entry_info/archive_data/entry_data access methods to this file
refactor entry->fp, now this is abstracted with phar_get_efp() and phar_seek_efp(), fixes all weird dependency issues
permanently solve the "millions of file pointers" issue for read access. All compressed files are read into a single
temporary stream, and their constraints are controlled by the entry->fp abstraction

Improvements in this zip implementation over ext/zip:
* full read/write support for bzip2 compressed files
* much more efficient access for accessing only a few files within large zip files, as crc/header validation is
done just-in-time
* full stream support for opendir/rename/rmdir/mkdir as well as all of the other stream funcs
* full support for setting file perms via Phar::chmod(), stored as zip-standard extra field
* no problem with large zips and many open file pointers

# TODO: add big-endian system support for tar/zip file format headers, otherwise the implementation is complete
# TODO: test on windows and fix any windows-specific issues
# TODO: verify zips created work with unzip/winzip/windows explorer and so on

show more ...

# 61c3a608 25-Jan-2008 Steph Fox

Make all possible build combinations work under doze (external zip library)

# 117f5e26 20-Jan-2008 Greg Beaver

add web-based support for default stub, now phars written with webPhar() will work
out of the box regardless of server configuration with phar file format
split up stub.h strings into 2046 by

add web-based support for default stub, now phars written with webPhar() will work
out of the box regardless of server configuration with phar file format
split up stub.h strings into 2046 byte chunks because MS VC 6 is friggin stupid

show more ...

# d5fd0428 19-Jan-2008 Greg Beaver

bump 1.3.0 to 2.0.0, this is a big feature addition release

# a5358c07 19-Jan-2008 Greg Beaver

bump API version if the created phar has directories in it, so that it won't load with older phar versions

# d583fae0 19-Jan-2008 Greg Beaver

add Phar::createDefaultStub(), which can take as an argument the filename
that should be loaded as a "bootstrap" for the phar archive

# 7540adf0 18-Jan-2008 Greg Beaver

major improvement:
the new default stub allows creation of phars that run identically
1) with Phar extension
2) without Phar extension
3) extracted to disk from the phar
this make

major improvement:
the new default stub allows creation of phars that run identically
1) with Phar extension
2) without Phar extension
3) extracted to disk from the phar
this makes the default phar format quite interesting as it eliminates the only drawback of the extension

show more ...

# e4c02a6b 17-Jan-2008 Greg Beaver

do fancy-shmancy zip dependency validation because ZEND_MOD_OPTIONAL_EX doesn't do any version validation

# 535865e9 17-Jan-2008 Greg Beaver

give up on gpg signing because of non-existent windows support for gpg signing lib

# d1eda9c8 16-Jan-2008 Greg Beaver

add Phar::convertToTar(), Phar::convertToZip(), and Phar::convertToPhar()

# 4df43510 12-Jan-2008 Greg Beaver

make zip optional

# e9ee7dbf 12-Jan-2008 Greg Beaver

fix compile on windows
remove internal libzip
add required dep on zip (will make optional in a few minutes)

# 8fb4205a 11-Jan-2008 Greg Beaver

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 i

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]

show more ...

# ab4c2caf 10-Jan-2008 Greg Beaver

add interception of is_dir(), file_exists() and file_get_contents() - will make these optional shortly

# f6b16061 09-Jan-2008 Greg Beaver

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]

# abde85c4 09-Jan-2008 Greg Beaver

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_des

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

show more ...

# 9f5b3a22 09-Jan-2008 Greg Beaver

fix empty directories in phar, add test

# 1a362449 08-Jan-2008 Greg Beaver

implement mkdir (compiles, not yet tested), support for empty directories in phar (not yet tested)
revert last commit of efree(), it's necessary.

# 4bce4841 08-Jan-2008 Greg Beaver

split stream file handlers into stream.c and directory handlers into dirstream.c

# 63adb98f 08-Jan-2008 Greg Beaver

split out zip functions

# e8a5b205 04-Jan-2008 Greg Beaver

replace crappy $_SERVER munging with explicit munging via
Phar::mungServer(). This static method takes an array with one of these 4 indices (case-sensitive):
'PHP_SELF', 'SCRIPT_NAME', 'SCRI

replace crappy $_SERVER munging with explicit munging via
Phar::mungServer(). This static method takes an array with one of these 4 indices (case-sensitive):
'PHP_SELF', 'SCRIPT_NAME', 'SCRIPT_FILENAME', 'REQUEST_URI'
and removes any reference to the actual path on the server. This allows older apps to function unmodified inside a phar.
the variables are re-registered as PHAR_PHP_SELF and company to allow access from clever script files
[DOC]

show more ...

Revision tags: php-4.4.8
# 8ee4266b 03-Jan-2008 Greg Beaver

initial tar support - a few kinks to work on in phar creation, but read works

# 652d39c3 31-Dec-2007 Greg Beaver

add zip-based phar support. not quite working is webPhar(), not sure why yet

12345678910