Persistent connections are closed when they time out (18 hours of non-usage by default, I think) or when the owning process (the web server, or at least one of the handler childs in Apache's case) shuts down. No earlier. Calling mysql_close on them has no effect.