|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-01-18 08:32 UTC] novell at kiruna dot 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon May 25 08:00:02 2026 UTC |
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.