php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73148 php.exe cannot execute binary file exec format error
Submitted: 2016-09-23 14:32 UTC Modified: 2016-09-23 16:44 UTC
From: eposta at omeroztat dot com Assigned: cmb (profile)
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.6.26 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: eposta at omeroztat dot com
New email:
PHP Version: OS:

 

 [2016-09-23 14:32 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-09-23 14:48 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2016-09-23 14:48 UTC] cmb@php.net
Windows XP is no longer supported as of PHP 5.5.0. I suggest to
update your OS.
 [2016-09-23 16:32 UTC] 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 16:44 UTC] cmb@php.net
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>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 19:01:31 2024 UTC