ID:               35412
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mauroi at digbang dot com
-Status:           Analyzed
+Status:           Feedback
 Bug Type:         *General Issues
 Operating System: win32
 PHP Version:      5.1.0
 Assigned To:      cellog
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2005-11-28 01:38:01] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[2005-11-26 20:25:17] [EMAIL PROTECTED]

If you change mbstring.func_overload=6 to mbstring.func_overload=0,
does the problem go away?

------------------------------------------------------------------------

[2005-11-26 20:24:47] [EMAIL PROTECTED]

Assigned to the maintainer.

------------------------------------------------------------------------

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

Reply via email to