php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39913 Installer does not work on x64
Submitted: 2006-12-20 21:13 UTC Modified: 2008-08-22 18:05 UTC
From: torsten at vip dot cybercity dot dk Assigned: jmertic (profile)
Status: Closed Package: Windows Installer
PHP Version: 5.2.0 OS: Windows XP Professional x64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: torsten at vip dot cybercity dot dk
New email:
PHP Version: OS:

 

 [2006-12-20 21:13 UTC] torsten at vip dot cybercity dot dk
Description:
------------
When installing on x64, the default install path is \Program Files (x86)\PHP. After installation, PHP fails with a syntax error because the value of "extension_dir" is not quoted.

Uninstall and reinstall, being careful to select "D:\Program Files\PHP" as install path. When you get to the "Choose Items to Install" screen, the path still appears as "\Program Files (x86)\PHP". Click Browse, navigate to "\Program Files\PHP". The dialog still shows the "(x86)" path, and indeed the installation is performed to that path.

Moved installation to desired path, hacked the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PHP\InstallDir. When invoking php.exe from the command line, I get

PHP Warning:  PHP Startup: Unable to load dynamic library 'D:\Program Files\PHP\
ext\php_exif.dll' - The specified module could not be found.
 in Unknown on line 0

etc., although the file is there.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-20 21:29 UTC] tony2001@php.net
mbstring extension is required by exif, see more information here: http://php.net/exif
 [2006-12-20 21:55 UTC] judas dot iscariote at gmail dot com
>mbstring extension is required by exif, see more information >here:
>http://php.net/exif

if so, there is no zend_module_dep defined on exif, so the user can be hinted on the logs..

"Cannot load module exif because required module mbstring is not loaded"
 [2006-12-21 12:42 UTC] jmertic@php.net
Missing quotes fixed in CVS (Bug #39716).

I cannot replicate the changing install path on Windows XP Professional ( non-x64 ). I don't have an x64 bit version to test on, but it sounds like something specific to that version.

It seems the error message you get is from PHP thinking it's getting installed in one place, but Windows thinking another. Changing the extension_dir directive to the correct path should fix it.

mbstring is automatically installed when choosing to install exif currently.
 [2006-12-22 22:29 UTC] torsten at vip dot cybercity dot dk
OK, thanks for looking into this. I'll check out 5.2.1 once that gets out.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 04:01:38 2024 UTC