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-abo
rted.php
Edit -- https://master
.php.net/note/edit/76048
Del: integrated -- h
ttps://master.php.net/note/delete/76048/integrated
Del: useless -- http
s://master.php.net/note/delete/76048/useless
Del: bad code -- htt
ps://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 -- http
s://master.php.net/note/delete/76048/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/76048
Reject -- https://mast
er.php.net/note/reject/76048
Search -- https://
master.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|