Bug #17878: Connection handling functions broken
| From: | Jean-Luc dot Parouty at inria dot fr | Date: | Thu, 20 Jun 2002 16:35:57 +0000 |
| Subject: | Bug #17878: Connection handling functions broken | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-11583@lists.php.net to get a copy of this message | ||
From: Jean-Luc.Parouty@inria.fr
Operating system: Linux RedHat 7.2
PHP version: 4.0CVS-2002-06-20
PHP Bug Type: Unknown/Other Function
Bug description: Connection handling functions broken
Connection handling functions doesn't works with Apache 2.0.39
Problem was same with php 4.2.1 and Apache 2.0.36
Here is a script that write a tmp trace file..
Anytime, connection look like "NORMAL" (0 code) and detection of a
connection abort is impossible...
- pjluc
<?
$old=ignore_user_abort(false);
$now=ignore_user_abort();
register_shutdown_function("end_of_script");
print "Start...($old,$now)<br>";
sleep(2);
phpinfo();
sleep(2);
print "...End<br>";
function end_of_script(){
$line="Status=[".connection_status()."][".connection_aborted()."]\n";
$out=fopen("/tmp/foo.txt","a");
fwrite($out,$line);
fclose($out);
}
?>
--
Edit bug report at http://bugs.php.net/?id=17878&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17878&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17878&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17878&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17878&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17878&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17878&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17878&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17878&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17878&r=globals