Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out how to handle 32 bit PHP on 64 bit Windows #5

Open
rvtraveller opened this issue Apr 4, 2016 · 1 comment
Open

Figure out how to handle 32 bit PHP on 64 bit Windows #5

rvtraveller opened this issue Apr 4, 2016 · 1 comment
Assignees

Comments

@rvtraveller
Copy link
Collaborator

#4 added support for using HeidiSQL on Windows. Windows doesn't have an open command like Mac does and given how Windows tracks executables, we actually need to know the full file path to Heidi in order to run it. Right now, that is accomplished by hard coding possible Program Files folders and checking each of them. Ideally, we would pull the Program Files path from an environment variable (PROGRAMFILES and PROGRAMFILES(X86). When I tried that in #4 it didn't produce the right results as both environment variables pointed to the 32 bit folders.

This is because I'm running a 32 bit version of PHP on a 64 bit machine (testable by running php -r var_dump(PHP_INT_SIZE); and seeing if it is 4 or 8. We should try and figure out a long term solution for this so PHP sees both the 32 bit and 64 bit directories regardless of PHP version.

@rvtraveller
Copy link
Collaborator Author

Here are some good references with what I believe to be a possible solution:

http://stackoverflow.com/a/9608782
http://stackoverflow.com/a/27720921

@rvtraveller rvtraveller self-assigned this Apr 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant