Re: Cleaning up streams when connection aborted

From: Date: Mon, 18 Mar 2002 12:06:04 +0000
Subject: Re: Cleaning up streams when connection aborted
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-81435@lists.php.net to get a copy of this message
At 13:04 18/03/2002, Wez Furlong wrote:
I've noticed a couple of places in the code where ZEND_REGISTER_RESOURCE is used to remember to cleanup streams, and then deletes the list entry when it has completed what it was doing. It's a nice idea, but it doesn't feel safe to me (probably because I'm not 100% aware of the way that PHP handles the connection aborting),
I'm not sure why you think it's unsafe..? That's one of the key advantages of using the resource infrastructure. I can't see how streams are different from any other resource. Zeev

« previous php.dev (#81435) next »