Backport #484
closed
OpenSSL::Config does not freeze correctly
Added by premchai21 (Drake Wilson) about 16 years ago.
Updated over 13 years ago.
Description
=begin
#!/usr/bin/ruby
require 'openssl'
c = OpenSSL::Config.new
c['foo'] = [['key', 'value']]
c.freeze
c['foo'] = [['key', 'wrong']]
p c['foo']['key']
# Prints "wrong"
=end
=begin
Amazing. The preview showed me a completely wrong rendition. Let's try that again.
#!/usr/bin/ruby
require 'openssl'
c = OpenSSL::Config.new
c['foo'] = [ ['key', 'value'] ]
c.freeze
c['foo'] = [ ['key', 'wrong'] ]
p c['foo']['key'] # Prints "wrong"
=end
- Assignee set to gotoyuzo (GOTOU Yuuzou)
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
Applied in changeset r25069.
=end
- Category set to lib
- Target version set to Ruby 1.8.8
- ruby -v set to -
=begin
Fixed also for Ruby 1.9 in r25017
=end
- Status changed from Closed to Assigned
- Assignee changed from gotoyuzo (GOTOU Yuuzou) to wyhaines (Kirk Haines)
=begin
1.8.6 has this issue, meseems.
=end
- Status changed from Assigned to Closed
=begin
This issue was solved with changeset r28002.
Drake, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0