From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      5CVS-2003-01-18 (dev)
PHP Bug Type:     *General Issues
Bug description:  Memory leaks

/opt/DEV/php/php4/ext/standard/scanf.c(887) :  Freeing 0x418B2B64 (22
bytes), script=./test.php
Last leak repeated 675 times
/opt/DEV/php/php4/Zend/zend_execute.c(2876) :  Freeing 0x418A6964 (4
bytes), script=./test.php
/opt/DEV/php/php4/Zend/zend_variables.c(110) : Actual location (location
was relayed)

with this script:

#!/usr/bin/php
<?php
$fp = fopen("Makefile","r");
if ($fp) {
  $x = 0;
  while ($temp = fscanf($fp,"%s = %s",$var,$var2)) {
    if ($var == "CC") { $bleh = $var2; }
    $x++;
} }
fclose($fp);
?>

The Makefile used is the Makefile generated in php source
directory when running configure. And yes, the script is
ugly.
-- 
Edit bug report at http://bugs.php.net/?id=21726&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21726&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21726&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21726&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21726&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21726&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21726&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21726&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21726&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21726&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21726&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21726&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21726&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21726&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21726&r=gnused

Reply via email to