|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-21 11:05 UTC] tony at daylessday dot org
[2008-01-23 04:18 UTC] soid dot exe at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 01:00:01 2025 UTC |
Description: ------------ I have a problem when I use the INSERT operation like that. It seems this is leaking memory. So I try to import a big file using the INSERTs and I have a memory overflow error. Reproduce code: --------------- <?php print "PHP Stress Test!\n"; $conn = oci_connect('scott', 'tiger', 'xxxxx'); for ($i = 1; $i < 1000; $i++) { if ($i % 100 == 0) print "#$i: " . memory_get_usage() . "\n"; $s = oci_parse($conn, "INSERT INTO TBL VALUES ($i, $i)"); oci_execute($s); oci_free_statement($s); } ?> Expected result: ---------------- #100: 51196 #200: 59196 #300: 67196 #400: 75196 #500: 83196 #600: 89520 #700: 89772 #800: 90044 #900: 90296 First column is count of INSERTs, second's a memory use. So it seems that's leaking memory.