Skip to content

Commit ac2b4fa

Browse files
committed
Documentation and tweaks for release
1 parent b3abbe4 commit ac2b4fa

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## v4.8.0
2-
Not yet released
2+
2017-11-11
33

44
* Changed error reporting by forcing all errors to stderr with ini overrides.
55
* Changed detection of old PHP versions for better error handling.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2012-2016 John Stevenson
1+
Copyright (c) 2012-2017 John Stevenson
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The Windows installer for the [Composer][composer] PHP Dependency Manager. [**Do
55
## Contents
66
* [About](#About)
77
* [Details](#Details)
8+
* [Php Ini File](#Php-Ini_File)
89
* [Troubleshooting](#Troubleshooting)
910
* [Uninstalling](#Uninstalling)
1011
* [Install Locations](#Locations)
@@ -39,7 +40,7 @@ searches common locations on your computer and presents you with its findings. I
3940
will display this value. If not, or you want to choose a different PHP, you must select from the list or hunt around manually.
4041

4142
The installer will then check that PHP and your path are set up correctly. If it finds any errors it will give you
42-
the chance to fix them. It will also offer to either create or modify the `php.ini` file if required settings do not exist.
43+
the chance to fix them. It will also offer to either create or modify the `php.ini` file if required settings do not exist. See [Php Ini File](#Php-Ini-File) for more information.
4344

4445
Next, the installer will ask if you need a proxy server to connect to the internet. If it finds any values in your
4546
*Internet Settings* or your environment, then the proxy url will be displayed.
@@ -48,6 +49,15 @@ After you have reviewed and accepted your settings, the installer will download
4849
environment has been changed, it is important to close your current terminal and open a new one so that the changes get
4950
loaded. The installer will remind you if this is the case.
5051

52+
<a name="Php-Ini-File"></a>
53+
## Php Ini File
54+
Composer-Setup will either create a new `php.ini` or modify an existing file if any settings needed by Composer are missing:
55+
56+
* `allow_url_fopen` set to on
57+
* `open_ssl` and `mbstring` extensions enabled
58+
59+
When creating a new file, the _php.ini-production_ file is used with `extension_dir` and `date.timezone` values appropriately set. When modifying an existing file, a backup is created in the same directory, named `php.ini~orig`.
60+
5161
<a name="Troubleshooting"></a>
5262
## Troubleshooting
5363
Composer-Setup creates a log file, which may be useful to review if you experience any issues. This is stored in your

src/composer.iss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,9 +1376,10 @@ begin
13761376
Result := '';
13771377
UintCode := ExitCode;
13781378
Suffix := ' Try reinstalling the program to fix this problem.';
1379+
AddStr(Suffix, ' Make sure you have installed the appropriate Visual C++ Redistributable.');
13791380
13801381
if ExitCode > 0 then
1381-
Result := SysErrorMessage(ExitCode)
1382+
Result := Format('Reported error: %s', [SysErrorMessage(ExitCode)])
13821383
else if UintCode = $C0000135 then
13831384
{STATUS_DLL_NOT_FOUND}
13841385
Result := 'The program cannot start because a dll was not found.' + Suffix;

0 commit comments

Comments
 (0)