History log of /PHP-8.3/ext/phar/stream.c (Results 126 – 146 of 146)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 0c9fcac7 14-Apr-2008 Greg Beaver

remove redundant check for file existence, add another unlink edgecase test

# bf701fe7 14-Apr-2008 Greg Beaver

disallow unlink() on extracted phars (the idea is that it is a read-only for execute thing), add tests for unlink edge cases

# 3703d919 14-Apr-2008 Greg Beaver

nuke potential segfault in phar_open_url, remove mem leaks due to error logging in phar_wrapper_stat, add to test case

# ef203ea7 14-Apr-2008 Steph Fox

- Kill doze compiler warning

# f3f9f52a 14-Apr-2008 Greg Beaver

minor re-factoring of phar_open_url to remove one nested brackets, put fopen edge cases in its own test, tweak test phar file names

Revision tags: php-5.2.6RC5, php-5.2.6RC4, php-5.2.6RC3, RELEASE_2_0_0a2, RELEASE_2_0_0a1
# 2e9fca4f 24-Mar-2008 Greg Beaver

fix read/write for PharData object, update tests to current API

# 62ed0adc 23-Mar-2008 Greg Beaver

fix memleak found by valgrind

# 3fcc6565 21-Mar-2008 Greg Beaver

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

# 0262e844 12-Mar-2008 Greg Beaver

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 sup

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

show more ...

Revision tags: php-5.2.6RC2, php-5.2.6RC1
# 001ffec1 27-Feb-2008 Steph Fox

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 t

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.

show more ...

# 8513db73 24-Feb-2008 Steph Fox

A bunch of stuff to do with filename conversion. Hopefully it won't sink the ship.

# 2f29db83 23-Feb-2008 Marcus Boerger

- Fix logic

Revision tags: RELEASE_1_3_1
# f72ce59e 13-Feb-2008 Greg Beaver

remove refcount hack to workaround zlib memleak fixed in zlib
intercepted file functions now fall through if the file is not found in the phar, this allows access to external libraries
actual

remove refcount hack to workaround zlib memleak fixed in zlib
intercepted file functions now fall through if the file is not found in the phar, this allows access to external libraries
actually use include_path for locating files for inclusion and in file_get_contents/fopen when include_path is requested.
This allows applications like Zend Framework MVC implementation to function properly

show more ...

# 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 ...

# 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 ...

# 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 ...

# 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.

# 70ce6b77 08-Jan-2008 Greg Beaver

remove invalid free if opening a phar file in plain_map fails

# 4bce4841 08-Jan-2008 Greg Beaver

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

123456