[PATCH] unicode_semantics "off" evaluates to true

From: Date: Mon, 13 Feb 2006 09:07:58 +0000
Subject: [PATCH] unicode_semantics "off" evaluates to true
Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I've started cautiously poking PHP 6 so I can keep an eye on how the Unicode
support is going and see what kind of work we'll eventually need to do to port
MediaWiki for it...

One thing I noticed right off is that this test doesn't do what you'd expect if
you didn't copy in one of the sample php.ini files:

if(ini_get("unicode_semantics")) { /* bla bla */ }

The default value for unicode_semantics is the literal string "off", which
evaluates to true although the setting really is off.

Attached is a one-line patch which sets it to "0" and uses the macro
STD_ZEND_INI_BOOLEAN, to match with other config settings I saw in there. This
keeps it off by default but makes the ini_get evaluate to the expected false in
a boolean test.

- -- brion vibber (brion @ pobox.com)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD8ExuwRnhpk1wk44RAir6AKCPFd4tVpGJ8a0a/L2COvrQoiKnqQCgqAkY
h5b6AbfY40TfQKPnRHO7xv0=
=P8dd
-----END PGP SIGNATURE-----


Thread (5 messages)

« previous php.internals (#21852) next »