Req #52348 [Csd]: Ability to detect zend multibyte mode at runtime
| From: | cataphract@php.net | Date: | Thu, 25 Nov 2010 14:55:47 +0000 |
| Subject: | Req #52348 [Csd]: Ability to detect zend multibyte mode at runtime | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-156444@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52348&edit=1
ID: 52348
Updated by: cataphract@php.net
Reported by: php-bugs at thequod dot de
Summary: Ability to detect zend multibyte mode at runtime
Status: Closed
Type: Feature/Change Request
Package: PHP options/info functions
PHP Version: 5.3.3RC3
Assigned To: kalle
Block user comment: N
Private report: N
New Comment:
Someone on internals requested I added this here:
«The problem in 5.3 is not as grave as the bug report paints it, you
don't need to sniff phpinfo() to see whether PHP was compiled with
--enable-zend-multibyte. You can use, for instance:
key_exists("detect_unicode", ini_get_all())»
Previous Comments:
------------------------------------------------------------------------
[2010-11-11 18:19:33] php-bugs at thequod dot de
Thanks a lot!
------------------------------------------------------------------------
[2010-11-11 02:44:17] Kalle@php.net
Added, this will be available in PHP 5.3.4+ ;-)
------------------------------------------------------------------------
[2010-11-11 02:43:55] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=305266
Log: Added new constant; ZEND_MULTIBYTE to check whether PHP was
compiled using --enable-zend-multibyte or not instead of sniffing
phpinfo() (FR #52348)
------------------------------------------------------------------------
[2010-10-23 19:14:02] kalle@php.net
Done, I can add such a constant to the 5.3 branch and trunk sometime
this weekend
------------------------------------------------------------------------
[2010-10-23 17:46:17] php-bugs at thequod dot de
Thank you!
Can you forward / re-assign the bug maybe so that it is possible to
detect this during runtime, please?
Please leave a short reply, if you won't do it, so I will do this.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=52348
--
Edit this bug report at http://bugs.php.net/bug.php?id=52348&edit=1