note 76048 added to function.connection-aborted

From: Date: Wed, 27 Jun 2007 18:50:09 +0000
Subject: note 76048 added to function.connection-aborted
Groups: php.notes 
Request: Send a blank email to php-notes+get-128034@lists.php.net to get a copy of this message
Although the documentation indicates it returns an int, I found comparing the return value with numeric values does not seem to work. Example (does not work): <?php if (connection_aborted()==1) { fwrite($filehandle, 'aborted!'); } ?> You're better off just assuming it returns boolean Example (does work): <?php if (connection_aborted()) { fwrite($filehandle, 'aborted!'); } ?> ---- Server IP: 216.235.15.211 Probable Submitter: 216.171.104.98 ---- Manual Page -- http://www.php.net/manual/en/function.connection-aborted.php Edit -- https://master.php.net/note/edit/76048 Del: integrated -- https://master.php.net/note/delete/76048/integrated Del: useless -- https://master.php.net/note/delete/76048/useless Del: bad code -- https://master.php.net/note/delete/76048/bad+code Del: spam -- https://master.php.net/note/delete/76048/spam Del: non-english -- https://master.php.net/note/delete/76048/non-english Del: in docs -- https://master.php.net/note/delete/76048/in+docs Del: other reasons-- https://master.php.net/note/delete/76048 Reject -- https://master.php.net/note/reject/76048 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128034) next »