summaryrefslogtreecommitdiff
path: root/ext/standard/php_fopen_wrapper.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve argument error messages in ext/standardMáté Kocsis2020-03-181-1/+1
| | | | Closes GH-5198
* Merge branch 'PHP-7.4'Nikita Popov2019-10-081-0/+5
|\
| * Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-10-081-0/+5
| |\
| | * Check for exception after applying stream filtersNikita Popov2019-10-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | This makes the stream opening actually fail, and avoids assertion failures when we tokenize with EG(exception) set. Also avoid throwing an additional warning after an exception has already been thrown.
* | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
|/ / | | | | | | Closes GH-4732.
* | Report errors from stream read and write operationsNikita Popov2019-07-221-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fix last maybe uninit warnings on 7.4Nikita Popov2019-04-151-1/+1
| | | | | | | | | | Most of these only occur under GCC 5. Not fond of all the workarounds (especially the PDO one), but it gets us a clean build...
* | Remove local variablesPeter Kokot2019-02-031-10/+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
|/
* Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-01-181-1/+1
|\
| * Fix seeking in php://inputLauri Kenttä2019-01-181-1/+1
| |
| * year++Xinchen Hui2018-01-021-1/+1
| |
* | Remove unused Git attributes identPeter Kokot2018-07-251-1/+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-3/+3
| |
* | Cleanup type conversionDmitry Stogov2017-12-071-2/+1
| |
* | Removed support for BeOS, development for BeOS was supported 17 years ago.Kalle Sommer Nielsen2017-08-291-1/+1
| | | | | | | | | | | | This patch however does not drop support for the BeOS compatible variant, Haiku, see Github PR #2697 which is currently a WiP I intentionally left out some fragments for BeOS in the build system for that seems to be bundles
* | Fix #75031: Support append mode in `php://temp` streamsAdam Saponara2017-08-041-10/+3
|/ | | | | | This patch introduces a distinction between write mode and append mode in `php://temp` and `php://memory` streams, achieving parity with C stdio.
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-10-051-1/+5
|\ | | | | | | | | * PHP-7.0: Fix bug #73037, second round
| * Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-10-051-1/+5
| |\ | | | | | | | | | | | | * PHP-5.6: Fix bug #73037, second round
| | * Fix bug #73037, second roundAnatol Belski2016-10-051-1/+5
| | |
* | | Merge branch 'throw-error-in-extensions'Aaron Piotrowski2016-07-051-2/+2
|\ \ \
| * | | E_RECOVERABLE_ERROR -> thrown ErrorAaron Piotrowski2016-06-141-2/+2
| |/ /
* | | Fixed compilation warningsDmitry Stogov2016-06-231-1/+2
|/ /
* | 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
| |
* | select the case to set the pipe blocking option more preciselyAnatol Belski2015-07-021-8/+18
| |
* | properly set the pipe blocking optionAnatol Belski2015-07-021-6/+8
| |
* | initial stuff to make allow blocking pipes on windowsAnatol Belski2015-07-021-0/+9
| |
* | fix datatype mismatchesAnatol Belski2015-03-241-1/+1
| |
* | Use zend_string* instead of char* for opened_patch handling. Avoid ↵Dmitry Stogov2015-03-041-1/+2
| | | | | | | | reallocations and improve string reuse.
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | trailing whitespace removalStanislav Malyshev2015-01-101-1/+1
| |
* | Fixed #68692Xinchen Hui2015-01-081-1/+1
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-28/+28
| |
* | proper dllexportAnatol Belski2014-11-181-1/+1
| |
* | fix datatype mismatchesAnatol Belski2014-10-231-2/+2
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | master renames phase 4Anatol Belski2014-08-251-1/+1
| |
* | master renames phase 3Anatol Belski2014-08-251-4/+4
| |
* | master renames phase 1Anatol Belski2014-08-251-2/+2
| |
* | further fixes to ext/standardAnatol Belski2014-08-181-9/+9
|/
* refactor php_stream_temp_create{,_ex} and use it for the php://input streamMichael Wallner2014-07-031-1/+1
|
* remove useless indirectionMichael Wallner2014-05-061-11/+12
| | | | | the stream was initialized within the ops in a prior version of the slim_post_data patch
* Bump yearXinchen Hui2014-01-031-1/+1
|
* fix bad castMichael Wallner2013-10-081-4/+4
|
* final bitsMichael Wallner2013-09-171-1/+4
|