PHP 4.0 Bug #2457: get_current_user() doesn't free memory it allocates under Apache
| From: | mark at rhythm dot com | Date: | Wed, 06 Oct 1999 20:43:13 +0000 |
| Subject: | PHP 4.0 Bug #2457: get_current_user() doesn't free memory it allocates under Apache | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11581@lists.php.net to get a copy of this message | ||
From: mark@rhythm.com
Operating system: SGI IRIX 6.2
PHP version: 4.0 Beta 2
PHP Bug Type: Misbehaving function
Bug description: get_current_user() doesn't free memory it allocates under Apache
Repeat by:
<?php
printf("get_current_user() = %s",
get_current_user());
?>
Fix by:
*** request_info.c 1999/10/06 20:42:14 1.1
--- request_info.c 1999/10/06 20:42:28
***************
*** 91,96 ****
--- 91,97 ----
int php3_destroy_request_info(void *conf)
{
/* see above for why we don't want to efree() request_info.filename */
+ STR_FREE(request_info.current_user);
return SUCCESS;
}
#endif