php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67157 x64 win php 5.5.11 is really x86
Submitted: 2014-04-30 11:56 UTC Modified: 2014-04-30 12:18 UTC
From: jmichae3 at yahoo dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.5.11 OS: win7ult64sp1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jmichae3 at yahoo dot com
New email:
PHP Version: OS:

 

 [2014-04-30 11:56 UTC] jmichae3 at yahoo dot com
Description:
------------
php.exe for windows, php-5.5.11-Win32-VC11-x86.zip is actually fails with a 64-bit redst only. I had to learn with VC++ that the compiler targets  ar eunder different dirs. i will give you a clue that arm is not a platform for for compilers.
see http://jesusnjim.com/programming/compilers/ms-vs.html#which-cl

Test script:
---------------
I extracted php-5.5.11-Win32-VC11-x86.zip
I think I had maybe both redists installed and everything was working fine. I must have, because this was working before. I uninstalled them both and reinstalled the redist for VS2012u4x64 ONLY.
ran php


Expected result:
----------------
64-bit exe that's actually 64-bit.

the different dirs under the VC bin directory are the different target compilers. the left side of _ is the host, the right side is the target.
like x86_amd64 is an x86 hosted compiler (compiler made for x86) but generates code for amd64. and /Qpar /volatile:ms parallelizes your loops where possible (makes them run 4-8x faster).

Actual result:
--------------
I got an 'msvcr110.dll is missing' error.
i installed the x86 redist.
then php would run.
this tells me you used the 32-bit-target compiler when you wanted to target amd64. OR, the redists got swapped at microsoft (it's possible, an msdn guy has the same problem) 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-04-30 12:18 UTC] pajoye@php.net
-Status: Open +Status: Not a bug
 [2014-04-30 12:18 UTC] pajoye@php.net
php-5.5.11-Win32-VC11-x86.zip

the x86 part means it is x86 not x64.

Use the x64 builds available here too:

http://windows.php.net/download/
 [2014-04-30 18:50 UTC] jmichae3 at yahioo dot com
did further testing, this time got the right zip :-), and php -r "echo 'wow';" worked great, no error dialog.
I got fuzzy-eyed looking at the list of same-looking exe's.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 17:01:29 2024 UTC