|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-01 23:26 UTC] waldschrott@php.net
[2000-08-20 01:50 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 18:00:01 2025 UTC |
When using the next script PHP leaks memory, for ($i=0;$i<count($Users);$i++) { $Branche = ""; for ($B=2;$B<count($Users[$i]);$B++) $Branche.=$Users[$i][$B]; $Users[$i][1] = str_replace(",",".",$Users[$i][1]); $Users[$i][1] = ereg_replace("[ !#\$%\^&\*\(\)]","", $Users[$i][1]); $Login=substr(ereg_replace("[,\. !#\$%\^&\*\(\)]","", $Users[$i][0]),0,7); $Query=sprintf("INSERT INTO EmailService VALUES ('%s', '%s', PASSWORD('%s'), 0, NULL, '%s', '111111111111', '%s')", $Users[$i][0], $Users[$i][1], $Users[$i][1], $Branche, strtolower($Login)); $id=mysql_query("$Query"); print "Done!"; This results in : Done! reg.c(487) : Freeing 0x08106E90 (1 bytes), script=Convert.php3 string.c(1549) : Freeing 0x08105BC8 (1 bytes), script=Convert.php3 Logan5 told me to post this, so here you are:-)