[#86787] [Ruby trunk Feature#14723] [WIP] sleepy GC — ko1@...

Issue #14723 has been updated by ko1 (Koichi Sasada).

13 messages 2018/05/01
[#86790] Re: [Ruby trunk Feature#14723] [WIP] sleepy GC — Eric Wong <normalperson@...> 2018/05/01

ko1@atdot.net wrote:

[#87095] [Ruby trunk Feature#14767] [PATCH] gc.c: use monotonic counters for objspace_malloc_increase — ko1@...

Issue #14767 has been updated by ko1 (Koichi Sasada).

9 messages 2018/05/17

[ruby-core:87292] [Ruby trunk Bug#14793] Hash returned from CGI.parse has [] as default value

From: andrew@...
Date: 2018-05-29 05:49:17 UTC
List: ruby-core #87292
Issue #14793 has been updated by avit (Andrew Vit).


My mistake, it looks like all CGI values are always returned as arrays:

~~~
CGI.parse("x=y")
#=> {"x"=>["y"]}
~~~

Please close.

----------------------------------------
Bug #14793: Hash returned from CGI.parse has [] as default value
https://bugs.ruby-lang.org/issues/14793#change-72288

* Author: avit (Andrew Vit)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
Is there a valid reason for this behaviour? It looks like a bug to me:

~~~
require 'cgi'

params = CGI.parse("")
params["x"]
#=> []
~~~

(Expected nil)

I looked at history and it looks like it has been there from the very beginning of cgi.rb.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next