History log of /PHP-8.3/ext/standard/file.c (Results 526 – 550 of 802)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 083fc401 29-Oct-2002 Marcus Boerger

fix overrun

Revision tags: php-4.3.0pre2
# e1508efb 24-Oct-2002 Marcus Boerger

fix compiler warning?: implement default mentioned by manual

# 30abd183 22-Oct-2002 Ilia Alshanetsky

Fixed a possible segmentation fault in file() function.

# dabf1053 21-Oct-2002 Wez Furlong

Refine stream_select() to work with streams that have data in their read
buffers.
When selecting for read, the streams are examined; if any of them have
pending read data, no actual selec

Refine stream_select() to work with streams that have data in their read
buffers.
When selecting for read, the streams are examined; if any of them have
pending read data, no actual select(2) call is performed; instead the
streams with buffered data are returned; just like a regular select
call.
Prevent erroneous warning in stream_select when obtaining the fd.

show more ...

# 829f1855 19-Oct-2002 Wez Furlong

made fgets() binary safe.
php_stream_gets is now a macro which calls php_stream_get_line. The latter
has an option argument to return the number of bytes in the line.
Functions like fgetc

made fgets() binary safe.
php_stream_gets is now a macro which calls php_stream_get_line. The latter
has an option argument to return the number of bytes in the line.
Functions like fgetcsv(), fgetss() can be made binary safe by calling
php_stream_get_line directly.

# HEADS UP: You will need to make clean after updating your CVS, as the
# binary signature has changed.

show more ...

# 4b83b189 18-Oct-2002 Ilia Alshanetsky

Fixed bug #19971 (optimized the file() function).
The file() function is now also binary safe.

# 9b87199e 18-Oct-2002 Wez Furlong

Improve file().
Patch by Tal Peer <tal@php.net>

# 2f6952c9 15-Oct-2002 Wez Furlong

Nope, that last one wasn't a leak in main/streams.c, it was
file_get_contents misinterpreting the result...

# 86e60a2d 14-Oct-2002 Wez Furlong

@- fgets($fp) (with no length parameter) now uses a buffer as long as the
@ the next line available from the $fp. Previously, there was a 1KB limit.
@ (Wez)

Revision tags: RELEASE_1_0b1, php-4.3.0pre1
# 9d5bab5a 05-Oct-2002 Wez Furlong

EOF related fixes.

# 9b108434 02-Oct-2002 David Reid

Add more BeOS support...

Revision tags: MODERN_SYMMETRIC_SESSION_BEHAVIOUR_20021003
# 76947703 28-Sep-2002 Wez Furlong

Rename streams functions to fit with naming conventions, adding aliases
for old functions where required.
Make use of recent changes to chunk size and timeout setting code.

# 8aae36ae 28-Sep-2002 Wez Furlong

Add missing folding marker.

# 315e0a59 27-Sep-2002 Wez Furlong

Implement stream_select() which works just like socket_select, but only on
streams.
@ - Added stream_select() which works like socket_select but only works on
@ streams returned by fope

Implement stream_select() which works just like socket_select, but only on
streams.
@ - Added stream_select() which works like socket_select but only works on
@ streams returned by fopen(), fsockopen() and pfsockopen(). (Wez)

show more ...

# c484eb8c 26-Sep-2002 Wez Furlong

Fix segfault in wrapper error log mechanism when errors are logged on
second and subsequent events.
Implement very simple recursion protection for user streams written
like this:
clas

Fix segfault in wrapper error log mechanism when errors are logged on
second and subsequent events.
Implement very simple recursion protection for user streams written
like this:
class urlEncodeStream {
var $fp = NULL;

function stream_open($path, $mode, $options, &$opened_path)
{
$this->fp = fopen($path, $mode); // <-- this recurses infinitely
return is_resource($this->fp);
}
}

file_register_wrapper('urlencode', 'urlEncodeStream');
$fp = fopen('urlencode:///tmp/outputfile.txt', 'w');

Noticed by: Yasuo.

show more ...

# 4c2a9c09 26-Sep-2002 Wez Furlong

Remove an unused variable and a now-unused function.

# 3a67c677 26-Sep-2002 Wez Furlong

Rename file_get_wrapper_data -> file_get_meta_data.
It now always returns useful information for all streams.
Unified that data with socket_get_status and made socket_get_status
an alias

Rename file_get_wrapper_data -> file_get_meta_data.
It now always returns useful information for all streams.
Unified that data with socket_get_status and made socket_get_status
an alias for file_get_meta_data.

Fix Location header following which was broken in this commit:
http://cvs.php.net/diff.php/php4/ext/standard/http_fopen_wrapper.c?r1=1.41&r2=1.42&ty=h

show more ...

# 419efa6e 26-Sep-2002 Hartmut Holzgraefe

symbolic constants for fnmatch flags added

# 0141e970 25-Sep-2002 Wez Furlong

Make these all work with persistent streams too.

# 696e0a23 25-Sep-2002 Wez Furlong

Implement persistent streams. (for pfsockopen).
Juggle some includes/definitions.
Tidy up streams use in ext/standard/file.c

# 4cdf8c7c 24-Sep-2002 Wez Furlong

Fix EOL markers for file() so that Mac EOL work correctly.

# c74b9fac 23-Sep-2002 Wez Furlong

Implement a default_socket_timeout and auto_detect_line_endings ini options.
Also move user_agent from BG to FG.

# 4d8a07d5 23-Sep-2002 Wez Furlong

Implement read buffering in streams.
Eliminate similar code from network.c.
Implement fgets equivalent at the streams level, which can detect
the mac, dos and unix line endings and handle

Implement read buffering in streams.
Eliminate similar code from network.c.
Implement fgets equivalent at the streams level, which can detect
the mac, dos and unix line endings and handle them appropriately.
The default behaviour is unix (and dos) line endings.
An ini option to control this behaviour will follow.
# Don't forget to make clean!
# I've done some testing but would appreciate feedback from
# people with scripts/extensions that seek around a lot.

show more ...

# 687312be 13-Sep-2002 Ilia Alshanetsky

Do not create the destination file, if opening of the source file failed
during copy().

Revision tags: RELEASE_0_91, php-4.3.0dev_zend2_alpha3
# 3df412cf 07-Sep-2002 Wez Furlong

Fix a couple of bad pointer indirections (oops).
Lets stick to a single category of "http" for the "user_agent"
context override.

1...<<21222324252627282930>>...33