Bug #73148 [NEW]: php.exe cannot execute binary file exec format error
From: eposta at omeroztat dot com
Operating system: Windows XP
PHP version: 5.6.26
Package: CGI/CLI related
Bug Type: Bug
Bug description:php.exe cannot execute binary file exec format error
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 bug report at https://bugs.php.net/bug.php?id=73148&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73148&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73148&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73148&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73148&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73148&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73148&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73148&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73148&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73148&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73148&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73148&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73148&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73148&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73148&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73148&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73148&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73148&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73148&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73148&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73148&r=mysqlcfg
Thread (4 messages)
- eposta at omeroztat dot com