Bug #73148 [Nab]: php.exe cannot execute binary file exec format error
Edit report at https://bugs.php.net/bug.php?id=73148&edit=1
ID: 73148
Updated by: cmb@php.net
Reported by: eposta at omeroztat dot com
Summary: php.exe cannot execute binary file exec format error
Status: Not a bug
Type: Bug
Package: CGI/CLI related
Operating System: Windows XP
PHP Version: 5.6.26
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
The "Installation on Windows systems" man page says[1]:
| If you are looking for information about older systems, such as
| Windows XP, 2003, 98 or Apache 1.x, see the Legacy Info section.
The "legacy info section" notes:
> Windows XP/2003 are no longer supported as of PHP 5.5.0.
It is quite possible that some of the translations are out-dated.
If that is the case, please file a respective bug report.
[1] <http://php.net/manual/en/install.windows.php>
Previous Comments:
------------------------------------------------------------------------
[2016-09-23 16:32:31] eposta at omeroztat dot com
Thank you for the answer. It would be better if a note like "Vista+ are supported" was
included in Windows section. I mean I could not see any remark saying that Windows XP was not
supported. Thanks.
------------------------------------------------------------------------
[2016-09-23 14:48:58] cmb@php.net
Windows XP is no longer supported as of PHP 5.5.0. I suggest to
update your OS.
------------------------------------------------------------------------
[2016-09-23 14:32:32] eposta at omeroztat dot com
Description:
------------
I've downloaded the win32 version of php-5.6.26 to use it as a CLI on my Windows XP (32bit)
laptop with the ConEmu terminal emulator. However it keeps on giving "cannot execute binary
file exec format error" (I've translated this message from the Turkish language)
I've installed the VC11 redistributable packages just to make sure it's not a Windows
problem.
It doesn't matter if I put the php directory directly under C:\ (e.g. C:\php-5.6.26) php.exe -v
keeps on giving exactly the same error.
If I attempt to debug it with gdb, it says "Error creating process" whether I try the gdb
under C:\ or C:\Documents and Settings doesn't matter.
If I try thread safe version of php, again the same error.
Comparison: If I try to use my older (5.2.6) version of php on the same laptop and on the same
terminal emulator, it works perfectly.
Test script:
---------------
$ cd /c/Program\ Files/php
$ ls -l
total 8
drwxr-xr-x 1 foo None 0 Eyl 23 16:42 php-5.2.6
drwxr-xr-x 1 foo None 0 Eyl 23 16:29 php-5.6.26
$ ./php-5.6.26/php.exe -v
sh: ./php-5.6.26/php.exe: cannot execute binary file exec format error
$ ./php-5.2.6/php.exe -v
PHP 5.2.6 (cli) (built: May 2 2008 18:02:07)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73148&edit=1
Thread (4 messages)