note 127649 added to function.fsockopen
| From: | jszoja at gmail dot com | Date: | Sat, 17 Sep 2022 18:23:29 +0000 |
| Subject: | note 127649 added to function.fsockopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219593@lists.php.net to get a copy of this message | ||
Opening non-existing socket file via
unix// protocol will result in exception also when
suppressing error with @ like:
<?php
$fh = @fsockopen('unix:///var/run/file-not-exists.sock');
?>
It is important to know when migrating from PHP 7.4 to 8.x, as handling error suppression with @
has changed.
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.173 (proxied: 109.255.218.166)
----
Manual Page -- https://php.net/manual/en/function.fsockopen.php
Edit -- https://main.php.net/note/edit/127649
Del: integrated -- https://main.php.net/note/delete/127649/integrated
Del: useless -- https://main.php.net/note/delete/127649/useless
Del: bad code -- https://main.php.net/note/delete/127649/bad+code
Del: spam -- https://main.php.net/note/delete/127649/spam
Del: non-english -- https://main.php.net/note/delete/127649/non-english
Del: in docs -- https://main.php.net/note/delete/127649/in+docs
Del: other reasons-- https://main.php.net/note/delete/127649
Reject -- https://main.php.net/note/reject/127649
Search -- https://main.php.net/manage/user-notes.php