where do objects, static, and constant variables live in php?
I’m worried if I declare too many static/constants, would result to a memory leak.
thank you.
best regards,
bhadz
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should worry about this only if you have a script that continuously works for days or weeks. If you run your scripts using apache’s
mod_rewrite– don’t bother yourself by such questionsPHP manages everything related to memory automatically, in 99.9% cases you shouldn’t care of it