#2541 [Opn->Bgs]: dl(string name) should not require the file extension for the module name

From: Date: Sat, 17 Aug 2002 19:53:38 +0000
Subject: #2541 [Opn->Bgs]: dl(string name) should not require the file extension for the module name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17148@lists.php.net to get a copy of this message
ID: 2541 Updated by: tal@php.net Reported By: yves@realnames.com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Linux 2.2.12 / Windows NT PHP Version: 4.0 New Comment: Hmm... but the extensions in *nix systems mean nothing. I can rename my module to module.foo. Bogusifying, baby. -Tal Previous Comments: ------------------------------------------------------------------------ [2001-02-11 13:18:00] cynic@php.net dl() doesn't work in multithreaded servers anyway (pretty much all win32 webservers) ------------------------------------------------------------------------ [2001-02-10 13:50:22] jimw@php.net refiling against 4.0. PEAR may end up needing something similar when it supports extensions with non-php components. ------------------------------------------------------------------------ [1999-10-16 03:43:42] yves@realnames.com The subject says it all. Since dl() requires the module filename with its extension, and since extensions differ on platforms, it makes writing scripts using dl() a pain. If PHP would check for the name as given, and then with a a system-specific extension, one could write: dl("extension") and have it be extension.so on Linux and Solaris for example, and extension.dll on Windows. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=2541&edit=1

« previous php.bugs (#17148) next »