Bug #74598 [Opn]: unlink ignores stream context
Edit report at https://bugs.php.net/bug.php?id=74598&edit=1
ID: 74598
User updated by: ma at temponizer dot dk
Reported by: ma at temponizer dot dk
-Summary: unlink ignores verify_peer
+Summary: unlink ignores stream context
Status: Open
Type: Bug
Package: Filesystem function related
Operating System: CentOS
PHP Version: 7.0.19
Block user comment: N
Private report: N
New Comment:
Just tested further and it seems like it ignores the stream context completely.
Previous Comments:
------------------------------------------------------------------------
[2017-05-15 14:10:40] ma at temponizer dot dk
Description:
------------
When using unlink for a FTPS filename with a stream context where verify_peer is set to false, it
still tries to verify the certificate.
This results in two warnings
- "SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"
- "Unable to connect to ftps://servername/path"
Test script:
---------------
$sslContext = stream_context_create(['ssl' => [
'verify_peer' => false,
'verify_peer_name' => false
]]);
unlink('ftps://servername/path', $sslContext);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74598&edit=1
Thread (5 messages)