Re: [RFC] Change var_dump back?
| From: | Geoffrey Sneddon | Date: | Sun, 25 May 2008 20:29:54 +0000 |
| Subject: | Re: [RFC] Change var_dump back? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37871@lists.php.net to get a copy of this message | ||
On 25 May 2008, at 19:28, Marcus Boerger wrote:
now that we got rid of the unicode.semantics switch, should we change var_dump("foo") from showing 'unicode(3) "foo"' back to 'string(3) "foo"' as it is the new string type and change the other output to show 'binary' which it is now?I'd say that var_dump("foo") should give 'unicode(3) "foo"' and var_dump(b"foo") should give 'binary(3) "foo"'. I see no reason not to give the explicit type — why would anything rely on this for backwards compatibility? -- Geoffrey Sneddon <http://gsnedders.com/>