[php-src] Issue #13915: Invalid nameserver delays php-cli execution
| From: | nasu-wasabi | Date: | Mon, 08 Apr 2024 10:29:34 +0000 |
| Subject: | [php-src] Issue #13915: Invalid nameserver delays php-cli execution | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246720@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13915
Author: nasu-wasabi
### Description
The following code:
```php
<?php
echo "Hello World";
```
Execute code:
```
php test.php
```
Resulted in this output:
```
Hello World
```
This is displayed correctly.
However, there is a delay of about 60 seconds between execution and display.
Delays occur when there is an invalid nameserver in resolv.conf as shown below.
Occurs with this pattern:
```
cat /etc/resolv.conf
nameserver <invalid nameserver>
```
Or this:
```
cat /etc/resolv.conf
nameserver <invalid nameserver>
nameserver <valid nameserver>
```
Does not occur if all nameservers are correct or none are defined.
### PHP Version
PHP 8.4.3 or 8.2.17 or 7.4.33
### Operating System
Debian 12.5 or 11.9