Bug #73148 [Opn->Nab]: php.exe cannot execute binary file exec format error

From: Date: Fri, 23 Sep 2016 14:48:59 +0000
Subject: Bug #73148 [Opn->Nab]: php.exe cannot execute binary file exec format error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204210@lists.php.net to get a copy of this message
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:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            CGI/CLI related
 Operating System:   Windows XP
 PHP Version:        5.6.26
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Windows XP is no longer supported as of PHP 5.5.0. I suggest to
update your OS.


Previous Comments:
------------------------------------------------------------------------
[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)

« previous php.bugs (#204210) next »