Check the compatibility of a dll file
In order to run some administrative commands related to the development and build of your extension, you will need a command prompt with the context of Visual Studio. In this tutorial we'll build the APC extension for PHP 5.3.8, so in our case we'll need to work with Visual Studio 2008 SP1 for visual c++ 9. Otherwise you will face weird exceptions during the configuration of the build: Saving configure options to Ĭ:\php-src\configure.js(1817, 9) Microsoft JScript runtime error: 'length' is null or not an object Knowing this, if you are sure that you have the correct version you shouldn't face any trouble while you compile the extension.
![check the compatibility of a dll file check the compatibility of a dll file](https://3.bp.blogspot.com/-ZPFG0mMGjh8/V1gPZLibuwI/AAAAAAAANUQ/L37Cru79ZPEJSDVSKp35Jva4nmv0AmHQQCKgB/s1600/1.png)
So to make it easy to understand, if you are willing to compile an extension for PHP 7, you will need the source code of PHP 7, the code of the extension as well and at least Visual Studio 2012 assuming that you want to compile it for PHP 7.0, because if you want it for PHP 7.1, then you would need at least Visual Studio 2015.
#Check the compatibility of a dll file .dll#
![check the compatibility of a dll file check the compatibility of a dll file](https://cdn.nerdschalk.com/wp-content/uploads/2021/10/windows-11-bypass-requirements-2-ways-21.png)
Visual Studio: the version needs to provide some compatibility with the accepted versions of Visual C++, see the first point for more information.
#Check the compatibility of a dll file how to#
That's why today i'm going to show you how to compile a PHP extension from its source code from scratch in a Windows environment, specifically with the APC library and PHP 5.3.8. For Linux, the process can be pretty easy with PECL, however in Window this was a real problem. After working on a very old project based on PHP 5.3, where the APC library was required to make it work, i knew how difficult is to find the APC extension to make it work on the Windows platform.