Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8469113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:07:58+00:00 2026-06-10T16:07:58+00:00

I am trying to install a 3rd party PHP extension (.so) into PHP 5.3.6-13

  • 0

I am trying to install a 3rd party PHP extension (.so) into PHP 5.3.6-13 on Ubuntu 11.10 and use it in a web environment. The vendor’s documentation suggests using the dl() function to dynamically load the library.

When I try their example code, I find the dl() isn’t available (Fatal error: call to undefined function dl()) as dl() function was deprecated in PHP 5.3. But there is an enable_dl config rule in php.ini, and other sources say that I should be able to use dl() simply by changing the php.ini variables (enable_dl=On, safe_mode=Off, not listed in disable_functions) and restarting apache. When I try that, dl() is still undefined.

So I dig into the PHP 5.3 SAPI change notes and find this:

The dl() function is now disabled by default, and is now available only under the CLI, CGI, and embed SAPIs.

Does this mean that dl() is not only “disabled by default” in PHP 5.3+ using a web SAPI, but actually “completely unavailable no matter what I do even with modifying PHP config options”? That’s what it appears to me to be since I can’t get dl() to work no matter what I tweak.

To clarify: I can modify php.ini and load the extension directly, so this is not a question about how to get the extension working, rather about the function dl() and its state in PHP 5.3+. If it’s no longer available under any circumstance I want to be able to tell the vendor, so they can update their documentation. But if it should be available and I’m just missing something, I’d like to hear that too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T16:08:00+00:00Added an answer on June 10, 2026 at 4:08 pm

    This function has been removed from some SAPIs in PHP 5.3. — dl()

    So if you have the ini setting enable_dl set to on and it still does not work, then it is disabled in the SAPI you use.

    If you wonder which SAPIs are meant, the changelog on that same page is more detailed:

    The only SAPIs that allow dl() are CLI and Embed.

    You are not using any of these two. Instead use the Extension Loading Directives and you’re fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to install the php-rsync module using pecl and I'm receiving the following errors:
I am trying to install a 3rd party package and I get a compile
Trying to install and use ruby 1.9.2 on my server. Running Ubuntu 11.10. $
I've been trying to find the so-called lib folder, to install some 3rd-party tools
Trying to install Symfony 1.4.11 application on Ubutnu Server + Nginx + php-fpm Nginx
Trying to install Scrapy on Mac OSX 10.6 using this guide : When running
while trying to install composer.phar through command line , got an error PHP Fatal
I'm trying load a 3rd party DLL but I get an error when attempting
I'm trying to deploy the snapshot version of a 3rd party library to our
Trying to install Cython on a small VPS running Ubuntu Server. Did sudo apt-get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.