[php-src] Issue #11673: PHP startup is slow with imap extension + Tailscale DNS

From: Date: Tue, 11 Jul 2023 13:19:21 +0000
Subject: [php-src] Issue #11673: PHP startup is slow with imap extension + Tailscale DNS
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244945@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11673
Author: shyim

### Description

When I enable the IMAP Extension and have Tailscale DNS on, basic php -v takes 5
seconds.

I am not running ANY PHP code. Just showing the version

## With Tailscale DNS + Imap

```
❯ time php -v
PHP 8.2.6 (cli) (built: May 14 2023 20:59:34) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.6, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.6, Copyright (c), by Zend Technologies
    with blackfire v1.86.8~mac-x64-non_zts82, https://blackfire.io, by Blackfire

________________________________________________________
Executed in    5.08 secs      fish           external
   usr time   52.85 millis    0.16 millis   52.69 millis
   sys time   19.65 millis    1.43 millis   18.22 millis
```

### With Tailscale DNS **Without Imap**

```
❯ time php -v
PHP 8.2.6 (cli) (built: May 14 2023 20:59:34) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.6, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.6, Copyright (c), by Zend Technologies
    with blackfire v1.86.8~mac-x64-non_zts82, https://blackfire.io, by Blackfire

________________________________________________________
Executed in   80.25 millis    fish           external
   usr time   51.73 millis    0.14 millis   51.59 millis
   sys time   21.23 millis    1.37 millis   19.86 millis
```

Does the imap extension some DNS stuff on extension start which triggers this behaviour? 



### PHP Version

PHP 8.2.6

### Operating System

macOS 14.0beta3


Thread (1 message)

  • shyim
« previous php.bugs (#244945) next »