Does PHP do automatic garbage collection?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bruce W...1

    Does PHP do automatic garbage collection?

    Does PHP do automatic garbage collection, or should you explicitly
    destroy things.

    I found this statement mysql_free_resu lt($result);
    This makes me wonder.

    Thanks for your help.
  • R. Rajesh Jeba Anbiah

    #2
    Re: Does PHP do automatic garbage collection?

    "Bruce W...1" <bruce@noDirect Email.com> wrote in message news:<3F907D2F. 9E2FB0EF@noDire ctEmail.com>...[color=blue]
    > Does PHP do automatic garbage collection, or should you explicitly
    > destroy things.
    >
    > I found this statement mysql_free_resu lt($result);
    > This makes me wonder.[/color]




    mysql_free_resu lt() only needs to be called if you are concerned
    about how much memory is being used for queries that return large
    result sets. All associated result memory is automatically freed at
    the end of the script's execution.

    ---
    "If there is a God, he must be a sadist!"
    http://RajeshAnbiah.itgo.com - The simple site!
    Email: rrjanbiah-at-Y!com

    Comment

    Working...