#35412 [NoF->Csd]: go-pear.bat fails if mbstring is configured at php.ini
| From: | mauroi at digbang dot com | Date: | Sun, 08 Jan 2006 14:55:46 +0000 |
| Subject: | #35412 [NoF->Csd]: go-pear.bat fails if mbstring is configured at php.ini | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-91657@lists.php.net to get a copy of this message | ||
ID: 35412
User updated by: mauroi at digbang dot com
Reported By: mauroi at digbang dot com
-Status: No Feedback
+Status: Closed
Bug Type: *General Issues
Operating System: win32
PHP Version: 5.1.0
Assigned To: cellog
New Comment:
Closed
Previous Comments:
------------------------------------------------------------------------
[2005-12-06 01:00:08] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2005-11-28 01:43:06] cellog@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
when you do this, please grab go-pear.phar directly from
http://pear.php.net/go-pear.phar - and please do this
no sooner than 1
hour after this message, as pear.php.net is synced once per hour with
cvs
------------------------------------------------------------------------
[2005-11-28 01:38:01] cellog@php.net
I think I'll opt for door #3 which is to insert:
if (function_exists('mb_internal_encoding')) {
mb_internal_encoding('ASCII');
}
at the top of the .phar
------------------------------------------------------------------------
[2005-11-26 21:06:01] mauroi at digbang dot com
Another workaround is to add a '-n' to the cli invocation inside of
go-pear.bat
That way no php.ini is used.
------------------------------------------------------------------------
[2005-11-26 21:02:15] mauroi at digbang dot com
Yes. It works if I disable overloading.
When I'm working with lobs (binary data in general) under this
configuration I use mb_strlen($str, 'ASCII') instead of strlen($str).
Otherwise, the variable would be treated as string and any unicode
escape sequence would generate an error.
Maybe a function called something like 'bytecount' could help to avoid
this situation.
Thanks.
------------------------------------------------------------------------
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/35412
--
Edit this bug report at http://bugs.php.net/?id=35412&edit=1