summaryrefslogtreecommitdiff
path: root/main/streams/glob_wrapper.c
Commit message (Collapse)AuthorAgeFilesLines
* Report errors from stream read and write operationsNikita Popov2019-07-221-2/+2
| | | | | | | | | | | | | | | | | | The php_stream_read() and php_stream_write() functions now return an ssize_t value, with negative results indicating failure. Functions like fread() and fwrite() will return false in that case. As a special case, EWOULDBLOCK and EAGAIN on non-blocking streams should not be regarded as error conditions, and be reported as successful zero-length reads/writes instead. The handling of EINTR remains unclear and is internally inconsistent (e.g. some code-paths will automatically retry on EINTR, while some won't). I'm landing this now to make sure the stream wrapper ops API changes make it into 7.4 -- however, if the user-facing changes turn out to be problematic we have the option of clamping negative returns to zero in php_stream_read() and php_stream_write() to restore the old behavior in a relatively non-intrusive manner.
* Remove copy argument from php_glob_stream_get_path/patternNikita Popov2019-06-191-12/+4
| | | | This is unused, and shouldn't be part of the API.
* Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-02-111-1/+1
|\
| * Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-02-111-1/+1
| |\
| | * Fix bug #51068 (glob:// do not support current path relative)Ahmed Abdou2019-02-111-1/+1
| | | | | | | | | | | | Fix DirectoryIterator glob://* current path relative queries
| | * year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Remove local variablesPeter Kokot2019-02-031-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* | | Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
|/ /
* | Remove unused Git attributes identPeter Kokot2018-07-251-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* | year++Xinchen Hui2018-01-021-1/+1
| |
* | Turn "php_stream_wrapper"s into constantsDmitry Stogov2017-12-141-1/+1
| | | | | | | | Keep non-constant "php_stream_wrapper"s in API functions and callbacks for compatibility.
* | Move constants into read-only data segmentDmitry Stogov2017-12-141-2/+2
|/
* Merge branch 'PHP-7.1'Sara Golemon2017-01-091-4/+4
|\ | | | | | | | | * PHP-7.1: Fix open_basedir check for glob:// opendir wrapper
| * Merge branch 'PHP-7.0' into PHP-7.1Sara Golemon2017-01-091-4/+4
| |\ | | | | | | | | | | | | * PHP-7.0: Fix open_basedir check for glob:// opendir wrapper
| | * Merge branch 'PHP-5.6' into PHP-7.0Sara Golemon2017-01-091-4/+4
| | |\ | | | | | | | | | | | | | | | | * PHP-5.6: Fix open_basedir check for glob:// opendir wrapper
| | | * Fix open_basedir check for glob:// opendir wrapperSara Golemon2017-01-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | php_check_open_basedir() expects a local filesystem path, but we're handing it a `glob://...` URI instead. Move the check to after the path trim so that we're checking a meaningful pathspec.
| | * | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| | | |
| * | | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| | | |
* | | | Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
| | | |
* | | | Remove Netware supportKalle Sommer Nielsen2016-11-121-2/+2
|/ / / | | | | | | | | | If this does not break the Unix system somehow, I'll be amazed. This should get most of it out, apologies for any errors this may cause on non-Windows ends which I cannot test atm.
* | | Fixed compilation warningsDmitry Stogov2016-06-211-0/+1
|/ /
* | Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ \ | |/ | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| |
| * bump yearXinchen Hui2015-01-151-1/+1
| |
* | Use zend_string* instead of char* for opened_patch handling. Avoid ↵Dmitry Stogov2015-03-041-2/+2
| | | | | | | | reallocations and improve string reuse.
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | trailing whitespace removalStanislav Malyshev2015-01-101-2/+2
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-12/+12
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | first show to make 's' work with size_tAnatol Belski2014-08-271-2/+2
| |
* | first shot on merging the core fro the int64 branchAnatol Belski2014-08-161-1/+1
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Constify streams API and a few other calls down the rabbit hole.Andrey Hristov2013-07-301-5/+5
| | | | | (`char *` to `const char *` for parameters and few return values) In a few places int len moved to size_t len.
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* Merge branch 'PHP-5.3' into PHP-5.4Xinchen Hui2012-10-091-0/+0
|\
| * Fixed bug #63236 (Executable permission on various source files)Xinchen Hui2012-10-091-0/+0
| |
| * - Year++Felipe Pena2012-01-011-1/+1
| |
| * - Year++Felipe Pena2011-01-011-1/+1
| |
| * - Fixed bug #49215 (make fails on glob_wrapper)Felipe Pena2010-09-101-0/+2
| |
* | - Year++Felipe Pena2012-01-011-1/+1
| |
* | - Year++Felipe Pena2011-01-011-1/+1
| |
* | - Fixed bug #49215 (make fails on glob_wrapper)Felipe Pena2010-09-101-0/+2
| |
* | Fixed compiler warnings in main/Kalle Sommer Nielsen2010-08-171-1/+1
|/
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* clean some dead code (with static analysis help)Nuno Lopes2008-09-231-5/+2
|
* - MFH Get rid of overoptimizationMarcus Boerger2008-01-301-4/+2
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* - MFH glob stream wrapper (part 1)Marcus Boerger2007-11-061-0/+294