# handle member in zend_module_entry is not getting populated

- Thread: https://externals.io/message/10931
- Original archive: https://news-web.php.net/php.internals/10931
- Started by Kamesh Jayachandran on 2004-07-06T15:58:20+00:00
- Messages: 2
- 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

---

## #10931 — Kamesh Jayachandran — 2004-07-06T15:58:20+00:00

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

Hi All,
In Zend/zend_API.c 
function module_destructor
There is a code to do a dlclose on the dlopened handle.
The code looks like following,
	if (module->handle) {
		dlclose(module->handle);
	}

Unfortunately this module->handle is always 0 which causes this symbols
not getting unloaded.(Even for dynamically loaded PHP extnsion also
handle is 0)
Till version 1.91 of ext/standard/dl.c this handle member was getting
populated.
From 1.92 onwards this stopped happening..

With regards
Kamesh Jayachandran

---

## #10933 — Marcus Boerger — 2004-07-06T18:49:17+00:00

URL: https://externals.io/message/10931#10933 · In reply to: #10931

Hello Kamesh,

Tuesday, July 6, 2004, 5:58:20 PM, you wrote:

> Hi All,
> In Zend/zend_API.c 
> function module_destructor
> There is a code to do a dlclose on the dlopened handle.
> The code looks like following,
> 	if (module->handle) {
> 		dlclose(module->handle);
> 	}

> Unfortunately this module->handle is always 0 which causes this symbols
> not getting unloaded.(Even for dynamically loaded PHP extnsion also
> handle is 0)
> Till version 1.91 of ext/standard/dl.c this handle member was getting
> populated.
> From 1.92 onwards this stopped happening..

Committed, Thanks for noticing :-)

-- 
Best regards,
 Marcus                            mailto:helly@php.net
