#21726 [Opn->Csd]: Memory leaks

From: Date: Sat, 18 Jan 2003 18:32:16 +0000
Subject: #21726 [Opn->Csd]: Memory leaks
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30495@lists.php.net to get a copy of this message
ID: 21726 Updated by: moriyoshi@php.net Reported By: novell@kiruna.se -Status: Open +Status: Closed Bug Type: *General Issues Operating System: Linux PHP Version: 5CVS-2003-01-18 (dev) Assigned To: moriyoshi New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-01-18 11:54:30] moriyoshi@php.net Changing the line while ($temp = fscanf($fp,"%s = %s",$var,$var2)) { to while ($temp = fscanf($fp,"%n = %n",$var,$var2)) { causes the runtime to segfault. ------------------------------------------------------------------------ [2003-01-18 11:51:49] moriyoshi@php.net I'm working on this. ------------------------------------------------------------------------ [2003-01-18 11:42:56] wez@php.net my fault; I'm playing with a local copy of the bugdb and didn't update the mailto address. ------------------------------------------------------------------------ [2003-01-18 11:39:46] derick@php.net Due to a bug in the installed sed on your system the build fails. Install GNU sed and it should be okay. Thank you for your interest in PHP. ------------------------------------------------------------------------ [2003-01-18 08:32:46] novell@kiruna.se /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 this bug report at http://bugs.php.net/?id=21726&edit=1

« previous php.bugs (#30495) next »