PHP :: Bug #43954 :: memory leaks detected
| Bug #43954 | memory leaks detected | ||||
|---|---|---|---|---|---|
| Submitted: | 2008-01-28 14:11 UTC | Modified: | 2008-01-28 16:13 UTC | ||
| From: | vadim dot negoda at gmail dot com | Assigned: | scottmac (profile) | ||
| Status: | Closed | Package: | Unknown/Other Function | ||
| PHP Version: | 5.2.5 | OS: | FreeBSD 6.3-RELEASE | ||
| Private report: | No | CVE-ID: | None | ||
[2008-01-28 14:11 UTC] vadim dot negoda at gmail dot com
Description: ------------ [Sat Jan 26 21:46:58 2008] Script: '/home/.../www/engine/ajax/rating.php' /usr/ports/lang/php5/work/php-5.2.5/main/SAPI.c(565) : Freeing 0x0093D608 (16 bytes), script=/home/.../www/engine/ajax/rating.php === Total 1 memory leaks detected ===
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2008-01-28 14:30 UTC] vadim dot negoda at gmail dot com
[2008-01-28 15:05 UTC] felipe@php.net
[2008-01-28 15:25 UTC] vadim dot negoda at gmail dot com
Sorry if may message very long... <? @session_start(); @error_reporting(7); @ini_set('display_errors', true); @ini_set('html_errors', false); define('DATALIFEENGINE', true); define('ROOT_DIR', '../..'); define('ENGINE_DIR', '..'); include ENGINE_DIR.'/data/config.php'; require_once ENGINE_DIR.'/inc/mysql.php'; require_once ENGINE_DIR.'/data/dbconfig.php'; $_REQUEST['skin'] = end (explode (DIRECTORY_SEPARATOR, $_REQUEST['skin'])); if ($_REQUEST['skin']) { if (@is_dir(ROOT_DIR.'/templates/'.$_REQUEST['skin'])) { $config['skin'] = $_REQUEST['skin']; } else { die ("Hacking attempt!"); } } if ($config["lang_".$config['skin']]) { include_once ROOT_DIR.'/language/'.$config["lang_".$config['skin']].'/website.lng'; } else { include_once ROOT_DIR.'/language/'.$config['langs'].'/website.lng'; } $config['charset'] = ($lang['charset'] != '') ? $lang['charset'] : $config['charset']; require_once ENGINE_DIR.'/modules/functions.php'; require_once ENGINE_DIR.'/modules/sitelogin.php'; $go_rate = intval($_REQUEST['go_rate']); $news_id = intval($_REQUEST['news_id']); if ($go_rate > 5 OR $go_rate < 1) $go_rate = 0; if (!$go_rate OR !$news_id) die ("error"); $_IP = $db->safesql($_SERVER['REMOTE_ADDR']); if ($is_logged) $where = "member = '{$member_id['name']}'"; else $where = "ip ='{$_IP}'"; @header("HTTP/1.0 200 OK"); @header("HTTP/1.1 200 OK"); @header("Cache-Control: no-cache, must-revalidate, max-age=0"); @header("Expires: 0"); @header("Pragma: no-cache"); @header("Content-type: text/css; charset=".$config['charset']); echo $buffer; ?>[2008-01-28 15:59 UTC] scottmac@php.net
[2008-01-28 16:09 UTC] vadim dot negoda at gmail dot com
I had success changing a line: //@header("HTTP/1.0 200 OK");[2008-01-28 16:13 UTC] scottmac@php.net