Anatol Belski
9d4da80e90
Implemented winsock info import/export
2018-05-17 11:36:23 +02:00
Dmitry Stogov
524f5245c5
Avoid useless checks, using zend_string_efree(), in cases where the string is known to be a temporary allocated zend_string.
2018-05-08 17:30:15 +03:00
Thomas Punt
74ecbbebe5
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix potential memory leaks in sockets extension
2018-04-28 13:58:45 +01:00
Thomas Punt
d990b9316a
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix potential memory leaks in sockets extension
2018-04-28 13:57:30 +01:00
Thomas Punt
643c9c9b47
Fix potential memory leaks in sockets extension
2018-04-28 13:55:24 +01:00
Nikita Popov
bd2ecb01d2
Merge branch 'PHP-7.2'
2018-03-11 16:37:08 +01:00
Thomas Petazzoni
8489ecefd3
ext/sockets: make AI_IDN usage optional
...
AI_IDN is not supported by all C libraries (uClibc, musl), so make it
optional, like AI_ALL.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-03-11 16:35:17 +01:00
Anatol Belski
b9040b812c
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Remove TSRMLS_*
2018-03-01 12:15:20 +01:00
Anatol Belski
3c58b2c31a
Remove TSRMLS_*
2018-03-01 12:12:11 +01:00
Thomas Punt
e51aadcc4e
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Use the correct freeing function
2018-01-29 11:17:23 +00:00
Thomas Punt
0f393a6102
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Use the correct freeing function
2018-01-29 11:13:22 +00:00
Thomas Punt
fb128f6512
Use the correct freeing function
2018-01-29 11:13:10 +00:00
Dmitry Stogov
67e47c3ee3
Eliminate useless separations
2018-01-17 12:45:23 +03:00
Xinchen Hui
a6519d0514
year++
2018-01-02 12:57:58 +08:00
Xinchen Hui
7a7ec01a49
year++
2018-01-02 12:55:14 +08:00
Xinchen Hui
ccd4716ec7
year++
2018-01-02 12:53:31 +08:00
Dmitry Stogov
9e709e2fa0
Move constants into read-only data segment
2017-12-14 18:43:44 +03:00
Dmitry Stogov
6a9d2b2190
Cleanup type conversion
2017-12-07 19:24:55 +03:00
Sara Golemon
ec90310ea9
Guard against AI_NUMERICSERV not being defined.
2017-10-01 21:37:04 -04:00
Sara Golemon
320c4f22a4
Guard against AI_NUMERICSERV not being defined.
2017-10-01 21:32:31 -04:00
David Carlier
93d7cf375e
Fix openbsd build: AI_V4MAPPED, AI_ALL not defined
2017-03-27 18:55:34 +02:00
Sammy Kaye Powers
dac6c639bb
Update copyright headers to 2017
2017-01-04 11:23:42 -06:00
Sammy Kaye Powers
9e29f841ce
Update copyright headers to 2017
2017-01-02 09:30:12 -06:00
Anatol Belski
bfb9be9bd4
Merge branch 'PHP-7.1'
...
* PHP-7.1:
remove TSRMLS_*
2016-11-22 00:33:29 +01:00
Anatol Belski
d61db8d602
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
remove TSRMLS_*
2016-11-22 00:32:42 +01:00
Anatol Belski
5e9b4c26a5
remove TSRMLS_*
2016-11-21 23:53:37 +01:00
David Walker
750f3d3f65
Improve getaddrinfo implementation
...
* Fix some leaks
* Improve some comparisons and casts
* Raise a notice when an unknown hint is provided
2016-09-05 14:27:31 +02:00
David Walker
d59af68fd9
Make sure to copy the right amount of mem over. IPv6 can be larger than struct sockaddr
2016-08-24 11:22:05 -06:00
David Walker
7373ce9149
Fix #72733 : Expose getaddrinfo C function, and supporting connect/bind
...
Feature request was to expose getaddrinfo(). I accomplish this
by having an array of resources that are the addrinfo structures.
The resources can be used in new functions to connect/bind, and
one function to examine the contents of the resource.
2016-08-12 11:29:34 -06:00
Dmitry Stogov
adc95c5114
Fixed compilation warnings
2016-06-23 12:47:06 +03:00
Dmitry Stogov
1616038698
Added ZEND_ATTRIBUTE_FORMAT to some middind functions.
...
"%p" replaced by ZEND_LONG_FMT to avoid compilation warnings.
Fixed most incorrect use cases of format specifiers.
2016-06-21 16:00:37 +03:00
Chris Wright
e8abb70fc9
Implement socket_export_stream()
2016-05-02 17:08:15 +02:00
Joe Watkins
233115ea23
fix #71609 : Segmentation fault on ZTS with gethostbyname
2016-03-31 12:39:01 +01:00
Nikita Popov
1ac152938c
Move semicolon into TSRMLS_CACHE_EXTERN/DEFINE
...
Also re bug #71575 .
2016-03-03 16:50:01 +01:00
Lior Kaplan
ed35de784f
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Happy new year (Update copyright to 2016)
2016-01-01 19:48:25 +02:00
Lior Kaplan
49493a2dcf
Happy new year (Update copyright to 2016)
2016-01-01 19:21:47 +02:00
Bob Weinand
855bb36fd0
Add support for IPV6_V6ONLY on sockets
2015-11-06 21:45:31 +01:00
Dmitry Stogov
ad4fa8f758
Fixed incorrect usage of HASH_OF() macro. Replaced HASH_OF() with more appropriate Z_ARRVAL_P() or Z_OBJPROP_P().
2015-09-24 22:39:59 +03:00
Dmitry Stogov
4a2e40bb86
Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).
2015-06-30 04:05:24 +03:00
Dmitry Stogov
4d9a1883aa
Fixed bug #68887 (resources are not freed correctly)
2015-04-08 13:29:42 +03:00
Anatol Belski
663074b6b1
cleanup mod version macros and mod defs, round x
2015-03-23 21:30:22 +01:00
Dmitry Stogov
d146d15003
Optimize zend_string_realloc() add more specialized versions zend_string_extend() and zend_string_truncate()
2015-03-20 02:02:42 +03:00
Dmitry Stogov
8633685675
Use specialized macro for string zval creation
2015-03-12 16:53:51 +03:00
Anatol Belski
af3ca74501
made ZEND_TSRMLS_CACHE_* macros look like function calls
...
which also comply with the current semantics for such macros
2015-02-16 17:19:32 +01:00
Xinchen Hui
e98caf27ea
found type is unnecessary
2015-02-02 14:45:19 +08:00
Xinchen Hui
942809909e
Cleanup resource handling APIs
2015-02-02 13:23:16 +08:00
Xinchen Hui
fc33f52d8c
bump year
2015-01-15 23:27:30 +08:00
Xinchen Hui
0579e8278d
bump year
2015-01-15 23:26:37 +08:00
Stanislav Malyshev
b7a7b1a624
trailing whitespace removal
2015-01-10 15:07:38 -08:00
Anatol Belski
bdeb220f48
first shot remove TSRMLS_* things
2014-12-13 23:06:14 +01:00