Re: Re: Bug #1225 Updated: fclose() may not really close
| From: | Sascha Schumann | Date: | Mon, 15 Mar 1999 13:00:27 +0000 |
| Subject: | Re: Re: Bug #1225 Updated: fclose() may not really close | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-4621@lists.php.net to get a copy of this message | ||
On Mon, Mar 15, 1999 at 11:45:21AM +0100, Michal Kara wrote:
> >
> > This isn't a valid solution, PHP's fclose implementation
> > isn't supposed to call fclose() directly.
> >
> OK. But it doesn't answer the question - it should really close the
> file (no matter how), because as my experiments shown - sockets stay open.
>
No, they don't. php3_fclose deletes the id from the list which should trigger
the registered destruction handler:
...
GLOBAL(le_fp) = register_list_destructors(fclose,NULL);
...
void php3_fclose(INTERNAL_FUNCTION_PARAMETERS) {
...
php3_list_delete(id);
...
}
--
Regards,
Sascha Schumann |
Consultant | finger sas@schell.de
| for PGP public key
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net