dl() usage for cli php5
| From: | Alan Knowles | Date: | Sat, 01 Jan 2005 07:11:32 +0000 |
| Subject: | dl() usage for cli php5 | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-14256@lists.php.net to get a copy of this message | ||
I'm getting segfaults at shutdown when using dl() with my extension - works perfectly if it's in php.ini (or if I run when compiled with --enable-debug
a) is this a known issue?
b) is it fixable for cli usage?
I'm guessing this is because modules are destroyed before the objects that they created are . looking at main/main.c :php_request_shutdown_for_hook() - a temporary fix may be to check for sapi == cli and skip the zend_deactivate_modules, and add it to the sapi_deactivate_cli..
Regards
Alan