summaryrefslogtreecommitdiff
path: root/main/streams/php_stream_transport.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | Closes GH-4732.
* Enable TLS 1.3 by defaultJakub Zelenka2019-04-281-7/+7
|
* Added tls 1.3 support for PHPcodarrenvelvindron2019-04-281-0/+2
|
* 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-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
|
* Use any TLS crypto method by default, don't use SSLNiklas Keller2017-06-101-4/+4
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+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
| |
* | Revert "Add stream_socket_crypto_info() function"Daniel Lowrey2015-03-091-15/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 13acb7ec653c543c56437ed417c3889fbf54f608. With the added capability to negotiate application layer protocols via the TLS ALPN extension userland needs a method to access the negotiated protocol on a given stream. The reverted commit added a new stream_socket_crypto_info() function for this purpose. This original approach was discarded in favor of using the already-existing stream_get_meta_data() API which specifically exists for just such purposes and requires the addition of no new functions.
* | Merge branch 'PHP-5.6'Daniel Lowrey2015-03-051-4/+10
|\ \ | |/ | | | | | | | | | | | | * PHP-5.6: Fixed bug (#69195 Inconsistent stream crypto values across versions) Conflicts: ext/standard/http_fopen_wrapper.c
| * Fixed bug (#69195 Inconsistent stream crypto values across versions)Daniel Lowrey2015-03-051-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PHP 5.6.0 altered the semantics of the following constants: - STREAM_CRYPTO_METHOD_SSLv23_CLIENT - STREAM_CRYPTO_METHOD_SSLv23_SERVER - STREAM_CRYPTO_METHOD_TLS_CLIENT - STREAM_CRYPTO_METHOD_TLS_SERVER Instead of representing the SSLv23_*() handshake methods the v23 constants were changed to allow only SSLv2 or SSLv3 connections. Likewise, the TLS methods were modified from using only the TLSv1 handshake to allowing TLS1,1.1, and 1.2. This created a situation in which users upgrading from previous versions faced a potential security degradation if they did not update code to use different constants. In the interest of compatibility across PHP versions the original semantics have been restored with the following caveat: **IMPORTANT** The SSLv23 client/server methods will no longer negotiate the use of the insecure SSLv2 or SSLv3 protocols by default. Users wishing to allow these protocols must explicitly add them to the method bitmask via the appropriate flags.
| * bump yearXinchen Hui2015-01-151-1/+1
| |
* | Add stream_socket_crypto_info() functionDaniel Lowrey2015-02-281-1/+15
| |
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | second shot on removing TSRMLS_*Anatol Belski2014-12-141-5/+5
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-10/+10
| |
* | fix datatype mismatchesAnatol Belski2014-10-241-3/+3
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | reduce the struct size by 8 bytes on 64 bitAnatol Belski2014-09-121-5/+5
| |
* | better alignment, reduced the struct by 8 byte on 64 bitAnatol Belski2014-09-121-3/+3
| |
* | fix typeAnatol Belski2014-09-121-1/+1
| |
* | cleanup (use zend_string* instead of char*)Dmitry Stogov2014-08-131-12/+10
|/
* Use crypto method flags; add tlsv1.0 wrapper; add wrapper testsDaniel Lowrey2014-02-201-14/+21
|
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Added support for TLSv1.1 and TLSv1.2Daniel Lowrey2013-10-081-1/+5
|
* Constify streams API and a few other calls down the rabbit hole.Andrey Hristov2013-07-301-8/+8
| | | | | (`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
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* - silent compiler warning about socklen_t benign redefinitionPierre Joye2009-02-021-0/+4
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* - Make sure to be ANSI C compliantAndi Gutmans2007-02-051-1/+1
|
* only 2 bits are needed for shutdown(2) method (only 3 possible values). this ↵Nuno Lopes2007-01-181-1/+1
| | | | is new code in 5.2.1, so don't worry..
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* Added function stream_socket_shutdown(). It is a wraper for system ↵Dmitry Stogov2006-12-191-1/+14
| | | | shutdown() function, that shut downs part of a full-duplex connection
* bump year and license versionfoobar2006-01-011-3/+3
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* EXTERN_C wrapping for PHPAPI prototypesHartmut Holzgraefe2004-02-201-0/+6
| | | | | (Zend and main should now be ok)
* - Happy new year and PHP 5 for rest of the files too..foobar2004-01-081-2/+2
| | | | | # Should the LICENSE and Zend/LICENSE dates be updated too?
* Add stream_socket_sendto and stream_socket_recvfrom which work very muchWez Furlong2003-11-291-1/+24
| | | | | like sendto() and recvfrom() syscalls.
* One bit fields need to be unsigned, otherwise there is no storage forSascha Schumann2003-08-171-3/+3
| | | | | | | the sign bit "A signed bit field has a length of 1 bit."
* socklen_t needs this.Wez Furlong2003-07-021-0/+4
| | | | | | We might need some more magic to ensure that socklen_t gets defined in the correct places; lets see if any more problems arise...
* size_t -> socklen_tWez Furlong2003-07-011-3/+3
| | | | | fixes warnings under macosx
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* New user-space functions:Wez Furlong2003-02-281-3/+11
| | | | | | | | | | | . 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.