SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast Mr Toner's Avatar
    Join Date
    Sep 2003
    Location
    Southern California, USA
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool Loading PHP Extensions

    In PHP 5.2.5 (I believe), a change was made to dl() that requires extensions be installed from the extensions directory. I can't find any info on php.net; is anyone here familiar with the specifics of that change that could direct me to some documentation?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,705
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    You might find some useful nuggets of info by digging through the Migrating from PHP 5.2.x to PHP 5.3.x documentation.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Enthusiast Mr Toner's Avatar
    Join Date
    Sep 2003
    Location
    Southern California, USA
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I see that dl() is deprecated in 5.3 (and it's disabled by default), but going to the change logs for 5.2.5 and beyond I don't see the new requirement. Odd. You'd think it would be mentioned.

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,705
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    Hmm.

    The Changes in SAPI modules page says "The dl() function is now disabled by default, and is now available only under the CLI, CGI, and embed SAPIs."

    The changelog for dl() also notes that the extension loading directives should be used instead.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  5. #5
    SitePoint Enthusiast Mr Toner's Avatar
    Join Date
    Sep 2003
    Location
    Southern California, USA
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yup, I've seen all that, but nothing that says that extensions must be loaded from extension_dir as of 5.2.5. However, extensions like ionCube and SourceGuardian must be installed there for 5.2.5+ -- and I'm just wanting to confirm the change. (I want to test for the appropriate PHP version when someone is using my scripts.)

  6. #6
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,705
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Mr Toner View Post
    Yup, I've seen all that, but nothing that says that extensions must be loaded from extension_dir as of 5.2.5.
    It's in these PHP developer meeting notes (Paris, November 11th and 12th, 2005) where the drive to upgrade extensions seems to originate.

    There were also some 5.2.5 bug fixes to do with extension_dir that may have helped too.

    As you're no doubt finding, it's tricky at best to wade through all of the info out there to narrow down to where such ideas began.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  7. #7
    SitePoint Enthusiast Mr Toner's Avatar
    Join Date
    Sep 2003
    Location
    Southern California, USA
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah! I'd seen the bug fixes several times, but it didn't click for me before. Since dl() was changed in 5.2.5 to accept only filenames, there's no way to specify a path to the user's filespace. Thus, dl() will always refer to files in extension_dir.

    Thanks for the nudge in the right area.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •