php.net |  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: yves at realnames dot com
New email:
PHP Version: OS:

 

 [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:

dl("extension")

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-10 13:50 UTC] jimw@php.net
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] cynic@php.net
dl() doesn't work in multithreaded servers anyway (pretty much all win32 webservers)
 [2002-08-17 15:53 UTC] tal@php.net
Hmm... but the extensions in *nix systems mean nothing.
I can rename my module to module.foo.
Bogusifying, baby.

-Tal
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 18:01:28 2024 UTC