What I'd normally do with a new PHP drop is simply set up a new directory for it, stick the files in it, do a diff on the new version's php.ini-development and my own php.ini from my current working version, and create a new php.ini based on the two. I can't see why one would want a non thread-safe version? But anyway), The file is php-7.0.0alpha1-Win32-VC14-圆4.zip. I grabbed the 圆4 thread-safe version (I really don't get the whole "thread-safe" vs "non-thread-safe" version thing. I downloaded the PHP 7 alpha (I'm trying for keyword relevance here, so sorry for the repetition of "PHP 7") from the official drop site.
I say this because it's significant in my troubleshooting. I mostly run my PHP stuff via a browser as most of my work is web-related, and given my CFML background, I'm just used to working through a browser. Right, so first things first: I'm running Windows 8.1, 64-bit, and I'm running Apache 2.4.10.
So if I take nothing else away from this: IT issues are best solved in the pub with a Guinness.
Now I've migrated to the pub, and I had it cracked within about 300ml of my first pint. I will start by saying this seemed like a right pain in the arse to sort out, but on reflection my entire efforts to get it working were spread over 30min in the LHR/T2 last night where the focus was mostly on the pint in front of me (lovely lovely Wild River from Fullers), and about another hour of swearing this afternoon, perched on my bed in the B&B I'm in. So I presumed getting the PHP 7 alpha running would be a matter of downloading, and replacing the files in my PHP/7 dir with the new one. Getting PHP 7 working stand-alone was a piece of piss: download, unzip, run (from the command line) or with the additional step of using the PHP7 Apache module instead of the PHP 5 one. That was a bit of horsing about, but mostly because I was getting both versions working at once. You might remember I got one of the dev releases of PHP 7 running the other week: " Getting PHP 5.x & 7-dev running on Windows/Apache". Especially for someone like me who's not really that au fait with PHP. Getting PHP 7 alpha (released yesterday: " PHP 7.0.0 Alpha 1 Released") was not as straight forward as getting the dev releases of PHP 7 working. In particular, they stress that this shouldn’t be applied to background processes that remain running, or your battery life will be noticeably affected.I'm mostly writing this in case anyone else has the issues I had with this. Microsoft warns that this option will cause increased power usage, so you shouldn’t apply this option to unaffected games or other programs. In the elevated Command Prompt window, type the following command and press Enter to apply your compatibility settings: To do this, press the Windows key to access the Start screen, type Command Prompt, right-click the Command Prompt shortcut that appears, and select Run as administrator. Next, we’ll need an elevated Command Prompt window. You can now repeat this process to add every affected game you have. Type the following text into the box and press Enter: Next, right-click the value you just created and select Modify. For example, if the game was located at C:\Program Files (x86)\Game\Engine.exe, you’d just type the following value:
Right-click the Layers key, point to New, click String Value, type the full path of the game’s executable file, and press Enter. You’ll now need to create a new registry entry for your game. If it doesn’t, right-click the AppCompatFlags key, point to New, select Key, type Layers, and press Enter to create it. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers To get started, press Windows Key + R to open the Run dialog, type regedit, and press Enter.īrowse to the following registry key, or folder:
Note that you must have the patch above installed for this to work. You can apply Microsoft’s fix to any affected game from the registry editor. Microsoft advises game developers to do this themselves so their users won’t have to, but many games may never be updated with this fix. If you have a less-popular game with this problem, you’ll need to apply the compatibility option to the game on your own. Two, it applies that compatibility flag to some of the most popular games affected by this problem. One, it creates a new type of compatibility flag in Windows. Scroll down and look at the System type line. If you’re not sure which version of Windows you’re using, press the Windows key to access the Start screen, type System, and click the System shortcut.