# patch for bug #17115

- Thread: https://externals.io/message/1963
- Original archive: https://news-web.php.net/php.internals/1963
- Started by Moriyoshi Koizumi on 2003-05-24T01:56:25+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

---

## #1963 — Moriyoshi Koizumi — 2003-05-24T01:56:25+00:00

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

Hello,

The attached patch is the quick fix for bug #17115. The cause of this 
problem is that the hashtable that holds static variables of the lambda 
function being generated is wrongly destroyed in zend_hash_del() right 
after the call of zend_hash_add(), as function_add_ref() virtually 
copy-constructs the static variables as well as simply incrementing the 
reference count of op_array.

Moriyoshi
