History log of /php-src/main/streams/xp_socket.c (Results 51 – 75 of 175)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
Revision tags: php-7.1.4, php-7.0.18, php-7.1.4RC1, php-7.0.18RC1, php-7.1.3, php-7.0.17
# 2ba2b768 07-Mar-2017 Sara Golemon

Merge branch 'PHP-7.1'

* PHP-7.1:
Detect invalid port in xp_socket parse ip address


# 1a19b97a 07-Mar-2017 Sara Golemon

Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
Detect invalid port in xp_socket parse ip address


# bab0b99f 07-Mar-2017 Sara Golemon

Detect invalid port in xp_socket parse ip address

For historical reasons, fsockopen() accepts the port and hostname
separately: fsockopen('127.0.0.1', 80)

However, with the intr

Detect invalid port in xp_socket parse ip address

For historical reasons, fsockopen() accepts the port and hostname
separately: fsockopen('127.0.0.1', 80)

However, with the introdcution of stream transports in PHP 4.3,
it became possible to include the port in the hostname specifier:

fsockopen('127.0.0.1:80')
Or more formally: fsockopen('tcp://127.0.0.1:80')

Confusing results when these two forms are combined, however.
fsockopen('127.0.0.1:80', 443) results in fsockopen() attempting
to connect to '127.0.0.1:80:443' which any reasonable stack would
consider invalid.

Unfortunately, PHP parses the address looking for the first colon
(with special handling for IPv6, don't worry) and calls atoi()
from there. atoi() in turn, simply stops parsing at the first
non-numeric character and returns the value so far.

The end result is that the explicitly supplied port is treated
as ignored garbage, rather than producing an error.

This diff replaces atoi() with strtol() and inspects the
stop character. If additional "garbage" of any kind is found,
it fails and returns an error.

show more ...

Revision tags: php-7.1.3RC1, php-7.0.17RC1
# e7b4ee31 15-Feb-2017 Anatol Belski

Merge branch 'PHP-7.1'

* PHP-7.1:
Fixed bug #74090 stream_get_contents maxlength>-1 returns empty string


# 2a61e549 15-Feb-2017 Anatol Belski

Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
Fixed bug #74090 stream_get_contents maxlength>-1 returns empty string


# 89a5bd67 15-Feb-2017 Anatol Belski

Fixed bug #74090 stream_get_contents maxlength>-1 returns empty string

Revision tags: php-7.1.2, php-7.0.16, php-7.0.16RC1, php-7.1.2RC1, php-5.6.30, php-7.0.15, php-5.6.30RC1, php-7.1.1RC1, php-7.0.15RC1
# dac6c639 04-Jan-2017 Sammy Kaye Powers

Update copyright headers to 2017

# 478f119a 04-Jan-2017 Sammy Kaye Powers

Update copyright headers to 2017

# 9e29f841 02-Jan-2017 Sammy Kaye Powers

Update copyright headers to 2017

Revision tags: php-7.1.1, php-5.6.29, php-7.0.14, php-7.1.0, php-5.6.29RC1, php-7.0.14RC1
# 2104bea5 12-Nov-2016 Kalle Sommer Nielsen

Remove Netware support

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 can

Remove Netware support

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.

show more ...

Revision tags: php-7.1.0RC6, php-5.6.28, php-7.0.13, php-5.6.28RC1, php-7.1.0RC5, php-7.0.13RC1, php-7.1.0RC4, php-5.6.27, php-7.0.12, php-7.1.0RC3, php-5.6.27RC1, php-7.0.12RC1, php-5.6.26, php-7.1.0RC2, php-7.0.11, php-5.6.26RC1, php-7.1.0RC1, php-7.0.11RC1, php-7.1.0beta3, php-5.6.25, php-7.0.10, php-7.1.0beta2, php-5.6.25RC1, php-7.0.10RC1, php-7.1.0beta1, php-5.6.24, php-7.0.9, php-5.5.38, php-5.6.24RC1, php-7.1.0alpha3, php-7.0.9RC1, php-7.1.0alpha2, php-7.0.8, php-5.6.23
# 16160386 21-Jun-2016 Dmitry Stogov

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.

Revision tags: php-5.5.37
# 3e1329c1 19-Jun-2016 Xinchen Hui

Merge branch 'PHP-7.0'


# 6b83832c 19-Jun-2016 Xinchen Hui

Merge branch 'PHP-5.6' into PHP-7.0

Conflicts:
main/streams/xp_socket.c


# c4c1993a 19-Jun-2016 Xinchen Hui

Fixed bug #72439 (Stream socket with remote address leads to a segmentation fault)

Revision tags: php-5.6.23RC1, php-7.0.8RC1, php-7.1.0alpha1, php-5.6.22, php-5.5.36, php-7.0.7, php-5.6.22RC1, php-7.0.7RC1, php-7.0.6, php-5.6.21
# 66fc5a34 27-Apr-2016 Joe Watkins

Implement #51879 stream context socket option tcp_nodelay

Revision tags: php-5.5.35, php-5.6.21RC1, php-7.0.6RC1, php-5.6.20, php-5.5.34, php-7.0.5, php-5.6.20RC1, php-7.0.5RC1, php-5.6.19, php-5.5.33, php-7.0.4, php-5.6.19RC1, php-7.0.4RC1, php-5.6.18, php-7.0.3, php-5.5.32, php-5.6.18RC1, php-7.0.3RC1, php-5.6.17, php-5.5.31, php-7.0.2
# ed35de78 01-Jan-2016 Lior Kaplan

Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
Happy new year (Update copyright to 2016)


# 49493a2d 01-Jan-2016 Lior Kaplan

Happy new year (Update copyright to 2016)

Revision tags: php-7.0.2RC1, php-5.6.17RC1, php-7.0.1RC1, php-7.0.0, php-5.6.16, php-7.0.0RC8, php-7.0.0RC7, php-5.6.16RC1
# 855bb36f 06-Nov-2015 Bob Weinand

Add support for IPV6_V6ONLY on sockets

Revision tags: php-5.6.15, php-7.0.0RC6, php-7.0.1, php-5.6.15RC1, php-7.0.0RC5, php-5.5.30, php-5.6.14, php-7.0.0RC4, php-5.6.14RC1, php-7.0.0RC3, php-5.6.13, php-7.0.0RC2, php-5.5.29, php-5.4.45, php-5.6.13RC1, php-7.0.0RC1
# 797e30f4 11-Aug-2015 Anatol Belski

Fixed bug #70198 Checking liveness does not work as expected

# 9834cd93 11-Aug-2015 Xinchen Hui

Revert "Revert "suggest parentheses around ‘&&’ within ‘||’""

This reverts commit ec1e8929c4e4c287d919945811475905e1391b7f.

# ec1e8929 11-Aug-2015 Xinchen Hui

Revert "suggest parentheses around ‘&&’ within ‘||’"

This reverts commit 4f2c0e045132de51473b643c68e07e5b2c2e218b.

# 4f2c0e04 11-Aug-2015 Xinchen Hui

suggest parentheses around ‘&&’ within ‘||’

# 7eb6bd13 11-Aug-2015 Anatol Belski

add EAGAIN checks

EAGAIN and EWOULDBLOCK should be checked together and don't necessary,
have same value. So checking both is better for portability.

# 24f0fe6b 11-Aug-2015 Anatol Belski

Fixed bug #70198 Checking liveness does not work as expected

Revision tags: php-5.6.12, php-5.5.28, php-7.0.0beta3, php-5.4.44, php-5.6.12RC1, php-7.0.0beta2, php-7.0.0beta1, php-5.6.11, php-5.5.27, php-5.4.43, php-5.6.11RC1, php-5.5.27RC1, php-7.0.0alpha2, php-5.5.26, php-7.0.0alpha1, php-5.6.10, php-5.4.42, POST_PHP7_NSAPI_REMOVAL, PRE_PHP7_NSAPI_REMOVAL, php-5.6.10RC1, php-5.5.26RC1, php-5.5.25, php-5.6.9, php-5.4.41, php-5.6.9RC1, php-5.5.25RC1, php-5.6.8, php-5.5.24, php-5.4.40, php-5.6.8RC1, php-5.5.24RC1, php-5.6.7, php-5.5.23, php-5.4.39, php-5.6.7RC1, php-5.5.23RC1, POST_PHP7_EREG_MYSQL_REMOVALS, PRE_PHP7_EREG_MYSQL_REMOVALS, php-5.6.6, php-5.5.22, php-5.4.38, POST_PHP7_REMOVALS, PRE_PHP7_REMOVALS, php-5.6.6RC1, php-5.5.22RC1, php-5.5.21, php-5.6.5, php-5.4.37
# fc33f52d 15-Jan-2015 Xinchen Hui

bump year

1234567