By the way, “included by a parent script” is not technically true. It just means it has been declared somewhere, chronologically before the declaration that triggered the error. “Chronologically” because PHP is dynamically typed and scoped, so the previous declaration need not come from a (structurally) parent script.