History log of /PHP_5_6/ext/standard/file.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
122ee0a 02-Jul-2014 Michael Wallner <mike@php.net> Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
fix integer overflow in {stream,file}_{get,put}_contents()
1e06c73 02-Jul-2014 Michael Wallner <mike@php.net> Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
fix integer overflow in {stream,file}_{get,put}_contents()
34e686c 02-Jul-2014 Michael Wallner <mike@php.net> fix integer overflow in {stream,file}_{get,put}_contents()
/PHP_5_6/ext/standard/file.c
774f163 20-Apr-2014 Stanislav Malyshev <stas@php.net> Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
Fix bug #65701: Do not use cache for file file copy
5addf22 20-Apr-2014 Stanislav Malyshev <stas@php.net> Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
Fix bug #65701: Do not use cache for file file copy
a18cec1 14-Apr-2014 Boro Sitnikovski <buritomath@yahoo.com> Fix bug #65701: Do not use cache for file file copy
/PHP_5_6/ext/standard/file.c
3a9829a 11-Feb-2014 Daniel Lowrey <rdlowrey@php.net> Use crypto method flags; add tlsv1.0 wrapper; add wrapper tests
/PHP_5_6/ext/standard/file.c
c081ce6 03-Jan-2014 Xinchen Hui <laruence@php.net> Bump year
/PHP_5_6/ext/standard/file.c
47c9027 03-Jan-2014 Xinchen Hui <laruence@php.net> Bump year
/PHP_5_6/ext/standard/file.c
c0d060f 03-Jan-2014 Xinchen Hui <laruence@php.net> Bump year
/PHP_5_6/ext/standard/file.c
2ddefbd 08-Oct-2013 Daniel Lowrey <rdlowrey@gmail.com> Added support for TLSv1.1 and TLSv1.2
/PHP_5_6/ext/standard/file.c
524fab3 25-Aug-2013 Stanislav Malyshev <stas@php.net> Merge branch 'PHP-5.5'

* PHP-5.5:
Expose fputcsv's escape_char to userland
2139d27 13-Sep-2012 Joey Smith <joeysmith@gmail.com> Expose fputcsv's escape_char to userland

Allows users to assert that something other than the backslash
should be considered an escape char; also follows the RFC 4180
recommendation that fields containing a " be enclosed.
/PHP_5_6/ext/standard/file.c
92d27cc 29-Jul-2013 Andrey Hristov <andrey@php.net> Constify streams API and a few other calls down the rabbit hole.
(`char *` to `const char *` for parameters and few return values)
In a few places int len moved to size_t len.
/PHP_5_6/ext/standard/file.c
748b376 29-Jan-2013 Stanislav Malyshev <stas@php.net> complete zts fix
/PHP_5_6/ext/standard/file.c
dba22c0 15-Jan-2013 Jille Timmermans <jille@quis.cx> Dereferencing process-handles no longer waits on those processes.

Implements FR #46487
/PHP_5_6/ext/standard/file.c
22ba2b9 15-Jan-2013 Andrey Hristov <andrey@php.net> Merge branch 'PHP-5.4' into PHP-5.5

Conflicts:
NEWS
b1bf524 15-Jan-2013 Adam Harvey <aharvey@php.net> Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
Revert "Update fputcsv() to escape all characters equally."
c077074 15-Jan-2013 Adam Harvey <aharvey@php.net> Revert "Update fputcsv() to escape all characters equally."

On second thoughts, while the behaviour _is_ broken, this isn't the right fix.

This reverts commit 9b5cb0e8059b1e8bec096067491ed8d75f878938.
/PHP_5_6/ext/standard/file.c
ba32970 15-Jan-2013 Adam Harvey <aharvey@php.net> Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
Update fputcsv() to escape all characters equally.
a4191b0 15-Jan-2013 Adam Harvey <aharvey@php.net> Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
Update fputcsv() to escape all characters equally.
9b5cb0e 15-Jan-2013 Adam Harvey <aharvey@php.net> Update fputcsv() to escape all characters equally.

At present, backslashes have special case handling within fputcsv(): when one
is encountered within a field that's being escaped, escaping stops until the
next instance of the enclosure character is hit. This can result in malformed
CSV.

Fixes bug #43225 (fputcsv incorrectly handles cells ending in \ followed by ").
/PHP_5_6/ext/standard/file.c
a666285 01-Jan-2013 Xinchen Hui <laruence@php.net> Happy New Year
/PHP_5_6/ext/standard/file.c
0a7395e 01-Jan-2013 Xinchen Hui <laruence@php.net> Happy New Year
/PHP_5_6/ext/standard/file.c
a2045ff 01-Jan-2013 Xinchen Hui <laruence@php.net> Happy New Year~
/PHP_5_6/ext/standard/file.c
8848778 14-Aug-2012 Xinchen Hui <laruence@php.net> Merge fix e7535e06e63104ccc0c90c4425b6c2541aa3c939 to 5.3

thanks for reeze.xia@gmail.com notice this
/PHP_5_6/ext/standard/file.c
e7535e0 18-Jul-2012 Xinchen Hui <laruence@php.net> Merge branch 'PHP-5.4'

* PHP-5.4:
Fixed bug #62597 (segfault in php_stream_wrapper_log_error with ZTS build)
2d9d2ca 18-Jul-2012 Xinchen Hui <laruence@php.net> Fixed bug #62597 (segfault in php_stream_wrapper_log_error with ZTS build)
/PHP_5_6/ext/standard/file.c
e4ca0ed 01-Jan-2012 Felipe Pena <felipe@php.net> - Year++
/PHP_5_6/ext/standard/file.c
8775a37 01-Jan-2012 Felipe Pena <felipe@php.net> - Year++
/PHP_5_6/ext/standard/file.c
4e19825 01-Jan-2012 Felipe Pena <felipe@php.net> - Year++
/PHP_5_6/ext/standard/file.c
1f81004 15-Nov-2011 Felipe Pena <felipe@php.net> - Fixed bug #52624 (tempnam() by-pass open_basedir with inexistent directory)
/PHP_5_6/ext/standard/file.c
5f0e6a7 15-Nov-2011 Felipe Pena <felipe@php.net> - Fixed bug #52624 (tempnam() by-pass open_basedir with inexistent directory)
/PHP_5_6/ext/standard/file.c
fb37f3b 15-Nov-2011 Felipe Pena <felipe@php.net> - Fixed bug #52624 (tempnam() by-pass open_basedir with inexistent directory)
/PHP_5_6/ext/standard/file.c
84c94e2 13-Sep-2011 Xinchen Hui <laruence@php.net> Fixed Bug #55674 (fgetcsv & str_getcsv skip empty fields in some tab-separated records) which was introduced by r311543
/PHP_5_6/ext/standard/file.c
54d48bb 13-Sep-2011 Xinchen Hui <laruence@php.net> Fixed Bug #55674 (fgetcsv & str_getcsv skip empty fields in some tab-separated records) which was introduced by r311543
/PHP_5_6/ext/standard/file.c
1bbda64 13-Sep-2011 Xinchen Hui <laruence@php.net> Fixed Bug #55674 (fgetcsv & str_getcsv skip empty fields in some tab-separated records) which was introduced by r311543
/PHP_5_6/ext/standard/file.c
9805e16 22-Jul-2011 Pierre Joye <pajoye@php.net> - remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ
/PHP_5_6/ext/standard/file.c
cc1c7af 22-Jul-2011 Pierre Joye <pajoye@php.net> - remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ
/PHP_5_6/ext/standard/file.c
cad2e53 15-Jul-2011 David Soria Parra <dsp@php.net> Fix #55212. Only declare STREAM_PF_INET6 if PHP is compiled with IPv6 support
/PHP_5_6/ext/standard/file.c
fa79f2f 15-Jul-2011 David Soria Parra <dsp@php.net> Fix #55212. Only declare STREAM_PF_INET6 if PHP is compiled with IPv6 support
/PHP_5_6/ext/standard/file.c
8d6e997 19-Jun-2011 Felipe Pena <felipe@php.net> - Opss, restore old behavior
/PHP_5_6/ext/standard/file.c
3276cc4 19-Jun-2011 Felipe Pena <felipe@php.net> - Opss, restore old behavior
/PHP_5_6/ext/standard/file.c
868b808 19-Jun-2011 Felipe Pena <felipe@php.net> - Opss, restore old behavior
/PHP_5_6/ext/standard/file.c
0806f78 19-Jun-2011 Felipe Pena <felipe@php.net> - Added missing void param check in sys_get_temp_dir
- Fixed param check of umask()
/PHP_5_6/ext/standard/file.c
54d5662 19-Jun-2011 Felipe Pena <felipe@php.net> - Added missing void param check in sys_get_temp_dir
- Fixed param check of umask()
/PHP_5_6/ext/standard/file.c
d8782dd 19-Jun-2011 Felipe Pena <felipe@php.net> - Added missing void param check in sys_get_temp_dir
- Fixed param check of umask()
/PHP_5_6/ext/standard/file.c
e98eafe 19-Jun-2011 Felipe Pena <felipe@php.net> - Missing usage of 'p' parameter specifier
/PHP_5_6/ext/standard/file.c
b9746b0 19-Jun-2011 Felipe Pena <felipe@php.net> - Missing usage of 'p' parameter specifier
/PHP_5_6/ext/standard/file.c
32b5f8a 06-Jun-2011 Felipe Pena <felipe@php.net> - Added new parameter parsing option (p - for valid path (string without null byte in the middle))
# The tests will be fixed in the next commits
/PHP_5_6/ext/standard/file.c
4737910 06-Jun-2011 Felipe Pena <felipe@php.net> - Added new parameter parsing option (p - for valid path (string without null byte in the middle))
# The tests will be fixed in the next commits
/PHP_5_6/ext/standard/file.c
34de2c3 29-May-2011 Ilia Alshanetsky <iliaa@php.net> Fixed bug #53848 (fgetcsv() ignores spaces at beginnings of fields).
/PHP_5_6/ext/standard/file.c
69a12bf 29-May-2011 Ilia Alshanetsky <iliaa@php.net> Fixed bug #53848 (fgetcsv() ignores spaces at beginnings of fields).
/PHP_5_6/ext/standard/file.c
57674f7 29-May-2011 Ilia Alshanetsky <iliaa@php.net> Fixed bug #53848 (fgetcsv() ignores spaces at beginnings of fields).
/PHP_5_6/ext/standard/file.c
a5eeecb 16-May-2011 Rasmus Lerdorf <rasmus@php.net> Suppress a dozen unused return value warnings in places where the return
value is really not useful to us.
/PHP_5_6/ext/standard/file.c
575ea1e 16-May-2011 Rasmus Lerdorf <rasmus@php.net> Suppress a dozen unused return value warnings in places where the return
value is really not useful to us.
/PHP_5_6/ext/standard/file.c
7f29372 21-Mar-2011 Gustavo André dos Santos Lopes <cataphract@php.net> - Make fclose() actually close stream, even when the resource refcount is > 1.
This reverts the fix for bug #24557.
- Make php_stream_free delete the stream from the resources list, not merely
decrease its refcount, as a single call to zend_list_delete does.
#Not worth the risk merging to 5.3. While change #2 may prevent some segfaults,
#a quick and dirty survey to the codebase only showed calls to php_stream_close
#or php_stream_free on streams allocated in the same function, which would have
#refcount == 1. May be reconsidered.
/PHP_5_6/ext/standard/file.c
927bf09 01-Jan-2011 Felipe Pena <felipe@php.net> - Year++
/PHP_5_6/ext/standard/file.c
0203cc3 01-Jan-2011 Felipe Pena <felipe@php.net> - Year++
/PHP_5_6/ext/standard/file.c
ce96fd6 18-Nov-2010 Pierre Joye <pajoye@php.net> - fix #39863, do not accept paths with NULL in them. See http://news.php.net/php.internals/50191, trunk will have the patch later (adding a macro and/or changing (some) APIs. Patch by Rasmus
/PHP_5_6/ext/standard/file.c
75631ab 18-Nov-2010 Gustavo André dos Santos Lopes <cataphract@php.net> - Implemented alternative strategy for change in rev #304985 so as to
not to break binary compatibility in the 5.3 branch.
/PHP_5_6/ext/standard/file.c
6cb7ea4 09-Nov-2010 Adam Harvey <aharvey@php.net> Implemented FR #53264 (Add fputcsv method to SplFileObject).
/PHP_5_6/ext/standard/file.c
231da1a 29-Oct-2010 Gustavo André dos Santos Lopes <cataphract@php.net> - Fixed bug #53198 (changing INI setting "from" with ini_set did not have any
effect)
#Made "from" a proper INI setting and bound it to a global variable.
#Previously, it was simply read from the hash table with the parsed ini file
#by using cfg_get_string (I wonder why this mechanism still exists...)
/PHP_5_6/ext/standard/file.c
5c09767 29-Oct-2010 Gustavo André dos Santos Lopes <cataphract@php.net> - Fixed bug #53198 (changing INI setting "from" with ini_set did not have any
effect)
#Made "from" a proper INI setting and bound it to a global variable.
#Previously, it was simply read from the hash table with the parsed ini file
#by using cfg_get_string (I wonder why this mechanism still exists...)
/PHP_5_6/ext/standard/file.c
aa0ed26 16-Sep-2010 Pierre Joye <pajoye@php.net> - use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert
/PHP_5_6/ext/standard/file.c
6e06a45 10-Sep-2010 Adam Harvey <aharvey@php.net> Fix bug #52802 (Out-of-date comment for
file_get_contents/php_stream_copy_to_mem) by updating the relevant comments.
/PHP_5_6/ext/standard/file.c
2441ddf 10-Sep-2010 Adam Harvey <aharvey@php.net> Fix bug #52802 (Out-of-date comment for
file_get_contents/php_stream_copy_to_mem) by updating the relevant comments.
/PHP_5_6/ext/standard/file.c
5a36242 17-Aug-2010 Kalle Sommer Nielsen <kalle@php.net> Fixed the $context parameter on copy() to have an effect (approved for 5.3 by Johannes)

# To not change a PHPAPI in a point release, a new function have been added to support contexts:
# php_copy_file_ctx(), php_copy_file_ex() now simply wraps to that
/PHP_5_6/ext/standard/file.c
a12f6d9 17-Aug-2010 Kalle Sommer Nielsen <kalle@php.net> Fixed the $context parameter on copy() to have an effect (approved for 5.3 by Johannes)

# To not change a PHPAPI in a point release, a new function have been added to support contexts:
# php_copy_file_ctx(), php_copy_file_ex() now simply wraps to that
/PHP_5_6/ext/standard/file.c
ac73c9d 16-Aug-2010 Kalle Sommer Nielsen <kalle@php.net> Fixed the context parameter on copy() to actually have an effect

# After looking at the logs, Jani did a bad merge into 5.3, so that
# the context parameter sent to copy() actually isn't used at all. This
# relatively simple patch fixes that for trunk.
#
# See FR #42965

# internals:
# This changes the php_copy_*() decls to contain an additional parameter for stream contexts
/PHP_5_6/ext/standard/file.c
151fc3b 02-May-2010 Felipe Pena <felipe@php.net> - Revert accidental changes
/PHP_5_6/ext/standard/file.c
74d4dde 02-May-2010 Ilia Alshanetsky <iliaa@php.net> - Fixed a possible stack exaustion inside fnmatch(). Reporeted by Stefan Esser
/PHP_5_6/ext/standard/file.c
90c3360 02-May-2010 Ilia Alshanetsky <iliaa@php.net> - Fixed a possible stack exaustion inside fnmatch(). Reporeted by Stefan Esser
/PHP_5_6/ext/standard/file.c
91ee078 27-Apr-2010 Pierrick Charron <pierrick@php.net> Remove unused variables
/PHP_5_6/ext/standard/file.c
dd8e59d 26-Apr-2010 Kalle Sommer Nielsen <kalle@php.net> Removed safe_mode
* Removed ini options, safe_mode*
* Removed --enable-safe-mode --with-exec-dir configure options on Unix
* Updated extensions, SAPI's and core
* php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
/PHP_5_6/ext/standard/file.c
f92fae2 18-Mar-2010 Andrei Zmievski <andrei@php.net> I am sorry I tried fixing PHP without extensive discussion on the mailing list.
I am sorry I tried fixing PHP without extensive discussion on the mailing list.
I am sorry I tried fixing PHP without extensive discussion on the mailing list.

Hope all the relevant parties are satisfied.
/PHP_5_6/ext/standard/file.c
3220f15 18-Mar-2010 Andrei Zmievski <andrei@php.net> Fix a few problems with large (2G-4G) file uploads. Added
--enable-large-uploads-fix switch because one change was in SAPI.h structure.
/PHP_5_6/ext/standard/file.c
ad9bbf2 11-Feb-2010 Ilia Alshanetsky <iliaa@php.net> Fixed safe_mode validation inside tempnam() when the directory path does not end with a /).
/PHP_5_6/ext/standard/file.c
9ba1e81 03-Jan-2010 Sebastian Bergmann <sebastian@php.net> sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
/PHP_5_6/ext/standard/file.c
824692f 03-Nov-2009 Guenter Knauf <guenter@php.net> removed now obsolete NetWare hack since I fixed this
with Novell some longer time ago in their SDK header.
/PHP_5_6/ext/standard/file.c
80bdbc8 29-Sep-2009 Rasmus Lerdorf <rasmus@php.net> Fixed a safe_mode bypass in tempnam() identified by Grzegorz Stachowiak.
/PHP_5_6/ext/standard/file.c
20c5df8 25-Sep-2009 Felipe Pena <felipe@php.net> - Fixed mem leak
/PHP_5_6/ext/standard/file.c
eb2d548 24-Sep-2009 Ilia Alshanetsky <iliaa@php.net> Make tempnam() return FALSE on error as documented
/PHP_5_6/ext/standard/file.c
56d7a43 22-Jun-2009 Felipe Pena <felipe@php.net> - Fixed bug #48641 (tmpfile() uses old parameter parsing)
/PHP_5_6/ext/standard/file.c
529bcf3 24-May-2009 Ilia Alshanetsky <iliaa@php.net> MFB: Improve fix for bug #48313
/PHP_5_6/ext/standard/file.c
2e61607 21-May-2009 Jani Taskinen <jani@php.net> MFH: ws
/PHP_5_6/ext/standard/file.c
e99d4e9 18-May-2009 Ilia Alshanetsky <iliaa@php.net> Fixed bug #48313 (fgetcsv() does not return null for empty rows)
/PHP_5_6/ext/standard/file.c
1d13e22 08-May-2009 Arnaud Le Blanc <lbarnaud@php.net> Fix invalid read
/PHP_5_6/ext/standard/file.c
8ea9eb8 19-Apr-2009 Arnaud Le Blanc <lbarnaud@php.net> MFH: Better fix for #47997
/PHP_5_6/ext/standard/file.c
14c717f 19-Apr-2009 Arnaud Le Blanc <lbarnaud@php.net> Fixed bug #47997 (stream_copy_to_stream returns 1 on empty streams)
/PHP_5_6/ext/standard/file.c
d0c201d 20-Jan-2009 Pierre Joye <pajoye@php.net> - [DOC] add support for fnmatch() on Windows
- enable tests (pass)
/PHP_5_6/ext/standard/file.c
08659c2 31-Dec-2008 Sebastian Bergmann <sebastian@php.net> MFH: Bump copyright year, 3 of 3.
/PHP_5_6/ext/standard/file.c
dda0031 13-Dec-2008 Lars Strojny <lstrojny@php.net> One len variable is enough here, we can reuse it
/PHP_5_6/ext/standard/file.c
e5c1355 12-Dec-2008 Hannes Magnusson <bjori@php.net> MFH: Fixed bug#46681 (mkdir() fails silently on PHP 5.3)
/PHP_5_6/ext/standard/file.c
dffdb48 26-Nov-2008 Arnaud Le Blanc <lbarnaud@php.net> MFH: Fixed bug #46673 (stream_lock call with wrong paramater)
/PHP_5_6/ext/standard/file.c
8f12025 02-Nov-2008 Felipe Pena <felipe@php.net> - MFH: Added str_getcsv()
/PHP_5_6/ext/standard/file.c
d69dfa4 21-Oct-2008 Arnaud Le Blanc <lbarnaud@php.net> MFH: initialize optional vars
/PHP_5_6/ext/standard/file.c
b861898 12-Sep-2008 Felipe Pena <felipe@php.net> - MFH: Fixed unexpected zval changes
/PHP_5_6/ext/standard/file.c
318efa7 12-Aug-2008 Felipe Pena <felipe@php.net> - New parameter parsing API (for fscanf)
/PHP_5_6/ext/standard/file.c
7023ed8 11-Aug-2008 Pierre Joye <pajoye@php.net> - [DOC] MFH: detect if dest is a dir (if the given stream layer supports stat)
and fails
. remove win32 specific test. The errors are not the same
/PHP_5_6/ext/standard/file.c
28a2239 23-Jul-2008 Antony Dovgal <tony2001@php.net> MFH: invert the logics - FLAG_FCLOSE -> FLAG_NO_FCLOSE
/PHP_5_6/ext/standard/file.c
fdfbfb9 22-Jul-2008 Felipe Pena <felipe@php.net> - MFH: Fixed bug #44246 (closedir() accepts a file resource opened by fopen())
/PHP_5_6/ext/standard/file.c
89935d6 21-Jul-2008 Jani Taskinen <jani@php.net> - Forward compatibility.
# @DOC@, [DOC], *DOC*: Added FILE_TEXT and FILE_BINARY constants for forward compatibility.
/PHP_5_6/ext/standard/file.c
cf7e15c 11-Jul-2008 Antony Dovgal <tony2001@php.net> MFH: manage references of stream context properly
/PHP_5_6/ext/standard/file.c
e360ff7 03-Jul-2008 Olivier Hill <ohill@php.net> New parameter parsing API
/PHP_5_6/ext/standard/file.c
04a87d9 16-May-2008 Felipe Pena <felipe@php.net> - Changed 'Z' to 's' (parameter parsing), the code didn't check if the parameter is a string.
/PHP_5_6/ext/standard/file.c
94697ac 04-May-2008 Etienne Kneuss <colder@php.net> MFH: Fix protos
/PHP_5_6/ext/standard/file.c
7535293 15-Apr-2008 Ilia Alshanetsky <iliaa@php.net> MFB: Fixed bug #44034 (FILE_IGNORE_NEW_LINES in file() does not work as
expected when lines end in \r\n)
/PHP_5_6/ext/standard/file.c
f704d2d 30-Mar-2008 Ilia Alshanetsky <iliaa@php.net> Added a warning message
/PHP_5_6/ext/standard/file.c
17d22a5 26-Mar-2008 Ilia Alshanetsky <iliaa@php.net> Fixed bug #44501 (LOCK_EX mode in file_put_contents() is impropertly
handled in combination with url wrappers)
/PHP_5_6/ext/standard/file.c
e947263 24-Feb-2008 Felipe Pena <felipe@php.net> Removed internal warning
/PHP_5_6/ext/standard/file.c
d3e5026 23-Feb-2008 Marcus Boerger <helly@php.net> - MFH Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus)
[DOC] Finally added deprecation messages
/PHP_5_6/ext/standard/file.c
d1dded8 31-Dec-2007 Sebastian Bergmann <sebastian@php.net> MFH: Bump copyright year, 2 of 2.
/PHP_5_6/ext/standard/file.c
afc76bc 13-Nov-2007 Antony Dovgal <tony2001@php.net> fix typo (nice catch, Nuno!)
/PHP_5_6/ext/standard/file.c
6a792be 12-Nov-2007 Ilia Alshanetsky <iliaa@php.net> Fixed bug #43182 (file_put_contents() LOCK_EX does not work properly on file
truncation).
/PHP_5_6/ext/standard/file.c
f95ac18 09-Nov-2007 Dmitry Stogov <dmitry@php.net> Conditions optimization
/PHP_5_6/ext/standard/file.c
77d2a15 06-Nov-2007 Jani Taskinen <jani@php.net> MFH: sync
/PHP_5_6/ext/standard/file.c
43e73a5 05-Nov-2007 Jani Taskinen <jani@php.net> MFH: Sync
[DOC]: note
[DOC] -/* {{{ proto bool copy(string source_file, string destination_file)
[DOC] +/* {{{ proto bool copy(string source_file, string destination_file [, resource context])
[DOC]
[DOC] Apparently this was undocumented so far anyway..
/PHP_5_6/ext/standard/file.c
d4e8fa6 03-Oct-2007 David Soria Parra <dsp@php.net> MFH: Add an escape parameter to fgetcsv to satisfy rfc4180 and bug #40501.
[DOC] 5th parameter available since PHP 5.3+
/PHP_5_6/ext/standard/file.c
72f910c 04-Sep-2007 Ilia Alshanetsky <iliaa@php.net> Fixed possible buffer overflows inside the fnmatch() and glob() functions
/PHP_5_6/ext/standard/file.c
09cad32 03-Sep-2007 Ilia Alshanetsky <iliaa@php.net> Fixed bug #42468 (Write lock on file_get_contents fails when using a
compression stream).
/PHP_5_6/ext/standard/file.c
fb8e3ab 12-Aug-2007 Ilia Alshanetsky <iliaa@php.net> Fixed copy test as well as the directory check inside copy() function
/PHP_5_6/ext/standard/file.c
e2a13a5 11-Aug-2007 Rui Hirokawa <hirokawa@php.net> fixed compilation error: S_ISDIR is undefined.
/PHP_5_6/ext/standard/file.c
7fbcb74 10-Aug-2007 Antony Dovgal <tony2001@php.net> nuke the dot
/PHP_5_6/ext/standard/file.c
e9b8f37 10-Aug-2007 Ilia Alshanetsky <iliaa@php.net> Fixed bug #42243 (copy() does not ouput an error when the first arg is a
dir).
/PHP_5_6/ext/standard/file.c
08286bc 08-Aug-2007 Antony Dovgal <tony2001@php.net> fix ws & folding
/PHP_5_6/ext/standard/file.c
320a416 01-Jul-2007 foobar <sniper@php.net> MFH: - Fixed bug #41865 (fputcsv(): 2nd parameter is not optional)
/PHP_5_6/ext/standard/file.c
6f61e84 27-May-2007 Ilia Alshanetsky <iliaa@php.net> Fixed bug #41492 (open_basedir/safe_mode bypass inside realpath()).
/PHP_5_6/ext/standard/file.c
7e80ad9 18-May-2007 Antony Dovgal <tony2001@php.net> fix leak and check for < 0 only of the 5th arg was passed
/PHP_5_6/ext/standard/file.c
6d41d02 18-May-2007 Antony Dovgal <tony2001@php.net> MFH: fix #41430 (Fatal error with negative values of maxlen parameter of file_get_contents())
/PHP_5_6/ext/standard/file.c
f3a9413 23-Feb-2007 Antony Dovgal <tony2001@php.net> MFH: fix #40606 (umask is not being restored when request is finished)
/PHP_5_6/ext/standard/file.c
60c435d 13-Feb-2007 Antony Dovgal <tony2001@php.net> MFH
/PHP_5_6/ext/standard/file.c
4223aa4 01-Jan-2007 Sebastian Bergmann <sebastian@php.net> MFH: Bump year.
/PHP_5_6/ext/standard/file.c
03312cc 19-Dec-2006 Dmitry Stogov <dmitry@php.net> Added function stream_socket_shutdown(). It is a wraper for system shutdown() function, that shut downs part of a full-duplex connection
/PHP_5_6/ext/standard/file.c
d9f03aa 09-Dec-2006 Hannes Magnusson <bjori@php.net> MFH: sys_get_temp_dir()
/PHP_5_6/ext/standard/file.c
efa9b7e 22-Nov-2006 Pierre Joye <pajoye@php.net> - MFH: #39538, fgetcsv can't handle starting newlines and trailing odd
number of backslashes (David Soria Parra, Pierre)
/PHP_5_6/ext/standard/file.c
296e2a3 20-Nov-2006 Antony Dovgal <tony2001@php.net> MFH
/PHP_5_6/ext/standard/file.c
fca0e24 15-Nov-2006 Ilia Alshanetsky <iliaa@php.net> Added missing object support to file_put_contents().
/PHP_5_6/ext/standard/file.c
017f3ae 13-Nov-2006 Antony Dovgal <tony2001@php.net> don't forget to close the stream when/if flock() fails
/PHP_5_6/ext/standard/file.c
34db368 13-Nov-2006 Antony Dovgal <tony2001@php.net> MFH: fix leaks in get_meta_tags() when used with b0rked HTML
add test
/PHP_5_6/ext/standard/file.c
bc59416 13-Oct-2006 Ilia Alshanetsky <iliaa@php.net> Fixed bug #38934 (move_uploaded_file() cannot read uploaded file outside of
open_basedir).
/PHP_5_6/ext/standard/file.c
a33913d 18-Aug-2006 Antony Dovgal <tony2001@php.net> MFH: add a notice to fgetcsv() when delimiter or enclosure is longer than 1 char
(feature request #38496)
/PHP_5_6/ext/standard/file.c
9c30e20 15-Jul-2006 Marcus Boerger <helly@php.net> - MFH Implement todo: SplFileObject: ability to set the CSV separator per object
/PHP_5_6/ext/standard/file.c
54dba63 14-Jul-2006 Antony Dovgal <tony2001@php.net> rephrase the error message (fixes #38106)
/PHP_5_6/ext/standard/file.c
be0b8c7 29-May-2006 Antony Dovgal <tony2001@php.net> initialize srcstream
/PHP_5_6/ext/standard/file.c
1a63fef 29-May-2006 Antony Dovgal <tony2001@php.net> MFH: prevent resource leaking when passing invalid stream resource as second argument
/PHP_5_6/ext/standard/file.c
4ab6eb3 14-May-2006 Ilia Alshanetsky <iliaa@php.net> MFH: Fixed bug #36630 (umask not reset at the end of the request).
/PHP_5_6/ext/standard/file.c
8f7319a 06-Apr-2006 Ilia Alshanetsky <iliaa@php.net> Fixed safe_mode check for source argument of the copy() function.
/PHP_5_6/ext/standard/file.c
4ca3df5 27-Mar-2006 Ilia Alshanetsky <iliaa@php.net> Check 2nd parameter of tempnam() against path components.
/PHP_5_6/ext/standard/file.c
6c509aa 13-Jan-2006 Pierre Joye <pajoye@php.net> - add php_mkdir_ex, works like php_mkdir but allows to silent any error
when no options are used
/PHP_5_6/ext/standard/file.c
5bd9322 01-Jan-2006 foobar <sniper@php.net> bump year and license version
/PHP_5_6/ext/standard/file.c
d0a54af 05-Dec-2005 foobar <sniper@php.net> MFH: Nuke php3 legacy
/PHP_5_6/ext/standard/file.c
af0adbe 21-Oct-2005 Dmitry Stogov <dmitry@php.net> Fixed fgetcsv() and fputcsv() inconsistency.
/PHP_5_6/ext/standard/file.c
23e671a 03-Aug-2005 foobar <sniper@php.net> - Bumber up year
/PHP_5_6/ext/standard/file.c
fa4ea0f 12-Jul-2005 Ilia Alshanetsky <iliaa@php.net> Added support for LOCK_EX flag for file_put_contents().
/PHP_5_6/ext/standard/file.c
49c2332 22-Jun-2005 Ilia Alshanetsky <iliaa@php.net> Fixed bug #32160 (copying a file into itself leads to data loss).
/PHP_5_6/ext/standard/file.c
a7ae41b 06-Apr-2005 Ilia Alshanetsky <iliaa@php.net> Fixed bug #31363 (broken non-blocking flock()).

# Patch by ian at snork dot net
/PHP_5_6/ext/standard/file.c
f95651e 27-Mar-2005 Ilia Alshanetsky <iliaa@php.net> revert copy patch.
/PHP_5_6/ext/standard/file.c
6bd8257 07-Mar-2005 Marcus Boerger <helly@php.net> - Fix proto
- Do not try to write zero bytes
/PHP_5_6/ext/standard/file.c
cf6711a 07-Mar-2005 Marcus Boerger <helly@php.net> - Length needs to be positive
/PHP_5_6/ext/standard/file.c
97655f8 07-Mar-2005 Marcus Boerger <helly@php.net> - Make maic qutes runtime work if length is specified too
/PHP_5_6/ext/standard/file.c
85ebbd2 07-Mar-2005 Marcus Boerger <helly@php.net> - Delay memory allocation, speeds up faiure case
/PHP_5_6/ext/standard/file.c
7fbc91a 07-Mar-2005 Marcus Boerger <helly@php.net> - Allow length 0 as default (e.g. skip param)
/PHP_5_6/ext/standard/file.c
09a8f38 03-Mar-2005 Ilia Alshanetsky <iliaa@php.net> Fixed bug #32160 (file truncation in copy() when source & destination are
the same).
/PHP_5_6/ext/standard/file.c
67a2998 17-Feb-2005 Anantha Kesari H Y <hyanantha@php.net> NetWare libc has pwd.h
/PHP_5_6/ext/standard/file.c
55fd7ac 08-Feb-2005 Ilia Alshanetsky <iliaa@php.net> Added optional maxlen parameter to file_get_contents().
/PHP_5_6/ext/standard/file.c
1069cef 06-Feb-2005 Wez Furlong <wez@php.net> support sucking data from streams in file_put_contents()
/PHP_5_6/ext/standard/file.c
d213b67 12-Dec-2004 Wez Furlong <wez@php.net> Add missing constants for socketpair().
I thought I had included these...
Good catch Nuno :)
/PHP_5_6/ext/standard/file.c
d10b86f 12-Dec-2004 Wez Furlong <wez@php.net> Add stream_socket_pair(), a streams based version of socketpair().
Modified patch from Vincent [six at t0x dot net]
/PHP_5_6/ext/standard/file.c
01b996b 10-Dec-2004 Antony Dovgal <tony2001@php.net> fix buffer overrun & segfault in get_meta_tags() when there is no tag value
/PHP_5_6/ext/standard/file.c
6883a3f 06-Dec-2004 Ilia Alshanetsky <iliaa@php.net> Fixed bug #30990 (allow popen() on *NIX to accept 'b' flag).
/PHP_5_6/ext/standard/file.c
939a0f1 29-Oct-2004 Andi Gutmans <andi@php.net> - [PATCH] Bug fix for #29770, but for PHP 4.3.9 (Vladimir Zidar)
/PHP_5_6/ext/standard/file.c
c5e2e02 19-Oct-2004 Ilia Alshanetsky <iliaa@php.net> Simplify code.
/PHP_5_6/ext/standard/file.c
51ffc01 13-Oct-2004 Ilia Alshanetsky <iliaa@php.net> Added optional offset parameter to file_get_contents().
/PHP_5_6/ext/standard/file.c
3278809 27-Sep-2004 Anantha Kesari H Y <hyanantha@php.net> removed redundant NEW_LIBC and CLIB_STAT_PATCH checks
/PHP_5_6/ext/standard/file.c
32e478b 26-Sep-2004 Marcus Boerger <helly@php.net> - Add fputcsv() (David Sklar)
/PHP_5_6/ext/standard/file.c
751f67d 09-Sep-2004 Wez Furlong <wez@php.net> avoid ANSI stdio when calling tempnam() to avoid limitations of AT&T libc.
/PHP_5_6/ext/standard/file.c
945f7d6 05-Sep-2004 Andrey Hristov <andrey@php.net> remove "." at the end of messages
/PHP_5_6/ext/standard/file.c
17adf43 22-Jul-2004 Wez Furlong <wez@php.net> Added stream_context_get_default() which returns the default context option.
You may then set options that affect streams operations for the whole script.

Added stream_socket_enable_crypto() which allows you to turn on or off a crypto
layer (eg: SSL/TLS) on stream, if supported by the underlying transport.

Registered a bunch of constants for that.
/PHP_5_6/ext/standard/file.c
56f8195 19-Jul-2004 Andi Gutmans <andi@php.net> - Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
used to return "" and not bool(false). It's not worth keeping it because
STR_FREE() and zval_dtor() always have to check for it and it slows down
the general case. In addition, it seems that empty_string has been abused
quite a lot, and was used not only for setting zval's but generally in
PHP code instead of "", which wasn't the intention. Last but not least,
nuking empty_string should improve stability as I doubt every place
correctly checked if they are not mistakenly erealloc()'ing it or
calling efree() on it.
NOTE: Some code is probably broken. Each extension maintainer should
check and see that my changes are OK. Also, I haven't had time to touch
PECL yet. Will try and do it tomorrow.
/PHP_5_6/ext/standard/file.c
5232a5a 16-Jun-2004 Ard Biesheuvel <abies@php.net> 64-bit bugsquash party
/PHP_5_6/ext/standard/file.c
5b4dc50 14-May-2004 Ilia Alshanetsky <iliaa@php.net> Fixed possible memory leak inside popen().
/PHP_5_6/ext/standard/file.c
81f05c1 25-Feb-2004 Ard Biesheuvel <abies@php.net> Wordsize fixes
/PHP_5_6/ext/standard/file.c
2a05750 25-Jan-2004 foobar <sniper@php.net> Fixed bug #27020 (Compile failure; sys/select.h: No such file or directory)
/PHP_5_6/ext/standard/file.c
39b62f2 19-Jan-2004 Ilia Alshanetsky <iliaa@php.net> Fixed bug #26967 (make various file operations return FALSE on error).
/PHP_5_6/ext/standard/file.c
abfda09 18-Jan-2004 Moriyoshi Koizumi <moriyoshi@php.net> Fix fgetcsv() to reflect the change on 4.3.5 behaviour.
/PHP_5_6/ext/standard/file.c
09fb5dc 14-Jan-2004 Wez Furlong <wez@php.net> Remove stale code from flock();
spotted by Hartmut.
/PHP_5_6/ext/standard/file.c
cd4262e 14-Jan-2004 Wez Furlong <wez@php.net> Fix #26772: fgets returns NULL instead of FALSE.
/PHP_5_6/ext/standard/file.c
dbeb415 08-Jan-2004 Andi Gutmans <andi@php.net> - A belated happy holidays and PHP 5
/PHP_5_6/ext/standard/file.c
939a70a 03-Jan-2004 Ilia Alshanetsky <iliaa@php.net> s/then/than/ Thanks Jani & Andi
/PHP_5_6/ext/standard/file.c
6f7fe1d 02-Jan-2004 Ilia Alshanetsky <iliaa@php.net> Fixed bug #26752 (Silent unterminated loop when length parameter for
fgets(), fread() and fgetss() is 0).
/PHP_5_6/ext/standard/file.c
93cc95e 24-Dec-2003 Moriyoshi Koizumi <moriyoshi@php.net> - fixes for compatibility. now fgetcsv() treats a null line to be a single
null component.
/PHP_5_6/ext/standard/file.c
c566478 13-Dec-2003 Sara Golemon <pollita@php.net> Route mkdir()/rmdir() via wrapper ops.
Move current rmdir()/rmdir() code to plain_wrappers.c
Implement mkdir()/rmdir() in ftp:// wrapper
/PHP_5_6/ext/standard/file.c
b1f8236 12-Dec-2003 Sara Golemon <pollita@php.net> Route rename() via wrapper ops.
Move current rename() code to main/streams/plain_wrapper.c
Implement ftp/rename()
Implement userstreams/rename()
/PHP_5_6/ext/standard/file.c
35c3a7f 10-Dec-2003 Moriyoshi Koizumi <moriyoshi@php.net> Expose the macro globally
/PHP_5_6/ext/standard/file.c
37f135c 29-Nov-2003 Wez Furlong <wez@php.net> Add stream_socket_sendto and stream_socket_recvfrom which work very much
like sendto() and recvfrom() syscalls.
/PHP_5_6/ext/standard/file.c
c722ab9 24-Nov-2003 Ilia Alshanetsky <iliaa@php.net> Fixed bug #26355 (flock() doesn't initialize the wouldblock argument)
/PHP_5_6/ext/standard/file.c
e6feb47 29-Oct-2003 Moriyoshi Koizumi <moriyoshi@php.net> Some clean-ups
/PHP_5_6/ext/standard/file.c
1085c08 27-Oct-2003 Moriyoshi Koizumi <moriyoshi@php.net> Add missing reinitialization call
/PHP_5_6/ext/standard/file.c
69dcdcb 27-Oct-2003 Moriyoshi Koizumi <moriyoshi@php.net> Fixed bug #26003 (fgetcsv() not binary-safe on null bytes)
/PHP_5_6/ext/standard/file.c
2c95c42 05-Oct-2003 Moriyoshi Koizumi <moriyoshi@php.net> Fix the macro to prevent it from falling over in a mess
/PHP_5_6/ext/standard/file.c
80edbeb 04-Oct-2003 Moriyoshi Koizumi <moriyoshi@php.net> Change fgetcsv() so that the second parameter is also optional.
/PHP_5_6/ext/standard/file.c
921e5b4 04-Oct-2003 Moriyoshi Koizumi <moriyoshi@php.net> Fix fgetcsv() to correctly support international characters
# note: mblen() is not a mbstring function, but is part of the ANSI standard
# which is even supported by Microsoft's libc.
/PHP_5_6/ext/standard/file.c
e216695 30-Sep-2003 Stanislav Malyshev <stas@php.net> MF4: allow realpath() for win32 non-ZTS
/PHP_5_6/ext/standard/file.c
dfe3f32 10-Sep-2003 Ilia Alshanetsky <iliaa@php.net> Cleanup previous patch.
/PHP_5_6/ext/standard/file.c
29e829f 10-Sep-2003 Ilia Alshanetsky <iliaa@php.net> Fixed bug #14049 (realpath() w/ZTS returns invalid results for non-existent
paths)
/PHP_5_6/ext/standard/file.c
436a071 28-Aug-2003 Sascha Schumann <sas@php.net> fix format strings
/PHP_5_6/ext/standard/file.c
ed40ae2 11-Aug-2003 Ilia Alshanetsky <iliaa@php.net> emalloc -> safe_emalloc
/PHP_5_6/ext/standard/file.c
4d98e9e 29-Jul-2003 Ilia Alshanetsky <iliaa@php.net> Finalize the closing process of persistent streams. The current
behavior/API is as follows:

1) To close a persistent use php_stream_pclose(), it will close the stream
and remove it from the persistent list.

2) Inside PHP code only explicit fclose() will close persistent streams,
all other actions such as unset() or assigning a value to stream handle
will not.

3) Regular streams can still be closed by either fclose(), unset() or an
assignment of a value to the stream handler.
/PHP_5_6/ext/standard/file.c
abe2afc 28-Jul-2003 Ilia Alshanetsky <iliaa@php.net> Make pclose() respect references.
/PHP_5_6/ext/standard/file.c
cd4a281 27-Jul-2003 Ilia Alshanetsky <iliaa@php.net> Fixed bug #24557 (make fclose() respect refcount on the resource).
/PHP_5_6/ext/standard/file.c
a6fd611 28-Jun-2003 Ilia Alshanetsky <iliaa@php.net> Added array handling to file_put_contents()
More verbose error reporting mechanism.
Test case for file_put_contents().
/PHP_5_6/ext/standard/file.c
f2acb42 28-Jun-2003 Derick Rethans <derick@php.net> - Return number of bytes written instead of just TRUE. (Path by Paul Hudson,
hudzilla@php.net)
/PHP_5_6/ext/standard/file.c
f304458 14-Jun-2003 Marcus Boerger <helly@php.net> Fix ZTS mode (hopefully all is working fine now again)
/PHP_5_6/ext/standard/file.c
9605db4 14-Jun-2003 Marcus Boerger <helly@php.net> Fix ZTS mode
/PHP_5_6/ext/standard/file.c
99db196 13-Jun-2003 Sara Golemon <pollita@php.net> Plug leak (context options not freed)
Make contexts auto-registered, ensures userland contexts
and C API contexts are both dealt with on request shutdown.
Also brings contexts in keeping with streams which are already
auto-registered.
/PHP_5_6/ext/standard/file.c
f68c7ff 10-Jun-2003 James Cox <imajes@php.net> updating license information in the headers.
/PHP_5_6/ext/standard/file.c
9e71e39 06-Jun-2003 foobar <sniper@php.net> WS
/PHP_5_6/ext/standard/file.c
32a0044 31-May-2003 Ilia Alshanetsky <iliaa@php.net> Fixed bug #23913 (make rename() work across partitions on *nix)
/PHP_5_6/ext/standard/file.c
af5e2af 21-May-2003 Sara Golemon <pollita@php.net> Setup FG(default_context) in RINIT/RSHUTDOWN instead of fg_ctor/fg_dtor.
Frees context at right time without double freeing.
/PHP_5_6/ext/standard/file.c
2d1a6e5 21-May-2003 Wez Furlong <wez@php.net> MFB context refcounting and text-mode fopen fixes
/PHP_5_6/ext/standard/file.c
83b7b75 21-May-2003 Sara Golemon <pollita@php.net> Implement default contexts. For the moment this is useless
but it will be used soon for connection pooling.
/PHP_5_6/ext/standard/file.c
65d359d 14-May-2003 Sara Golemon <pollita@php.net> Fold 'options' parameter into wops->unlink method
/PHP_5_6/ext/standard/file.c
31dc62a 14-May-2003 Sascha Schumann <sas@php.net> MFB segfault fix
/PHP_5_6/ext/standard/file.c
5126fbe 14-May-2003 Sara Golemon <pollita@php.net> Setup unlink() method in wrapper_ops structure, implement unlink in plainfiles wrapper, explicitly set method NULL in other wrappers (for now), and rewrite unlink userland function to call into wrapper_ops
/PHP_5_6/ext/standard/file.c
e364d1f 05-May-2003 Hartmut Holzgraefe <hholzgra@php.net> proto fix
/PHP_5_6/ext/standard/file.c
f4c9feb 28-Apr-2003 Moriyoshi Koizumi <moriyoshi@php.net> Added missing sanity check in fgetcsv()
/PHP_5_6/ext/standard/file.c
8da5e8e 11-Apr-2003 Sara Golemon <pollita@php.net> Export constants to userland
/PHP_5_6/ext/standard/file.c
87c5019 08-Apr-2003 Sara Golemon <pollita@php.net> Switch file_put_contents 'bool use_include_path' to 'int flags' to allow other options such as appending
/PHP_5_6/ext/standard/file.c
41d4fcd 08-Apr-2003 Sara Golemon <pollita@php.net> Add context support to file_put_contents() and readfile(), convert readfile() to zend_parse_parameters usage, fix proto for file_put_contents()
/PHP_5_6/ext/standard/file.c
1e853b7 08-Apr-2003 Sara Golemon <pollita@php.net> Added context support to file()
/PHP_5_6/ext/standard/file.c
a45b425 08-Apr-2003 foobar <sniper@php.net> file_set_contents -> file_put_contents
/PHP_5_6/ext/standard/file.c
8001f29 08-Apr-2003 Sara Golemon <pollita@php.net> Add context support to file_get_contents
/PHP_5_6/ext/standard/file.c
0e73275 28-Mar-2003 Ilia Alshanetsky <iliaa@php.net> CS
/PHP_5_6/ext/standard/file.c
0a4282e 21-Mar-2003 Sterling Hughes <sterling@php.net> fix segfault in file_set_contents() when the file could not successfully
be opened.
/PHP_5_6/ext/standard/file.c
862586e 18-Mar-2003 Wez Furlong <wez@php.net> CS fixes
/PHP_5_6/ext/standard/file.c
0e6fca4 18-Mar-2003 Stig Bakken <ssb@php.net> * email address change
/PHP_5_6/ext/standard/file.c
39b8f06 12-Mar-2003 Sterling Hughes <sterling@php.net> @ Add the file_set_contents() function, as a complement to the file_get_contents()
@ function. (Sterling)
/PHP_5_6/ext/standard/file.c
3c9155e 07-Mar-2003 foobar <sniper@php.net> Renamed OnUpdateInt -> OnUpdateLong to prevent further misunderstandings.
# Intentionally left out any 'alias' for it, this way 3rd party extension
# maintainers will really NOTICE the change.
/PHP_5_6/ext/standard/file.c
af4aa97 06-Mar-2003 Stefan Esser <sesser@php.net> Fixing functionicalls with variable number of parameters...
/PHP_5_6/ext/standard/file.c
1b53a2d 28-Feb-2003 Wez Furlong <wez@php.net> New user-space functions:
. stream_socket_client() - similar to fsockopen(), but more powerful.
. stream_socket_server() - Creates a server socket.
. stream_socket_accept() - Accept a client connection.
. stream_socket_get_name() - Get local or remote name of socket.

Tidy up some leaks and debug printfs.
Move more streams functions into streamsfuncs.c and streamsfuncs.h.
/PHP_5_6/ext/standard/file.c
050e86f 28-Feb-2003 Hartmut Holzgraefe <hholzgra@php.net> it is still to early in the morning for coding :(
/PHP_5_6/ext/standard/file.c
80d267e 28-Feb-2003 Hartmut Holzgraefe <hholzgra@php.net> make sure that GNU extensions exist for fnmatch()
/PHP_5_6/ext/standard/file.c
5def83d 27-Feb-2003 Wez Furlong <wez@php.net> Move streams specific stuff from ext/standard/file.c -> ext/standard/streams.c
Move win32 select implementation into win32/.
Will update win32 build in a moment.
/PHP_5_6/ext/standard/file.c
cfd8150 27-Feb-2003 Wez Furlong <wez@php.net> Add a generic meta data api for streams.
/PHP_5_6/ext/standard/file.c
76ebaa6 27-Feb-2003 Wez Furlong <wez@php.net> - Move https:// and ftps:// wrapper registration into the openssl module.
- Expose the http:// and ftp:// wrappers as PHPAPI
- Remove unused variables
/PHP_5_6/ext/standard/file.c
fd61f69 27-Feb-2003 Wez Furlong <wez@php.net> Another big commit (tm).

Main Changes:
- Implement a socket transport layer for use by all code that needs to open
some kind of "special" socket for network or IPC.
- Extensions can register (and override) transports.
- Implement ftruncate() on streams via the ioctl-alike option interface.
- Implement mmap() on streams via the ioctl-alike option interface.
- Implement generic crypto API via the ioctl-alike option interface.
(currently only supports OpenSSL, but could support other SSL toolkits,
and other crypto transport protocols).

Impact:
- tcp sockets can be overloaded by the openssl capable sockets at runtime,
removing the link-time requirement for ssl:// and https:// sockets and
streams.
- checking stream types using PHP_STREAM_IS_SOCKET is deprecated, since
there are now a range of possible socket-type streams.

Working towards:
- socket servers using the new transport layer
- mmap support under win32
- Cleaner code.

# I will be updating the win32 build to add the new files shortly
# after this commit.
/PHP_5_6/ext/standard/file.c
17acc55 26-Feb-2003 Derick Rethans <derick@php.net> - Fix proto
/PHP_5_6/ext/standard/file.c
991da29 25-Feb-2003 Moriyoshi Koizumi <moriyoshi@php.net> Set fgetss() free from the length parameter
/PHP_5_6/ext/standard/file.c
862634f 25-Feb-2003 Ilia Alshanetsky <iliaa@php.net> Added locking to streams.
Allow PHP to automatically release locks on files when terminating the
stream.
Fixed bugs in the handling of the 3rd optional parameter to flock().
/PHP_5_6/ext/standard/file.c
b44b0b8 24-Feb-2003 Moriyoshi Koizumi <moriyoshi@php.net> Made fgetss() binary safe too
/PHP_5_6/ext/standard/file.c
088e269 24-Feb-2003 Wez Furlong <wez@php.net> MFB: Bunch of streams related fixes.
/PHP_5_6/ext/standard/file.c
a3cb589 24-Feb-2003 Ilia Alshanetsky <iliaa@php.net> Fixed bug #22382 (fgetcsv did not handle \" correctly).
/PHP_5_6/ext/standard/file.c
8908faa 22-Feb-2003 Ilia Alshanetsky <iliaa@php.net> Revent previous patch, adding of file_write_content() was premature.
/PHP_5_6/ext/standard/file.c
d2e2fbc 22-Feb-2003 Ilia Alshanetsky <iliaa@php.net> int/long change.
/PHP_5_6/ext/standard/file.c
d4e9d48 18-Feb-2003 Moriyoshi Koizumi <moriyoshi@php.net> Fixed bug #21689 (fgetcsv suppresses some characters before a separator)
The fix is suggested by Masahiro Nakayama <masa@sfc.wide.ad.jp>

# is* functions expect their argument to be an integer in range of 0-255
/PHP_5_6/ext/standard/file.c
6fe4ab4 18-Feb-2003 Sara Golemon <pollita@php.net> Fix stream_filter_(ap|pre)pend to allow attaching on the read and/or write chains. Automagically decide what to do if noone tells us.
/PHP_5_6/ext/standard/file.c
32165a5 18-Feb-2003 Wez Furlong <wez@php.net> Implement new filter API, stage 1.
This breaks user-space filters (for the time being), and those
weird convert.* filters in ext/standard/filters.c

The filters stack has been separated into one chain for read and one chain
for write.

The user-space stream_filter_append() type functions currently only operate
on the read chain. They need extending to work with the write chain too.
/PHP_5_6/ext/standard/file.c
4934744 17-Feb-2003 Zeev Suraski <zeev@php.net> Win32 build improvements
/PHP_5_6/ext/standard/file.c
63c95db 16-Feb-2003 Wez Furlong <wez@php.net> Remove unused vars
/PHP_5_6/ext/standard/file.c
0a18a9d 16-Feb-2003 Wez Furlong <wez@php.net> A add much more useful select(2) implementation than is provided by
windows sockets. The winsock implementation will only work with sockets;
our implementation works with sockets and file descriptors.
By association, stream_select() will now operate correctly with files, pipes and sockets.

This change required linking against the winsock2 library. In terms of
compatibility, only older versions of windows 95 do not have winsock2
installed by default. It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user.

Also, add a win32 compatible pipe test when opening a stream from a pipe. This test will only work on NT, win2k and XP platforms. Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered. I will be working on a fix for this issue for win9x.
/PHP_5_6/ext/standard/file.c
53b7b0e 10-Feb-2003 Ilia Alshanetsky <iliaa@php.net> Merged the flags for the file() function into a single flag.
/PHP_5_6/ext/standard/file.c
eefe0f1 09-Feb-2003 Wez Furlong <wez@php.net> ZTS fix
/PHP_5_6/ext/standard/file.c
f98ea4c 09-Feb-2003 Ilia Alshanetsky <iliaa@php.net> Added feature request #9173 (added stream_get_line(), this function will
read either the specified number of bytes or until the ending string is
found).
/PHP_5_6/ext/standard/file.c
8b5bc3e 09-Feb-2003 Ilia Alshanetsky <iliaa@php.net> Added feature request #17983 (optional parameter to mkdir() that makes
directory creation recursive).
Fixed prototype for file() function.
/PHP_5_6/ext/standard/file.c
4eae419 09-Feb-2003 Ilia Alshanetsky <iliaa@php.net> Added feature request #14097 (option allowing file() command not to include
line endings in it's output. As well as another option, which allows blank
lines to be excluded from the output).
/PHP_5_6/ext/standard/file.c
8a9e09a 21-Jan-2003 Ilia Alshanetsky <iliaa@php.net> ARG_COUNT(ht) -> ZEND_NUM_ARGS().
/PHP_5_6/ext/standard/file.c
71e9f8c 18-Jan-2003 Ilia Alshanetsky <iliaa@php.net> Removed pointless memory allocation checks.
/PHP_5_6/ext/standard/file.c
7002a39 18-Jan-2003 Wez Furlong <wez@php.net> Fix potential problem for 64-bit architectures.
/PHP_5_6/ext/standard/file.c
39aa3a5 18-Jan-2003 Derick Rethans <derick@php.net> - Fixed memleak in fscanf().
/PHP_5_6/ext/standard/file.c
7fa0970 11-Jan-2003 Moriyoshi Koizumi <moriyoshi@php.net> Reverted because correct decision has not been made yet.
/PHP_5_6/ext/standard/file.c
dd2ad16 11-Jan-2003 Moriyoshi Koizumi <moriyoshi@php.net> Reduced compiler warnings in ZE2 build
/PHP_5_6/ext/standard/file.c
5413a66 09-Jan-2003 Ilia Alshanetsky <iliaa@php.net> CS fixes
/PHP_5_6/ext/standard/file.c
3e5bbba 09-Jan-2003 Ilia Alshanetsky <iliaa@php.net> Fixed a memory corruption that occurs when an unterminated " is encountered
this bug maybe be related to #21556.
/PHP_5_6/ext/standard/file.c
7dae400 05-Jan-2003 Sara Golemon <pollita@php.net> Fixes to stream_get_wrappers() and stream_get_filters() handle hash table layouts better, plus some picune whitespace fixes
/PHP_5_6/ext/standard/file.c
f99fa71 03-Jan-2003 Ilia Alshanetsky <iliaa@php.net> Fixed a bug that would cause flock() to never set the 3rd argument.
CS fixes & switched to new parameter parsing API.
/PHP_5_6/ext/standard/file.c
830298b 03-Jan-2003 Anantha Kesari H Y <hyanantha@php.net> Modified for NetWare.
/PHP_5_6/ext/standard/file.c
7b37272 03-Jan-2003 Sara Golemon <pollita@php.net> Added stream_get_wrappers()
/PHP_5_6/ext/standard/file.c
b506f5c 31-Dec-2002 Sebastian Bergmann <sebastian@php.net> Bump year.
/PHP_5_6/ext/standard/file.c
bb64084 26-Dec-2002 Wez Furlong <wez@php.net> Remove cruft that opened a stream that was never closed in get_meta_tags().
(probably my fault).
Noticed by Philip Olson
/PHP_5_6/ext/standard/file.c
7364e3b 05-Dec-2002 Ilia Alshanetsky <iliaa@php.net> Fixed bug #12556, updated the test for this bug.
/PHP_5_6/ext/standard/file.c
cc13af6 30-Nov-2002 Ilia Alshanetsky <iliaa@php.net> Fixed bug #20716.
/PHP_5_6/ext/standard/file.c
5c96f91 27-Nov-2002 Sterling Hughes <sterling@php.net> don't use stupid constants, be smart, just read the line
/PHP_5_6/ext/standard/file.c
78e2e69 06-Nov-2002 Ilia Alshanetsky <iliaa@php.net> Instead of checking whether realpath exists based on OS. Use the
HAVE_REALPATH define, which is set if realpath() is avaliable. This patch
also resolves bug #18868.
/PHP_5_6/ext/standard/file.c
c4e3bbb 29-Oct-2002 Marcus Boerger <helly@php.net> no C++ comments
#args sorry on that & thx jani
/PHP_5_6/ext/standard/file.c
083fc40 29-Oct-2002 Marcus Boerger <helly@php.net> fix overrun
/PHP_5_6/ext/standard/file.c
e1508ef 24-Oct-2002 Marcus Boerger <helly@php.net> fix compiler warning?: implement default mentioned by manual
/PHP_5_6/ext/standard/file.c
30abd18 22-Oct-2002 Ilia Alshanetsky <iliaa@php.net> Fixed a possible segmentation fault in file() function.
/PHP_5_6/ext/standard/file.c
dabf105 21-Oct-2002 Wez Furlong <wez@php.net> 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.
/PHP_5_6/ext/standard/file.c
829f185 19-Oct-2002 Wez Furlong <wez@php.net> 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.
/PHP_5_6/ext/standard/file.c
4b83b18 18-Oct-2002 Ilia Alshanetsky <iliaa@php.net> Fixed bug #19971 (optimized the file() function).
The file() function is now also binary safe.
/PHP_5_6/ext/standard/file.c
9b87199 18-Oct-2002 Wez Furlong <wez@php.net> Improve file().
Patch by Tal Peer <tal@php.net>
/PHP_5_6/ext/standard/file.c
2f6952c 15-Oct-2002 Wez Furlong <wez@php.net> Nope, that last one wasn't a leak in main/streams.c, it was
file_get_contents misinterpreting the result...
/PHP_5_6/ext/standard/file.c
86e60a2 14-Oct-2002 Wez Furlong <wez@php.net> @- 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)
/PHP_5_6/ext/standard/file.c
9d5bab5 05-Oct-2002 Wez Furlong <wez@php.net> EOF related fixes.
/PHP_5_6/ext/standard/file.c
9b10843 02-Oct-2002 David Reid <dreid@php.net> Add more BeOS support...
/PHP_5_6/ext/standard/file.c
7694770 28-Sep-2002 Wez Furlong <wez@php.net> 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.
/PHP_5_6/ext/standard/file.c
8aae36a 28-Sep-2002 Wez Furlong <wez@php.net> Add missing folding marker.
/PHP_5_6/ext/standard/file.c
315e0a5 27-Sep-2002 Wez Furlong <wez@php.net> 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)
/PHP_5_6/ext/standard/file.c
c484eb8 26-Sep-2002 Wez Furlong <wez@php.net> 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.
/PHP_5_6/ext/standard/file.c
4c2a9c0 26-Sep-2002 Wez Furlong <wez@php.net> Remove an unused variable and a now-unused function.
/PHP_5_6/ext/standard/file.c
3a67c67 26-Sep-2002 Wez Furlong <wez@php.net> 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
/PHP_5_6/ext/standard/file.c
419efa6 26-Sep-2002 Hartmut Holzgraefe <hholzgra@php.net> symbolic constants for fnmatch flags added
/PHP_5_6/ext/standard/file.c
0141e97 25-Sep-2002 Wez Furlong <wez@php.net> Make these all work with persistent streams too.
/PHP_5_6/ext/standard/file.c
696e0a2 25-Sep-2002 Wez Furlong <wez@php.net> Implement persistent streams. (for pfsockopen).
Juggle some includes/definitions.
Tidy up streams use in ext/standard/file.c
/PHP_5_6/ext/standard/file.c
4cdf8c7 24-Sep-2002 Wez Furlong <wez@php.net> Fix EOL markers for file() so that Mac EOL work correctly.
/PHP_5_6/ext/standard/file.c
c74b9fa 23-Sep-2002 Wez Furlong <wez@php.net> Implement a default_socket_timeout and auto_detect_line_endings ini options.
Also move user_agent from BG to FG.
/PHP_5_6/ext/standard/file.c
4d8a07d 23-Sep-2002 Wez Furlong <wez@php.net> 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.
/PHP_5_6/ext/standard/file.c
687312b 13-Sep-2002 Ilia Alshanetsky <iliaa@php.net> Do not create the destination file, if opening of the source file failed
during copy().
/PHP_5_6/ext/standard/file.c
3df412c 07-Sep-2002 Wez Furlong <wez@php.net> Fix a couple of bad pointer indirections (oops).
Lets stick to a single category of "http" for the "user_agent"
context override.
/PHP_5_6/ext/standard/file.c
91df221 07-Sep-2002 Sterling Hughes <sterling@php.net> @ Made the User-Agent that php's fopen wrappers send, configurable via
@ php.ini or via a stream context. (Sterling)

The stream context is untested, but it should/could work :) Either way it
doesn't make the rest of the code bad. Wez -- please take a looksie for me
:)
/PHP_5_6/ext/standard/file.c
8b8f1e0 05-Sep-2002 Anantha Kesari H Y <hyanantha@php.net> NetWare related additions/modifications
/PHP_5_6/ext/standard/file.c
6063c8c 26-Aug-2002 Marcus Boerger <helly@php.net> fix fwrite to no longer apply stripslashes on input string when
magic_quotes_runtime is set On.
/PHP_5_6/ext/standard/file.c
ba40963 25-Aug-2002 Marcus Boerger <helly@php.net> improoved error messages
/PHP_5_6/ext/standard/file.c
5c6ad38 25-Aug-2002 Wez Furlong <wez@php.net> Prevent possible problems with include_path.
/PHP_5_6/ext/standard/file.c
149ad05 24-Aug-2002 Marcus Boerger <helly@php.net> php_error_docref
#New conversion available at: http://docref.txt.marcus-boerger.de
/PHP_5_6/ext/standard/file.c
9d348ea 20-Aug-2002 Wez Furlong <wez@php.net> Implement filter API for streams.

Filters can be stacked onto a stream; more details will follow in docs and
on php-dev.

Implement "string.rot13" filter

Allows the following script:

$fp = fopen("file.txt", "r");
stream_filter_prepend($fp, "string.rot13");

// File contents will be subject to a rot13 transformation before
// being output.
fpassthru($fp);
fclose($fp);
/PHP_5_6/ext/standard/file.c
5f9a5a7 19-Aug-2002 Wez Furlong <wez@php.net> Remove php_stream_sock_set_blocking and replace with
php_stream_set_option which can be used in a similar way as ioctl()
to set options for streams.

Current options include buffering and blocking support.

o Buffer control is support for stdio based streams.
o Blocking/non-blocking is supported for stdio and socket based streams.
/PHP_5_6/ext/standard/file.c
1aea030 18-Aug-2002 Ilia Alshanetsky <iliaa@php.net> Corrected if() syntax in previous patch.
/PHP_5_6/ext/standard/file.c
d42dbfc 18-Aug-2002 Ilia Alshanetsky <iliaa@php.net> Fixed a segmentation fault that would occur if an entry contained a
non-terminated enclosure. Bug #12556
/PHP_5_6/ext/standard/file.c
b025bb1 13-Aug-2002 Rasmus Lerdorf <rasmus@php.net> Missing proto
/PHP_5_6/ext/standard/file.c
ccb5c84 09-Aug-2002 Wez Furlong <wez@php.net> Centralize some blocking socket related code.
# It's been a while since I wrote this!
/PHP_5_6/ext/standard/file.c
c528157 08-Aug-2002 Yasuo Ohgaki <yohgaki@php.net> Remove duplicated checks.
/PHP_5_6/ext/standard/file.c
e3797ab 13-Jul-2002 foobar <sniper@php.net> Fixed bug: #16638.
/PHP_5_6/ext/standard/file.c
d907b2d 10-Jul-2002 Jason Greene <jason@php.net> @Fixed socket_set_timeout on win32 (Jason, Edin, Jani)
/PHP_5_6/ext/standard/file.c
b414663 08-Jul-2002 Andi Gutmans <andi@php.net> - Fix TSRMLS_* stuff
/PHP_5_6/ext/standard/file.c
728f2de 08-Jul-2002 Derick Rethans <derick@php.net> Unify error messages
/PHP_5_6/ext/standard/file.c
7b7608d 02-Jul-2002 Derick Rethans <derick@php.net> - Fix for bug #15547 (Patch by Justin Garrett <usjgarrett@byu.edu>)
/PHP_5_6/ext/standard/file.c
303852b 18-Jun-2002 Hartmut Holzgraefe <hholzgra@php.net> - fixed bug in enclosure handling (was still hardcoded to '"' in one place)
- added possibility to pass empty enclosure if you really don't want one
/PHP_5_6/ext/standard/file.c
f9936a8 10-Jun-2002 Markus Fischer <mfischer@php.net> - Fix proto.
/PHP_5_6/ext/standard/file.c
fc059f5 23-May-2002 Andi Gutmans <andi@php.net> - Fix typo
/PHP_5_6/ext/standard/file.c
c37d2a9 23-May-2002 Derick Rethans <derick@php.net> - Fix errormessage and whitespace
/PHP_5_6/ext/standard/file.c
b768cf0 23-May-2002 Yasuo Ohgaki <yohgaki@php.net> Added 4th parameter to specify enclosure character. Patch by Dean Richard Benson <dean@vipersoft.co.uk>
Spit more meaningful error messages when delim and/or enclosure char is null.
/PHP_5_6/ext/standard/file.c
93af4bd 12-May-2002 Rasmus Lerdorf <rasmus@php.net> Change safe-mode rule for rmdir() to match unlink() - allow is target
is opened by caller or in a directory owned by caller
@ Minor fix to rmdir() under safe-mode (Rasmus)
/PHP_5_6/ext/standard/file.c
51e2ea5 06-May-2002 jim winstead <jimw@php.net> fix problem with mkdir() on freebsd
/PHP_5_6/ext/standard/file.c
4378214 04-May-2002 Sascha Schumann <sas@php.net> Make this code work on compilers which don't consider the address
of a variable on the stack available at compile time.
/PHP_5_6/ext/standard/file.c
eacad68 30-Apr-2002 Sebastian Bergmann <sebastian@php.net> Fix ZTS build.
/PHP_5_6/ext/standard/file.c
7605736 30-Apr-2002 Wez Furlong <wez@php.net> Implement user-space funtions to operate on stream contexts.
/PHP_5_6/ext/standard/file.c
e1d0a14 10-Apr-2002 Wez Furlong <wez@php.net> Implement stream context and status notification system.
Bump the BC for zlib notice to a warning
# See my RFC to php-dev a few days ago
/PHP_5_6/ext/standard/file.c
385b233 05-Apr-2002 Zeev Suraski <zeev@php.net> Fix gzip/bz2 builds for Windows
/PHP_5_6/ext/standard/file.c
2539cbc 28-Mar-2002 Wez Furlong <wez@php.net> Phase 3 of OO wrapper cleanup
# What was phase 2?
/PHP_5_6/ext/standard/file.c
341af63 21-Mar-2002 Markus Fischer <mfischer@php.net> - Use proper macros for php_stream_cast() return values (fixes #16211).
/PHP_5_6/ext/standard/file.c
b00d9a5 21-Mar-2002 Hartmut Holzgraefe <hholzgra@php.net> added fnmatch() and glob() functions
could someone please check if i got the virtual dir stuff right?
/PHP_5_6/ext/standard/file.c
a662f01 21-Mar-2002 Wez Furlong <wez@php.net> Convert the gzfile related functions into aliases for their equivalents
in ext/standard/file.c, so a gzopen()ed file pointer can be used in
fread, fseek etc.
Improved behaviour of zlib stream.
Moved passthru code into streams.c
# I'm not happy about BG(mmap_file)
Nuked gzgetss_state as no longer needed.
/PHP_5_6/ext/standard/file.c
3dbde95 20-Mar-2002 Wez Furlong <wez@php.net> Make state parameter of php_strip_tags passed by reference.
Move state tracking to stream structure.
/PHP_5_6/ext/standard/file.c
659a071 20-Mar-2002 Wez Furlong <wez@php.net> Streams are all tracked as resources now.
Add some logic that will help track down leaks
when debug is enabled.
/PHP_5_6/ext/standard/file.c
14a3911 19-Mar-2002 Wez Furlong <wez@php.net> fix for bug #16168
/PHP_5_6/ext/standard/file.c
6abe71b 19-Mar-2002 Wez Furlong <wez@php.net> s/fgetwrapperdata/file_get_wrapper_data/
/PHP_5_6/ext/standard/file.c
c9d5e13 18-Mar-2002 Wez Furlong <wez@php.net> TSRMLS related work on streams, as discussed with Zeev.
# Should be the last "broad" commit for a while
# Don't forget to make clean ; make
/PHP_5_6/ext/standard/file.c
73e7932 18-Mar-2002 Zeev Suraski <zeev@php.net> Fix the build and all of the outstanding VC++ warnings
/PHP_5_6/ext/standard/file.c
0895998 16-Mar-2002 Wez Furlong <wez@php.net> s/get_file_contents/file_get_contents/
/PHP_5_6/ext/standard/file.c
201446c 16-Mar-2002 Wez Furlong <wez@php.net> Ooops.
/PHP_5_6/ext/standard/file.c
0447327 16-Mar-2002 Wez Furlong <wez@php.net> Implement get_file_contents() as discussed (briefly!) by myself, Derick
and Sterling on php-dev some months ago.
It returns the file contents as a string, and uses mmap if possible.
/PHP_5_6/ext/standard/file.c
6368293 16-Mar-2002 Wez Furlong <wez@php.net> Allow php_stream_copy_to_stream to do nothing when used with code
that calculates a max length of zero. (Thanks again Marcus).
/PHP_5_6/ext/standard/file.c
52982c4 16-Mar-2002 Wez Furlong <wez@php.net> This should help with some build problems/warnings under win32.
Someone still needs to add the streams.c file to the MSVC
project/workspace though (there are so many that I don't really know
what I am doing :-).
/PHP_5_6/ext/standard/file.c
a184f5d 16-Mar-2002 Wez Furlong <wez@php.net> * formatting, plus remove some old fopen wrappers
/PHP_5_6/ext/standard/file.c
0f65280 15-Mar-2002 Wez Furlong <wez@php.net> New PHP streams...
/PHP_5_6/ext/standard/file.c
90613d2 28-Feb-2002 Sebastian Bergmann <sebastian@php.net> Maintain headers.
/PHP_5_6/ext/standard/file.c
1e2b854 11-Jan-2002 Markus Fischer <mfischer@php.net> - mkdir(): made second (mode) parameter optional, default to 0777
switched to zend_parse_parameters().
# Added vim 'noet' setting
/PHP_5_6/ext/standard/file.c
e5c08b8 21-Dec-2001 Derick Rethans <derick@php.net> - Added open basedir checks to file functions. (Patch by
Christoph Kassen <chkassen@chkassen.de>)
/PHP_5_6/ext/standard/file.c
25058db 21-Dec-2001 Sean Bright <elixer@php.net> Use memset() instead.
/PHP_5_6/ext/standard/file.c
33730ca 21-Dec-2001 Sean Bright <elixer@php.net> Initialize variable to avoid bogus data and possible segfault.
/PHP_5_6/ext/standard/file.c
0ca4f69 21-Dec-2001 Sean Bright <elixer@php.net> Switched some functions to use zend_parse_parameters, cleaned up some
unused variables and some whitespace work.
/PHP_5_6/ext/standard/file.c
3893351 11-Dec-2001 Sebastian Bergmann <sebastian@php.net> Update headers.
/PHP_5_6/ext/standard/file.c
94737d0 07-Dec-2001 Hartmut Holzgraefe <hholzgra@php.net> proto fix
/PHP_5_6/ext/standard/file.c
c162636 06-Dec-2001 Hartmut Holzgraefe <hholzgra@php.net> proto fixes
/PHP_5_6/ext/standard/file.c
886ad91 04-Dec-2001 Sterling Hughes <sterling@php.net> Make the length parameter to fgets optional (defaults to 1024)
/PHP_5_6/ext/standard/file.c
fc3906e 18-Nov-2001 foobar <sniper@php.net> WS fix
/PHP_5_6/ext/standard/file.c
42b9349 14-Nov-2001 Sterling Hughes <sterling@php.net> Many other reasons that setvbuf can fail than "wrong arguments", returning
false should be enough
/PHP_5_6/ext/standard/file.c
5ccdb1d 11-Nov-2001 Jeroen van Wolffelaar <jeroen@php.net> Fix all (at least, I tried to catch all) proto's in file.c
/PHP_5_6/ext/standard/file.c
788b155 11-Nov-2001 Jeroen van Wolffelaar <jeroen@php.net> Add warning when set_file_buffer() fails
/PHP_5_6/ext/standard/file.c
88c6758 10-Nov-2001 Derick Rethans <derick@php.net> - Fixing this bad idea
/PHP_5_6/ext/standard/file.c
4f78737 10-Nov-2001 James Moore <jmoore@php.net> Fix apache win32 dso build.
(This is untested on linux but shouldnt break anything)
/PHP_5_6/ext/standard/file.c
f73ee14 23-Oct-2001 foobar <sniper@php.net> Check that realpath is available. Bug: #9469
# TSRM still uses it without checking. I can't fix that.
/PHP_5_6/ext/standard/file.c
a92fa9b 13-Oct-2001 Sascha Schumann <sas@php.net> Either sizeof(struct stat) or sizeof f_stat, but not sizeof stat.
/PHP_5_6/ext/standard/file.c
62fb3d6 07-Oct-2001 Derick Rethans <derick@php.net> @- Added mmapfile(), read a file into a variabele with mmap (Ilia A, Derick)
- Added mmapfile(), read a file into a variabele with mmap (Patch by:
Ilia A. <ilia@prohost.org>)
/PHP_5_6/ext/standard/file.c
c033288 25-Sep-2001 Jeroen van Wolffelaar <jeroen@php.net> Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
/PHP_5_6/ext/standard/file.c
78747bd 09-Sep-2001 Derick Rethans <derick@php.net> - Don't wrap lines... this is annoying while coding.
/PHP_5_6/ext/standard/file.c
c53f80f 17-Aug-2001 Sterling Hughes <sterling@php.net> 1) update to the ZEND_NUM_ARGS() and Z_*_P{0,2} macros
2) minor ws improvements, removing unecessary error checking logic, and
making the error messages a bit nicer looking
/PHP_5_6/ext/standard/file.c
8300abe 15-Aug-2001 Sterling Hughes <sterling@php.net> Removed select(), fd_set(), etc. (wasn't present in the first place, and
these are implemented in the sockwasn't present in the first place, and
these are implemented in the sockets extension))
/PHP_5_6/ext/standard/file.c
c0404f4 11-Aug-2001 Zeev Suraski <zeev@php.net> Whitespace
/PHP_5_6/ext/standard/file.c
23b9300 06-Aug-2001 Sascha Schumann <sas@php.net> more tsrm cleanup
/PHP_5_6/ext/standard/file.c
373b3e1 05-Aug-2001 Sascha Schumann <sas@php.net> more tsrm cleanup -- output.c is not doing any fetches anymore
/PHP_5_6/ext/standard/file.c
1159c84 05-Aug-2001 Zeev Suraski <zeev@php.net> - TSRMLS_FETCH work
- whitespace fixes
/PHP_5_6/ext/standard/file.c
d789d45 04-Aug-2001 Sean Bright <elixer@php.net> WS Pollution
/PHP_5_6/ext/standard/file.c
fff8836 04-Aug-2001 Sean Bright <elixer@php.net> Don't allocated quoted strings unless we are in a META tag.
/PHP_5_6/ext/standard/file.c
b1de7fc 31-Jul-2001 Zeev Suraski <zeev@php.net> More TSRMLS_FETCH annihilation. Enough for today...
/PHP_5_6/ext/standard/file.c
bc42c37 31-Jul-2001 Zeev Suraski <zeev@php.net> More TSRMLS_FETCH work. Got it under 400 now.
/PHP_5_6/ext/standard/file.c
aa1772c 31-Jul-2001 Zeev Suraski <zeev@php.net> More TSRMLS_FETCH annihilation
/PHP_5_6/ext/standard/file.c
c43806f 30-Jul-2001 Zeev Suraski <zeev@php.net> Zend compatibility patch
/PHP_5_6/ext/standard/file.c
797a079 30-Jul-2001 Zeev Suraski <zeev@php.net> More TSRMLS_FETCH work, and a bit of cleanup
/PHP_5_6/ext/standard/file.c
7b1c400 30-Jul-2001 Zeev Suraski <zeev@php.net> More TSRMLS_FETCH annihilation (Zend compatibility patch)
/PHP_5_6/ext/standard/file.c
d87cc97 28-Jul-2001 Zeev Suraski <zeev@php.net> Redesigned thread safety mechanism - nua nua
/PHP_5_6/ext/standard/file.c
fe6f871 27-Jul-2001 Zeev Suraski <zeev@php.net> - Get rid of ELS_*(), and use TSRMLS_*() instead.
- Move to the new ts_allocate_id() API
This patch is *bound* to break some files, as I must have had typos somewhere.
If you use any uncommon extension, please try to build it...
/PHP_5_6/ext/standard/file.c
cdf0532 16-Jul-2001 Stanislav Malyshev <stas@php.net> Make read always 0-terminate strings
/PHP_5_6/ext/standard/file.c
94f5950 15-Jul-2001 Zeev Suraski <zeev@php.net> Get rid of var_uninit()
/PHP_5_6/ext/standard/file.c
9d05cba 05-Jul-2001 Sean Bright <elixer@php.net> This should be lower-cased per the documentation and previous
implementation.
/PHP_5_6/ext/standard/file.c
55fecba 01-Jul-2001 Sean Bright <elixer@php.net> Remove unused variable.
/PHP_5_6/ext/standard/file.c
1b0356e 30-Jun-2001 Sean Bright <elixer@php.net> Fix for bug #11796. Also, fixed a problem in get_meta_tags that required
NAME and CONTENT to be in that order. Meta tags with no CONTENT attribute
are now added to the array as empty strings. Meta tags with no NAME
attribute are ignored.
/PHP_5_6/ext/standard/file.c
81e2cf0 06-Jun-2001 Rasmus Lerdorf <rasmus@php.net> Fix folding and clean up some extensions
/PHP_5_6/ext/standard/file.c
25c3a3a 05-Jun-2001 Rasmus Lerdorf <rasmus@php.net> vim-6 does folding - clean up a bunch of missing folding tags plus
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
/PHP_5_6/ext/standard/file.c
ae3dda8 19-May-2001 Rasmus Lerdorf <rasmus@php.net> Fix bug #9526
/PHP_5_6/ext/standard/file.c
d5cfb03 18-May-2001 Sascha Schumann <sas@php.net> munmap() file in RSHUTDOWN, if PHPWRITE fails.
/PHP_5_6/ext/standard/file.c
0255bb0 18-May-2001 Sascha Schumann <sas@php.net> Files should be shared among processes.
/PHP_5_6/ext/standard/file.c
7a88deb 12-May-2001 Wez Furlong <wez@php.net> expose streams to other extensions.
/PHP_5_6/ext/standard/file.c
c115a75 11-May-2001 Jason Greene <jason@php.net> Rewrote stat() and fstat() to be memory efficient, due to a recent
thread on php-dev.

Note: I added a macro that might have use in other instances, but for now
is included in php_filestat.h
/PHP_5_6/ext/standard/file.c
0ed93d7 11-May-2001 Jason Greene <jason@php.net> @fstat() and stat() now return identical output by returning a numerical and
@string indexed array (Jason)

(Andrei's suggestion to still allow backwords compatibility.)
/PHP_5_6/ext/standard/file.c
4c823e8 30-Apr-2001 Andi Gutmans <andi@php.net> - Change macros from V_ to VCWD_ because of AIX name clash
/PHP_5_6/ext/standard/file.c
86c84da 17-Apr-2001 Wez Furlong <wez@php.net> Discovered warn_not_available and used it.
/PHP_5_6/ext/standard/file.c
57af70f 17-Apr-2001 Wez Furlong <wez@php.net> Changes for streams. Added temporary fopenstream function to PHP so that
the streams can be tested.
/PHP_5_6/ext/standard/file.c
f0abfcc 15-Apr-2001 Alexander Feldman <sasha@php.net> Fixed typo.
/PHP_5_6/ext/standard/file.c
531b804 15-Apr-2001 Alexander Feldman <sasha@php.net> We shoud not fseek in a pipe and this caused a problem with popen and
fgets on the platforms where the buffer fix was applied (Solaris, FreeBSD).
Now the fseek is done only when the handle is of type fopen.
/PHP_5_6/ext/standard/file.c
176f584 07-Apr-2001 foobar <sniper@php.net> ws pollution removed.
/PHP_5_6/ext/standard/file.c
01ac200 23-Mar-2001 Romolo Manfredini <romolo@php.net> Added target ownership check in function copy for safe_mode operations
/PHP_5_6/ext/standard/file.c
397c76d 11-Mar-2001 Alexander Feldman <sasha@php.net> Fixed a compatibility problem is some file functions (fgets, fputs, fread,
fwrite). The ANSI standard says that if a file is opened in read/write
mode, fseek() should be called before switching from reading to writing
and vice versa.
/PHP_5_6/ext/standard/file.c
5d3939a 06-Mar-2001 Sean Bright <elixer@php.net> Typo.
# I don't know where I got 4.02 from
/PHP_5_6/ext/standard/file.c
64ad839 06-Mar-2001 Sean Bright <elixer@php.net> get_meta_tags now allows attributes that are not quoted as well as those
that are. It follows the HTML 4.01 specification for attribute values
outlined here -> http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
/PHP_5_6/ext/standard/file.c
dca3c87 05-Mar-2001 Sean Bright <elixer@php.net> get_meta_tags now handles single quoted attributes as well as those that
are double quoted.
/PHP_5_6/ext/standard/file.c
eb6ba01 26-Feb-2001 Andi Gutmans <andi@php.net> - Fix copyright notices with 2001
/PHP_5_6/ext/standard/file.c
c2fb53b 23-Feb-2001 Sascha Schumann <sas@php.net> Finish fopen-wrappers rename.
/PHP_5_6/ext/standard/file.c
47f7795 21-Feb-2001 Sascha Schumann <sas@php.net> Correctly check for the existence of the st_rdev field.

Note that this field is required to exist for SUSv3 conformance.

Submitted by: amra@us.ibm.com
PR: #9358
/PHP_5_6/ext/standard/file.c
d27ebba 16-Feb-2001 Egon Schmid <eschmid@php.net> Wrong return type.
/PHP_5_6/ext/standard/file.c
8499b43 15-Feb-2001 Thies C. Arntzen <thies@php.net> @- Fixed some modules to allow using output-buffering. (Thies)

i nuked all unneded calls to php_header() - i'm not too sure how we do
handle HEAD Requests as they were only detected via php_header(). but calling
php_header from a module makes output-buffering unusable.

NOTICE: there is some EBSDIC stuff in gd.c - i think it's obsolete.
/PHP_5_6/ext/standard/file.c
ef2e1a7 11-Feb-2001 Sean Bright <elixer@php.net> Fix for bug #4556
# This is pretty much a total rewrite of get_meta_tags using a simple
# handwritten tokenizer. It might be overkill, but it works.
/PHP_5_6/ext/standard/file.c
4877d13 09-Feb-2001 Rasmus Lerdorf <rasmus@php.net> What the heck is CUT? Assume someone meant UTC here. And fix a
warning.
/PHP_5_6/ext/standard/file.c
5af0013 01-Feb-2001 Stanislav Malyshev <stas@php.net> Add utility function
/PHP_5_6/ext/standard/file.c
83cf662 21-Jan-2001 Rasmus Lerdorf <rasmus@php.net> @BeOS patch from svanegmond@bang.dhs.org modified somewhat by Rasmus
BeOS patch from svanegmond@bang.dhs.org modified somewhat by Rasmus
/PHP_5_6/ext/standard/file.c
6b84fb1 14-Jan-2001 Thies C. Arntzen <thies@php.net> fixed readfile() fd-leak.

guys, always remember that every function that *generates output* could cause a
bailout if ignore_user_abort is set to false (and the user _aborts_ the
connection). in this case a longjump will be performed and our function (in
this case readfile) will have no chance to clean-up. having said that it's a
good idea to register all opened files using REGISTER_RESOURCE - that way the
engine will make sure they get closed on request end.
/PHP_5_6/ext/standard/file.c
a85da45 13-Jan-2001 Zeev Suraski <zeev@php.net> Both thread-safe and thread-unsafe builds should be ok now
/PHP_5_6/ext/standard/file.c
86624df 13-Jan-2001 Zeev Suraski <zeev@php.net> - Fix exec() bug
- Merge fsock and file globals
/PHP_5_6/ext/standard/file.c
338b9b0 27-Dec-2000 Zeev Suraski <zeev@php.net> - Make the INI mechanism thread safe (fix necessary API changes from Zend)
- Make the Win32 non-TS configuration build again
/PHP_5_6/ext/standard/file.c
9815d5c 22-Dec-2000 Sascha Schumann <sas@php.net> Signal an error condition, if write was unable to perform the complete
operation.
/PHP_5_6/ext/standard/file.c
663d426 22-Dec-2000 Sascha Schumann <sas@php.net> NULL is a valid return value of mmap. Check against (void *) MAP_FAILED.
/PHP_5_6/ext/standard/file.c
3c9f50e 22-Dec-2000 Sascha Schumann <sas@php.net> (php_file_copy) Use mmap to map the source file into our address space
and then simply write it out to the target file. That avoids switching
between user and kernel land too many times. If that does not work, we
fall back to the read/write method.
/PHP_5_6/ext/standard/file.c
9b1b253 14-Dec-2000 Hartmut Holzgraefe <hholzgra@php.net> fgetcsv() will now work correct with empty fields in tab delimited files
# fix for bug #8258 and regression test
/PHP_5_6/ext/standard/file.c
0d02c7d 12-Dec-2000 Stanislav Malyshev <stas@php.net> Open files in binary mode - should fix readfile() on Windows
/PHP_5_6/ext/standard/file.c
4ada3dd 07-Dec-2000 Sascha Schumann <sas@php.net> Hardcode all functions which are mentioned in the Large File Support Spec

http://ewe3.sas.com/standards/large.file/specs/api+.007.html
/PHP_5_6/ext/standard/file.c
2fefaba 22-Nov-2000 Daniel Beulshausen <dbeu@php.net> tsrm realpath implementation is fixed
@ Fixed realpath() in Virtual Directory mode (Daniel)
/PHP_5_6/ext/standard/file.c
fb8be26 15-Nov-2000 Stanislav Malyshev <stas@php.net> Fix crash (#7802)
/PHP_5_6/ext/standard/file.c
d0ec3df 02-Nov-2000 Andi Gutmans <andi@php.net> - Use CHECKUID_* #define's instead of cryptic numbers in php_checkuid()
- I did not test for validity of the actual php_checkuid() calls and there
- might be mistakes in the previous code.
/PHP_5_6/ext/standard/file.c
b25b80c 01-Nov-2000 Andi Gutmans <andi@php.net> - Change some estrdup()'s to estrndup()'s
/PHP_5_6/ext/standard/file.c
7ab4642 31-Oct-2000 Zeev Suraski <zeev@php.net> mode_t fixes
/PHP_5_6/ext/standard/file.c
825457a 29-Oct-2000 Thies C. Arntzen <thies@php.net> update my email.
/PHP_5_6/ext/standard/file.c
52e45f5 26-Oct-2000 Daniel Beulshausen <dbeu@php.net> use V_RENAME makro instead
/PHP_5_6/ext/standard/file.c
f1dcb32 25-Oct-2000 Andrei Zmievski <andrei@php.net> Use zend_register_list_destructors_ex() instead.
/PHP_5_6/ext/standard/file.c
7b4983c 20-Oct-2000 Andrei Zmievski <andrei@php.net> Mega-patch to get better resource information for modules.
* Fixed a bug in zend_rsrc_list_get_rsrc_type()
* Switched register_list_destructors() to use
zend_register_list_destructors_ex() instead
* Updated all relevant modules to provide the resource type name
to register_list_destructors() call
* Updated var_dump() to output resource type name instead of number

@- Made resource type names visible, e.g. var_dump() and
@ get_resource_type() display "file" for file resources. (Andrei)
/PHP_5_6/ext/standard/file.c
2e4ab68 27-Sep-2000 Sascha Schumann <sas@php.net> Automatic conversion might cause interpretation of 0xff as EOF, so we store
the result in an object of type int first.

Submitted by: melchers@cis.fu-berlin.de
/PHP_5_6/ext/standard/file.c
88b4692 12-Sep-2000 Andi Gutmans <andi@php.net> - Fix bug #5997
/PHP_5_6/ext/standard/file.c
824fc6a 11-Sep-2000 Andi Gutmans <andi@php.net> - Move php_open_temporary_file() out of file.c
/PHP_5_6/ext/standard/file.c
f45f6d7 11-Sep-2000 Sascha Schumann <sas@php.net> Kill a warning
/PHP_5_6/ext/standard/file.c
3115a0c 09-Sep-2000 Zeev Suraski <zeev@php.net> Fix UNIX build
/PHP_5_6/ext/standard/file.c
6c4cb4c 09-Sep-2000 Zeev Suraski <zeev@php.net> Security related updates:
- Introduce php_open_temporary_file(), in place of tempnam(). Still
needs testing under UNIX (mkstemp()), works reliably under Windows now.
- Reimplement the mechanism for unlinking uploaded files at the end of the request
(was it ever tested?). Files moved with move_uploaded_file() will not be unlink()'d
again, to avoid (albeit very unlikely) race conditions.
/PHP_5_6/ext/standard/file.c
7918735 09-Sep-2000 Stig Bakken <ssb@php.net> * compile fix
/PHP_5_6/ext/standard/file.c
3edf46f 08-Sep-2000 Zeev Suraski <zeev@php.net> Implement move_uploaded_file() (untested)
/PHP_5_6/ext/standard/file.c
410ac01 21-Aug-2000 Torben Wilson <torben@php.net> Fixed segfault with fgets(), fgetcsv(), fgetss(), and fread() when
called with negative length argument.
/PHP_5_6/ext/standard/file.c
ce0c4a7 20-Aug-2000 Stanislav Malyshev <stas@php.net> Fix fgetc (#6259) and ftell error condition returns
/PHP_5_6/ext/standard/file.c
fbdf502 20-Aug-2000 Sascha Schumann <sas@php.net> Remove php_realpath from build.

It was broken and should not be used in any way.
/PHP_5_6/ext/standard/file.c
61df257 19-Aug-2000 Frank M. Kromann <fmk@php.net> We only need winsock.h one time
/PHP_5_6/ext/standard/file.c
7a45e3c 19-Aug-2000 Zeev Suraski <zeev@php.net> - Update NEWS
- Fix non ZTS Windows build
/PHP_5_6/ext/standard/file.c
c756ae2 06-Aug-2000 Andi Gutmans <andi@php.net> Virtualize realpath, chmod, chown and utime
This should fix #5935 and #5904
@- Virtualize realpath, chmod, chown and utime (Stas)
/PHP_5_6/ext/standard/file.c
fda23fc 03-Aug-2000 Stanislav Malyshev <stas@php.net> Fix fclose prototype (#5930)
/PHP_5_6/ext/standard/file.c
a5a9a49 22-Jul-2000 David Croft <david@php.net> # zeev is god
/PHP_5_6/ext/standard/file.c
89153d9 22-Jul-2000 David Croft <david@php.net> fixed socket_set blocking in windows
(bug 3845)
/PHP_5_6/ext/standard/file.c
4d41c8b 07-Jul-2000 Stanislav Malyshev <stas@php.net> Fix fgets re-allocation (add +1 to accomondate ending \0).
/PHP_5_6/ext/standard/file.c
b9037f7 02-Jul-2000 Andi Gutmans <andi@php.net> - Make PHP compile again under Windows.
- Please be careful when you make such changes.
/PHP_5_6/ext/standard/file.c
e8c219f 29-Jun-2000 Stanislav Malyshev <stas@php.net> Make fgets not use maximal buffer length always, but shrink buffer
if it's too big.
/PHP_5_6/ext/standard/file.c
e834812 27-Jun-2000 Thies C. Arntzen <thies@php.net> (fgetcsv) fixed leak
/PHP_5_6/ext/standard/file.c
52dd201 26-Jun-2000 Zeev Suraski <zeev@php.net> Removed 8KB limit on line length of the file() function
/PHP_5_6/ext/standard/file.c
bcb308c 26-Jun-2000 Egon Schmid <eschmid@php.net> Fixed some protos.
/PHP_5_6/ext/standard/file.c
6614e8e 25-Jun-2000 Zeev Suraski <zeev@php.net> - I wrote a long msg but the commit didn't go through.
- So here is the short version:
- a) Start moving to binary opens in Windows
- b) Give checkuid_mode() a small face lift including the fopen-wrappers.c
- The mode to this function should at least be a #define but that is for
- another day. Anyway this whole stuff should be given more face lifts in
- the future.
/PHP_5_6/ext/standard/file.c
2456af5 23-Jun-2000 Sascha Schumann <sas@php.net> Remove some unnecessary CLS_FETCH()s.
/PHP_5_6/ext/standard/file.c
7dca298 13-Jun-2000 Thies C. Arntzen <thies@php.net> copy() now creates the destination file with mode 0777 again. this is
the way it used to be in PHP 3
/PHP_5_6/ext/standard/file.c
719d995 12-Jun-2000 Andi Gutmans <andi@php.net> - On UNIX support popen() which works with current working directory
- when in VIRTUAL_DIR mode.
/PHP_5_6/ext/standard/file.c
0b7fd17 06-Jun-2000 Clayton Collie <ccollie@php.net> Added sscanf() function.
/PHP_5_6/ext/standard/file.c
10eb67a 06-Jun-2000 Thies C. Arntzen <thies@php.net> @- added fflush() function. (Eric Huss)
# the socket fsync() might not work on Win32.
#
# i'm not sure if we need any code for flushing sockets as they are
# currently alway written via write().
/PHP_5_6/ext/standard/file.c
1cefd77 05-Jun-2000 Rasmus Lerdorf <rasmus@php.net> Oops, fixed slight miscue there. Now it works.
/PHP_5_6/ext/standard/file.c
194e882 05-Jun-2000 Rasmus Lerdorf <rasmus@php.net> @ Clean up constants in flock() function and add optional 3rd arg which
@ is set to true on EWOULDBLOCK (Rasmus)
Clean up constants in flock() function and add optional 3rd arg which
is set to true on EWOULDBLOCK
/PHP_5_6/ext/standard/file.c
8715b55 29-May-2000 Zeev Suraski <zeev@php.net> Remove stale macro
/PHP_5_6/ext/standard/file.c
124fe30 29-May-2000 Zeev Suraski <zeev@php.net> More secure mode
/PHP_5_6/ext/standard/file.c
afccb58 27-May-2000 Andi Gutmans <andi@php.net> - I'm not sure if PHP_NOT_IN_THIS_BUILD is the way to handle these
- functions but in any case I have changed it to PHP_NOT_IN_THIS_BUILD()
/PHP_5_6/ext/standard/file.c
69d1e78 26-May-2000 Hartmut Holzgraefe <hholzgra@php.net> if a module provides a function it should also do so if the function
is not functional due to configure findings
the function should offer a meaningful warning if it is not supported
instead of just beeing undefined
i had already changed this in 'gd', now this is doing it for 'standard'
/PHP_5_6/ext/standard/file.c
df4547a 23-May-2000 Hartmut Holzgraefe <hholzgra@php.net> another bunch of proto fixes
/PHP_5_6/ext/standard/file.c
617266e 23-May-2000 Andi Gutmans <andi@php.net> - Virtual current working directory is now enabled
- Added support for mkdir()/rmdir() and more
/PHP_5_6/ext/standard/file.c
521f03c 23-May-2000 Andi Gutmans <andi@php.net> - Support virtual unlink()
/PHP_5_6/ext/standard/file.c
e043439 18-May-2000 Zeev Suraski <zeev@php.net> Update the license with the new clause 6
/PHP_5_6/ext/standard/file.c
e13285d 30-Apr-2000 Andi Gutmans <andi@php.net> - Take Sascha's advice and create on V_OPEN() which replaces open().
- Unlike the other macros its argument has to have braces around it, for
- example, open(filename, flags) becomse V_OPEN((filename, flags))
- Made small conversion to new Zend macros. The ugly (*foo)->value.str.val
- now becomes Z_STRVAL_PP(foo). PP means pointer pointer, there also exist
- single P's for example foo->value.str.val becomes Z_STRVAL_P(foo).
/PHP_5_6/ext/standard/file.c
ec997d5 24-Apr-2000 Andrei Zmievski <andrei@php.net> Exterminate warnings.
/PHP_5_6/ext/standard/file.c
071c01a 24-Apr-2000 Andrei Zmievski <andrei@php.net> The third argument to fseek() is now one of the standard SEEK_* constants.

# The previous change to support seekfrom stuff was incorrect.
/PHP_5_6/ext/standard/file.c
2141608 23-Apr-2000 Sterling Hughes <sterling@php.net> @-Add an optional third argument to fseek to indicate were to seek from. (Sterling)
/PHP_5_6/ext/standard/file.c
03b562c 19-Apr-2000 Rasmus Lerdorf <rasmus@php.net> fgetcsv() patch from Nick Talbott
@ The fgetcsv() function now handles embedded end-of-line in a quoted field
@ (Nick Talbott)
/PHP_5_6/ext/standard/file.c
b3ecf2f 17-Mar-2000 Sterling Hughes <sterling@php.net> ftruncate returns 1 on success and 0 on failure instead of 0 on success and -1 on failure.
/PHP_5_6/ext/standard/file.c
85940d6 12-Mar-2000 Kristian Köhntopp <kk@php.net> Finished porting recode module.
/PHP_5_6/ext/standard/file.c
caeaaf4 12-Mar-2000 Sascha Schumann <sas@php.net> Fix build on systems which lack snprintf or vsnprintf.

PR: #3786
/PHP_5_6/ext/standard/file.c
99e0b36 06-Mar-2000 Stig Bakken <ssb@php.net> @Cleaned up extension namespace (Stig)
Cleaned up extension namespace, and changed ext/standard into one single
extension.
/PHP_5_6/ext/standard/file.c
5610800 04-Mar-2000 Andrei Zmievski <andrei@php.net> @Added ftruncate() and fstat(), courtesy of Faisal Nasim <faisal@nasim.org>
/PHP_5_6/ext/standard/file.c
7da7a50 24-Feb-2000 Egon Schmid <eschmid@php.net> More protos.
/PHP_5_6/ext/standard/file.c
86fa2aa 19-Feb-2000 Zeev Suraski <zeev@php.net> the pipe is breaking all the time
/PHP_5_6/ext/standard/file.c
80bdd19 11-Feb-2000 Zeev Suraski <zeev@php.net> Fine tune Andi's patch
/PHP_5_6/ext/standard/file.c
29280bb 10-Feb-2000 Andi Gutmans <andi@php.net> - Get rid of some more evil MSVC5's and switch standard/ to use PHP_WIN32
/PHP_5_6/ext/standard/file.c
489b705 08-Feb-2000 Zeev Suraski <zeev@php.net> @- Fixed memory corruption in fgetss(), strip_tags() and gzgetss() (Zeev)
/PHP_5_6/ext/standard/file.c
83a0278 01-Feb-2000 Andrei Zmievski <andrei@php.net> Not needed.
/PHP_5_6/ext/standard/file.c
c47452f 01-Feb-2000 Zeev Suraski <zeev@php.net> Compile fix
/PHP_5_6/ext/standard/file.c
a753430 01-Feb-2000 Andrei Zmievski <andrei@php.net> - Implemented socket_get_status() function. Some more stuff can be added
to it in the future.
- Renamed set_socket_timeout() to socket_set_timeout()
- Renamed set_socket_blocking() to socket_set_blocking() but kept the
old name for compatibility. It now outputs a warning that
set_socket_timeout() is deprecated but still goes through.
@ Added socket_get_status() function. Renamed:
@ set_socket_timeout() -> socket_set_timeout()
@ set_socket_blocking() -> socket_set_blocking(). (Andrei)
/PHP_5_6/ext/standard/file.c
91bb21c 01-Feb-2000 Andrei Zmievski <andrei@php.net> Implemented realpath().
@ Added realpath() function. (Andrei)
/PHP_5_6/ext/standard/file.c
bfc85c2 15-Jan-2000 Andrei Zmievski <andrei@php.net> Fix prototype.
/PHP_5_6/ext/standard/file.c
4423bf9 15-Jan-2000 Andrei Zmievski <andrei@php.net> Added ability to set timeout on socket read operations. New function
set_socket_timeout(socket, seconds, microseconds) sets the timeout.
@- Added ability to set timeout on socket read operations through
@ set_socket_timeout() function. (Andrei)
/PHP_5_6/ext/standard/file.c
48e10ec 06-Jan-2000 Thies C. Arntzen <thies@php.net> @- Applied safe-mode patch to popen(). (Patch by Kristian Köhntopp)
/PHP_5_6/ext/standard/file.c
43ae2bf 01-Jan-2000 Sascha Schumann <sas@php.net> Happy Y2K patch! Happy new year (or the new millennium, depending on whether
you start counting at 0 or 1).
/PHP_5_6/ext/standard/file.c
e96c540 21-Dec-1999 Thies C. Arntzen <thies@php.net> commented out select() & friends for now - we need to come up with a good API for those!
/PHP_5_6/ext/standard/file.c
1ad5180 20-Dec-1999 Andrei Zmievski <andrei@php.net> getParameters -> zend_get_parameters
/PHP_5_6/ext/standard/file.c
a1ad287 18-Dec-1999 Zeev Suraski <zeev@php.net> - The tree compiles again
/PHP_5_6/ext/standard/file.c
3ee4e65 18-Dec-1999 Zeev Suraski <zeev@php.net> More php3_ annihilation
/PHP_5_6/ext/standard/file.c
fb1c77b 17-Dec-1999 Zeev Suraski <zeev@php.net> - Made PHP_VERSION and PHP_OS work again
- More php3_ cleanup
@- Restored the PHP_VERSION and PHP_OS constants (Zeev)
/PHP_5_6/ext/standard/file.c
a3c6514 17-Dec-1999 Zeev Suraski <zeev@php.net> More php3_ annihilation
/PHP_5_6/ext/standard/file.c
02d3b39 17-Dec-1999 Zeev Suraski <zeev@php.net> More php3_ annihilation
/PHP_5_6/ext/standard/file.c
33d82cb 11-Dec-1999 Andrei Zmievski <andrei@php.net> get_meta_tags() was using php_stristr() so it needed to be changed.
Optimized it to use php_memnstr() directly.
/PHP_5_6/ext/standard/file.c
4a60eed 05-Dec-1999 Sascha Schumann <sas@php.net> Fix some warnings
/PHP_5_6/ext/standard/file.c
5b983c9 04-Dec-1999 Sascha Schumann <sas@php.net> Clean up php3.*\.h files. The files itself are renamed, and references in all
.*\.[ch] files were changed. There is a slight chance that my script missed
a few changes, please correct them manually.
/PHP_5_6/ext/standard/file.c
2337d11 30-Nov-1999 Andi Gutmans <andi@php.net> - Added opened_path to php_fopen_wrapper() and the URL fopen wrapper (it's not
always properly set, it's a TODO for all of us). This enables us to implement
true 'use' support.
@- Added support for the 'use' keyword - behaves like 'require', but will not
@ use the same file more than once (Andi & Zeev, Zend library)
/PHP_5_6/ext/standard/file.c
d462115 24-Nov-1999 Sascha Schumann <sas@php.net> Killing some unused variable warnings
/PHP_5_6/ext/standard/file.c
18fb96e 24-Nov-1999 Evan Klinger <evan@php.net> Freeing the memory would be a good idea...
/PHP_5_6/ext/standard/file.c
633d18d 24-Nov-1999 Evan Klinger <evan@php.net> Can't forget fd_isset()
/PHP_5_6/ext/standard/file.c
769e25e 24-Nov-1999 Evan Klinger <evan@php.net> First attempt at fd_set() and select()
# Please test thoroughly
/PHP_5_6/ext/standard/file.c
5f8f410 14-Nov-1999 Stig Bakken <ssb@php.net> @Added tmpfile() function (Stig)
Removed the mkstemp stuff and added tmpfile() function instead.
/PHP_5_6/ext/standard/file.c
6b69ebf 26-Oct-1999 Thies C. Arntzen <thies@php.net> eliminated warinigs
/PHP_5_6/ext/standard/file.c
9e00175 16-Oct-1999 Andrei Zmievski <andrei@php.net> _php3/_php3i -> php rename
/PHP_5_6/ext/standard/file.c
b5c3c7b 15-Oct-1999 Thies C. Arntzen <thies@php.net> files are now resources, file.c is thread-safe, the le_ vars are no longer shared,
but they are accessible thru "php_file_le_socket(), php_file_le_uploads()..."
i also updated the ftp, pdf and file-upload stuff to match the new requirements.
@- Cleaned up File-Module (Thies)
/PHP_5_6/ext/standard/file.c
e2d66a6 13-Oct-1999 Thies C. Arntzen <thies@php.net> new api fo dl() - renamed php3_dl to php_dl (added compat header)
/PHP_5_6/ext/standard/file.c
0cc1641 12-Oct-1999 Thies C. Arntzen <thies@php.net> starting to clean-up/new API'ize and resourcify the file-stuff - nothing happened yet - just renaming things around.
/PHP_5_6/ext/standard/file.c
cd09571 21-Sep-1999 Rasmus Lerdorf <rasmus@php.net> fgetss/gzgetss fixes
/PHP_5_6/ext/standard/file.c
565c322 20-Sep-1999 Egon Schmid <eschmid@php.net> Here was also something missing.
/PHP_5_6/ext/standard/file.c
c0dcedc 20-Sep-1999 Rasmus Lerdorf <rasmus@php.net> Added optional allowable_tags arguments to strip_tags() and fgetss() to
allow you to specify a string of tags that are not to be stripped

Could have used flex for this, and Andrew sent me a flex file to do this,
but I could do the same thing with only minor additions to the existing
state machine and the resulting code is much smaller and tighter.
/PHP_5_6/ext/standard/file.c
1001481 15-Sep-1999 Andi Gutmans <andi@php.net> - Thread-unsafe win32 compiles again
- Some strlcpy changes including one bug fix.
/PHP_5_6/ext/standard/file.c
9e33157 12-Sep-1999 Zeev Suraski <zeev@php.net> That's important enough to be cached
/PHP_5_6/ext/standard/file.c
2f39b48 11-Sep-1999 Sascha Schumann <sas@php.net> avoid mmap overhead for small files
/PHP_5_6/ext/standard/file.c
dda0b78 11-Sep-1999 Sascha Schumann <sas@php.net> optimize fpassthru/readfile to use mmap instead of fread
which especially increases speed on large files.
/PHP_5_6/ext/standard/file.c
c12d4bc 04-Sep-1999 Zeev Suraski <zeev@php.net> *** empty log message ***
/PHP_5_6/ext/standard/file.c
52cd153 28-Aug-1999 Sascha Schumann <sas@php.net> merge in fix from php3
/PHP_5_6/ext/standard/file.c
3cb1eb0 02-Aug-1999 Zeev Suraski <zeev@php.net> Removed '3' from key functions in PHP (maintained compatibility through
php3_compat.h)
/PHP_5_6/ext/standard/file.c
1b2c932 26-Jul-1999 Andrey Hristov <andrey@php.net> More symbol work.

I've defined a few macros to help with module/request init/startup function definitions.
Basically:

PHP_MINIT_FUNCTION(module)
PHP_MSHUTDOWN_FUNCTION(module)
PHP_RINIT_FUNCTION(module)
PHP_RSHUTDOWN_FUNCTION(module)
PHP_MINFO_FUNCTION(module)

These will expand to proper function prototypes.

Now to specify these in the module entry, use:

PHP_MINIT(module)
PHP_MSHUTDOWN(module)
PHP_RINIT(module)
PHP_RSHUTDOWN(module)
PHP_MINFO(module)

I've updated all modules in ext/standard and everything from ext/apache to ext/db.
If you can, please update your module to use these macros.
/PHP_5_6/ext/standard/file.c
736f483 24-Jul-1999 Andrey Hristov <andrey@php.net> A bunch of grunt work updating function entries and declarations.
/PHP_5_6/ext/standard/file.c
d1b1e35 19-Jul-1999 Andrey Hristov <andrey@php.net> Kill compiler warnings.
/PHP_5_6/ext/standard/file.c
c5724cb 16-Jul-1999 Zeev Suraski <zeev@php.net> License update
/PHP_5_6/ext/standard/file.c
e205a67 27-Jun-1999 Sascha Schumann <sas@php.net> more porting
/PHP_5_6/ext/standard/file.c
117a2fb 16-Jun-1999 Stig Bakken <ssb@php.net> * fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
/PHP_5_6/ext/standard/file.c
8eec7a0 15-Jun-1999 Stig Bakken <ssb@php.net> reversing another patch that slipped
/PHP_5_6/ext/standard/file.c
8c4411b 15-Jun-1999 Stig Bakken <ssb@php.net> * reverse fsock/string import patches
/PHP_5_6/ext/standard/file.c
336392e 15-Jun-1999 Stig Bakken <ssb@php.net> * now using php4.ini instead of php3.ini
* re-imported fopen-wrappers, fsock and string code from php3
NB! I have not tested all of the imported functions yet.
/PHP_5_6/ext/standard/file.c
1798a01 11-Jun-1999 Zeev Suraski <zeev@php.net> * Fix a buglet in the session module
* Make some renames in the session module - avoid having a function called 'delete'
so that we don't piss any C++ compilers. Also rename the {startup,shutdown}_globals
to {startup,shutdown}_session_globals, so that they're a bit less general names,
and made them static.
* Remove uselss variables
/PHP_5_6/ext/standard/file.c
27fc61c 20-May-1999 Sascha Schumann <sas@php.net> Apply the fix for feof()
/PHP_5_6/ext/standard/file.c
39691be 16-May-1999 Sascha Schumann <sas@php.net> conv_proto *.[ch]
/PHP_5_6/ext/standard/file.c
d886b84 16-May-1999 Sascha Schumann <sas@php.net> kill some compiler warnings
/PHP_5_6/ext/standard/file.c
9290554 27-Apr-1999 Rasmus Lerdorf <rasmus@php.net> Add fgetcsv() here as well
/PHP_5_6/ext/standard/file.c
0818d96 24-Apr-1999 Zeev Suraski <zeev@php.net> A lot of cleanups... Removed old thread-safe code and other redundant code and files
/PHP_5_6/ext/standard/file.c
6f7c0ed 23-Apr-1999 Zeev Suraski <zeev@php.net> Remove tls.[ch]
/PHP_5_6/ext/standard/file.c
ff37732 22-Apr-1999 Stig Bakken <ssb@php.net> moved fdf, hyperwave, informix and some smaller files
/PHP_5_6/ext/standard/file.c
751709a 21-Apr-1999 Zeev Suraski <zeev@php.net> * Rename php_compat.[ch] to flock_compat.[ch] and move it to ext/standard
* Fix Win32 compilation
/PHP_5_6/ext/standard/file.c
08c6298 21-Apr-1999 Sascha Schumann <sas@php.net> cleanup, flock() support
/PHP_5_6/ext/standard/file.c
f06cb4d 21-Apr-1999 Sascha Schumann <sas@php.net> crypt constants
/PHP_5_6/ext/standard/file.c
c5af324 21-Apr-1999 Zeev Suraski <zeev@php.net> More thread safety work
/PHP_5_6/ext/standard/file.c
5e8c322 18-Apr-1999 Zeev Suraski <zeev@php.net> Make Win32 happy with the recent changes.
/PHP_5_6/ext/standard/file.c
257de2b 17-Apr-1999 Stig Bakken <ssb@php.net> First commit of re-structuring phase one. We have started using automake in
sub-directories and started to move extension code into ext/<name>. For now,
I have moved the "standard" extension (which is quite a mix of everything
right now) and the GD extension into their own subdirs in ext/.
The configure script now also runs configure in the libzend directory
automatically and makes sure php4 and libzend use the same config.cache file.
To avoid running configure in libzend, use the --no-recursion option.
"make" in php4 also builds libzend now.
The Apache module doesn't compile right now, but a fix for that is
coming up.
/PHP_5_6/ext/standard/file.c