PHP 4.0 Bug #10076: NULL entry calling
| From: | vgo at nrd dot lt | Date: | Fri, 30 Mar 2001 15:25:35 +0000 |
| Subject: | PHP 4.0 Bug #10076: NULL entry calling | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-50351@lists.php.net to get a copy of this message | ||
From: vgo@nrd.lt
Operating system: Windows 2000
PHP version: 4.0 Latest CVS (30/03/2001)
PHP Bug Type: Reproduceable crash
Bug description: NULL entry calling
File output.c
No checks whether it is possible to call this php_body_write or not. During shutdown of server
calling from oci_debug( ... ) causes crash on the Win32 system by coalling NULL entry.
PHPAPI int php_body_write(const char *str, uint str_length)
{
OLS_FETCH();
return OG(php_body_write)(str, str_length);
}
sugest to change it to:
if( OG(php_body_write) )
{
return OG(php_body_write)(str, str_length);
}
return 0;
--
Edit Bug report at: http://bugs.php.net/?id=10076&edit=1