[php-src] Issue #12630: Windows: Duplicate "Unable to load dynamic library" warning
| From: | staabm | Date: | Wed, 08 Nov 2023 08:58:42 +0000 |
| Subject: | [php-src] Issue #12630: Windows: Duplicate "Unable to load dynamic library" warning | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-245762@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/12630
Author: staabm
### Description
The following code:
```php
$ php -v
PHP Warning: PHP Startup: Unable to load dynamic library 'ftp' (tried: ext\ftp (Das
angegebene Modul wurde nicht gefunden), ext\php_ftp.dll (Falscher Parameter)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'ftp' (tried: ext\ftp (Das angegebene
Modul wurde nicht gefunden), ext\php_ftp.dll (Falscher Parameter)) in Unknown on line 0
PHP 8.2.12 (cli) (built: Oct 24 2023 21:15:35) (NTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.2.12, Copyright (c) Zend Technologies
$ php -v 2>/dev/null
Warning: PHP Startup: Unable to load dynamic library 'ftp' (tried: ext\ftp (Das angegebene
Modul wurde nicht gefunden), ext\php_ftp.dll (Falscher Parameter)) in Unknown on line 0
PHP 8.2.12 (cli) (built: Oct 24 2023 21:15:35) (NTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.2.12, Copyright (c) Zend Technologies
```
But I expected this output instead:
-> no warning in the output when stderr is redirected
-> one error is propery redirected but it seems the very same error is emitted a second time on
stdout?
### PHP Version
8.2.12
### Operating System
windows11