Bug #78090 [Ver->Fbk]: test 3408/14609 of make test takes forever to finish

[email protected]
Newsgroups php.bugs,php.qa
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=78090&edit=1

 ID:                 78090
 Updated by:         [email protected]
 Reported by:        luciano at mannucci dot org
 Summary:            test 3408/14609 of make test takes forever to finish
-Status:             Verified
+Status:             Feedback
 Type:               Bug
 Package:            Testing related
 Operating System:   freebsd 11.2-RELEASE-p10
 PHP Version:        7.3
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Thanks for testing with the newer PHP versions!

Could you please run the following script, and post its output
here?  I expect that to print int(28), but would like to have that
confirmed.

<?php
$ch = curl_init('http://127.0.0.1:9/');
curl_exec($ch);
var_dump(curl_error());
?>


Previous Comments:
------------------------------------------------------------------------
[2020-02-03 11:43:28] luciano at mannucci dot org

Yes I can confirm that I get the very same result with

PHP 7.3.14 (cli) (built: Jan 24 2020 13:26:08) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.14, Copyright (c) 1998-2018 Zend Technologies

and

PHP 7.4.2 (cli) (built: Jan 24 2020 16:08:23) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

------------------------------------------------------------------------
[2020-02-03 10:51:17] [email protected]

The following pull request has been associated:

Patch Name: Fix #78090: test 3408/14609 of make test takes forever to finish
On GitHub:  https://github.com/php/php-src/pull/5146
Patch:      https://github.com/php/php-src/pull/5146.patch

------------------------------------------------------------------------
[2020-02-03 10:50:50] [email protected]

Thanks for the fast reply!

While active support for PHP 7.2 has ended a while ago[1], this
doesn't appear related to the PHP version at all, but rather to

    Failed to connect to 127.0.0.1 port 9: Operation timed out

Apparently, your system does not support the discard protocol[2],
so the test should be skipped.

[1] <https://www.php.net/supported-versions.php>
[2] <https://tools.ietf.org/html/rfc863>

------------------------------------------------------------------------
[2020-02-03 09:58:11] luciano at mannucci dot org

This is what I get:

root@Saguaro:/tmp # /opt/php72/bin/php
php*        php-cgi*    php-config* phpdbg*     phpize*     
root@Saguaro:/tmp # /opt/php72/bin/php !$
/opt/php72/bin/php test_script.php
* STATE: INIT => CONNECT handle 0x53113000; line 1605 (connection #-5000)
* Added connection 0. The cache now contains 1 members
*   Trying 127.0.0.1:9...
* TCP_NODELAY set
* STATE: CONNECT => WAITCONNECT handle 0x53113000; line 1661 (connection #0)
* connect to 127.0.0.1 port 9 failed: Operation timed out
* Failed to connect to 127.0.0.1 port 9: Operation timed out
* multi_done
* Closing connection 0
* The cache now contains 0 members
* STATE: INIT => CONNECT handle 0x53113000; line 1605 (connection #-5000)
* Added connection 1. The cache now contains 1 members
* Hostname 127.0.0.1 was found in DNS cache
*   Trying 127.0.0.1:9...
* TCP_NODELAY set
* STATE: CONNECT => WAITCONNECT handle 0x53113000; line 1661 (connection #1)
* connect to 127.0.0.1 port 9 failed: Operation timed out
* Failed to connect to 127.0.0.1 port 9: Operation timed out
* multi_done
* Closing connection 1
* The cache now contains 0 members
* STATE: INIT => CONNECT handle 0x53113000; line 1605 (connection #-5000)
* Added connection 2. The cache now contains 1 members
*   Trying 127.0.0.1:9...
* TCP_NODELAY set
* STATE: CONNECT => WAITCONNECT handle 0x53113000; line 1661 (connection #2)
* connect to 127.0.0.1 port 9 failed: Operation timed out
* Failed to connect to 127.0.0.1 port 9: Operation timed out
* multi_done
* Closing connection 2
* The cache now contains 0 members
root@Saguaro:/tmp # 

My php is now:

root@Saguaro:/tmp # /opt/php72/bin/php --version
PHP 7.2.27 (cli) (built: Jan 23 2020 19:30:35) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

Which shows the very same behaviour of its predecessor.

------------------------------------------------------------------------
[2020-02-02 22:52:56] [email protected]

What happens if you run the following script?  Are there any error
messages?  Does the script finish after some time?

<?php
$ch = curl_init();
$fp = fopen('/dev/null', 'w');
for($i = 0; $i < 3; $i++) {
    curl_setopt($ch, CURLOPT_URL, 'http://127.0.0.1:9/');
    curl_setopt($ch, CURLOPT_FILE, $fp);
    curl_setopt($ch, CURLOPT_VERBOSE, true);
    curl_exec($ch);
}
?>

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=78090


--
Edit this bug report at https://bugs.php.net/bug.php?id=78090&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.