| 
 Posted by David Gillen on 04/27/07 09:29 
Man-wai Chang said: 
> After the webserver executed a page.php (resulting with or without  
> error), are all $result from mysql_query() released automatically? 
> 
Yes, when the script finishes executing. There is a memory leak somewhere 
though in mysql_query() and using mysql_free_result() doesn't properly free 
all the memory. Unless you are executing thousands of queries in a single 
script this shouldn't be a problem. If it is, you can just increase the 
available memory size for your script. 
 
D. 
--  
Fermat was right.
 
  
Navigation:
[Reply to this message] 
 |