|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #2541 dl(string name) should not require the file extension for the module name
Submitted: 1999-10-16 03:43 UTC Modified: 2002-08-17 15:53 UTC
From: yves at realnames dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.0 OS: Linux 2.2.12 / Windows NT
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
5 + 44 = ?
Subscribe to this entry?

 [1999-10-16 03:43 UTC] yves at realnames dot 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:


and have it be on Linux and Solaris for example, and extension.dll on Windows.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-10 13:50 UTC]
refiling against 4.0. PEAR may end up needing something similar when it supports extensions with non-php components.
 [2001-02-11 13:18 UTC]
dl() doesn't work in multithreaded servers anyway (pretty much all win32 webservers)
 [2002-08-17 15:53 UTC]
Hmm... but the extensions in *nix systems mean nothing.
I can rename my module to
Bogusifying, baby.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 19 10:03:36 2021 UTC