php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48374 memory leak ( >= PHP_5_3 only)
Submitted: 2009-05-24 15:58 UTC Modified: 2009-05-25 13:23 UTC
From: zoe@php.net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.3CVS-2009-05-24 (CVS) OS: Ubuntu Linux
Private report: No CVE-ID: None
 [2009-05-24 15:58 UTC] zoe@php.net
Description:
------------
run-tests.php reports a memory leak on a simple test case

Checked the PHP 5.2 development stream with the same test and get the expected result(PASS)

Reproduce code:
---------------
export TEST_PHP_EXECUTABLE=/mnt/workspace/PHP/php53/sapi/cli/php
$TEST_PHP_EXECUTABLE /mnt/workspace/PHP/php53/run-tests.php -m hw.phpt

where hw.phpt is :

--TEST--
hw
--FILE--
<?php
  echo "hello world\n";
?>
--EXPECT--
hello world


Expected result:
----------------
PASS

Actual result:
--------------
PHP         : /mnt/workspace/PHP/php53/sapi/cli/php 
PHP_SAPI    : cli
PHP_VERSION : 5.3.0RC3-dev
ZEND_VERSION: 2.3.0
PHP_OS      : Linux - Linux zoe-laptop 2.6.27-11-generic #1 SMP Thu Jan 29 19:24:39 UTC 2009 i686
INI actual  : /home/zoe/TESTS/simple
More .INIs  :  
CWD         : /home/zoe/TESTS/simple
Extra dirs  : 
VALGRIND    : valgrind-3.3.1-Debian
=====================================================================
Running selected tests.
LEAK hw [hw.phpt] 
=====================================================================
Number of tests :    1                 1
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    0 (  0.0%) (  0.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests leaked    :    1 (100.0%) (100.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    4 seconds
=====================================================================

=====================================================================
LEAKED TEST SUMMARY
---------------------------------------------------------------------
hw [hw.phpt]
=====================================================================


the hw.mem file is here: http://pastebin.ca/1433064

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-24 17:37 UTC] zoe@php.net
Sorry - a bit more information. I only see this with

configure  --enable-sockets.
 [2009-05-25 13:23 UTC] jani@php.net
That's not a PHP bug:

http://osdir.com/ml/lib.glibc.bugs/2003-12/msg00008.html
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 23:01:33 2025 UTC