SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Oct 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Need recommendation for how to develop PHP extension

    I developed a PHP encryption extension, and this is my first PHP extension developed, so not so experienced with PHP.
    I found a problem with the portability of the extension: with my many years of UNIX programming experience, this is the first time I found that when an extension or program binary is developed, the PHP extension module can only work with the same module API version, means the module built on 5.1 will not work on 5.2. So if I need to distribute the module, I have to build module for each version of PHP on each platform.
    Does anyone have created a standalone PHP extension and find a way how to manage this situation?

  2. #2
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, for Windows, you have to build the extension for each PHP version (and Visual C++ version too)...

    For other platforms, let users build it themselves. Or, if you don't want them to have the source, then more multiple builds!
    - Matt ** Ignore old signature for now... **
    Dr.BB - Highly optimized to be 2-3x faster than the "Big 3."
    "Do not enclose numeric values in quotes -- that is very non-standard and will only work on MySQL." - MattR


Tags for this Thread

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
  •