# Leaks (reported during shutdown)

- Thread: https://externals.io/message/5987
- Original archive: https://news-web.php.net/php.internals/5987
- Started by Jani Taskinen on 2003-12-02T08:40:19+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #5987 — Jani Taskinen — 2003-12-02T08:40:19+00:00

URL: https://externals.io/message/5987#5987

This is the simple test script:

<?php
    
    while (1) {
      echo "1";
      sleep (1);
    }
    
?>

    Steps to reproduce:
    
    1) Start Apache
    2) Access the script and let it run for some seconds
    3) Stop the request.
    4) Shutdown Apache
    
    Maybe these leaks are intentional but thinking that there are
    so many leaks makes me think there really is some bug somewhere? :)
    
    Some of these (bcmath ones) seem to be caused by that fact that
    RSHUTDOWN is not run at all when you happen to press 'Stop' in your
    browser. (There's some bug report about this, iirc :)
    
    --Jani
