#46258 [Opn->Csd]: fsockopen() missing/incorrect documentation

From: Date: Tue, 04 Nov 2008 16:51:59 +0000
Subject: #46258 [Opn->Csd]: fsockopen() missing/incorrect documentation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1319@lists.php.net to get a copy of this message
ID: 46258 Updated by: vrana@php.net Reported By: ltjackal at email dot cz -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Linux PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. "Throws E_WARNING if hostname is not a valid domain." Previous Comments: ------------------------------------------------------------------------ [2008-10-08 19:53:10] ltjackal at email dot cz Description: ------------ if the host is unavailable then warning message is generated. documentation is silent about this behavior and function should return false, not false and generate warning. and making function silent by 'at' (@) is not what i have in mind. thank you. Reproduce code: --------------- you can use demo code in documentation. Expected result: ---------------- return false or an exception. do not generate warning message. Actual result: -------------- Warning: fsockopen() [function.fsockopen]: unable to connect to AA.BB.CC.DD:XY (Connection timed out) in /foo/bar/path.php on line 1234; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46258&edit=1

« previous php.doc.bugs (#1319) next »