Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi for PHP/IDE/Startup/Shutdown    [ Add a report in this area ]  
Report #:  104859   Status: Closed
Manual changes to php.ini reset again after IDE shutdown
Project:  HTML5 Builder Build #:  4.3.0.1655
Version:    4.3 Submitted By:   John Schmidt
Report Type:  Basic functionality failure Date Reported:  4/12/2012 7:59:29 AM
Severity:    Critical / Show Stopper Last Updated: 4/13/2012 8:18:25 AM
Platform:    All versions Internal Tracking #:  
Resolution: Test Case Error (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
Coming back to my previous report #104678: This happens because manual changes e.g. setting of the default charset in the php.ini are reset by the IDE after shut down. This is due to the fact that the registry setting is not modified as set in the php.ini. The entry is following:

HKEY_CURRENT_USER\Software\Embarcadero\RadPHP\4.0\PHP Charset\OutputCharset

After having changed this entry the php.ini remaines as is.
Steps to Reproduce:
1. Change the default charset in the php.ini to utf-8.
2. Start the IDE
3. Shut down the IDE
4. Check the php.ini: The defautl charset hase been reset to the original value.
5. Edit the registry entry at "HKEY_CURRENT_USER\Software\Embarcadero\RadPHP\4.0\PHP Charset\OutputCharset" and set the value to "utf-8".
6. Repeat the process again: Now the encoding has not been changed any more.
Workarounds
None
Attachment
None
Comments

Tomohiro Takahashi at 4/12/2012 8:33:24 PM -
> 1. Change the default charset in the php.ini to utf-8.
Which php.ini file did you edit?
Did you edit this one directly, C:\Users\[user]\AppData\Roaming\Embarcadero\RadPHP\4.0\php\php.ini ?
If so, you must change the parameter via [Tools] | [Options...] | [PHP] | [Default Charset], then reststart IDE.
The php.ini file is overwritten by using '...\4.0\php\php.ini.template' when IDE starts.

John Schmidt at 4/13/2012 8:01:47 AM -
Thanks, this works!

Server Response from: ETNACODE01