Ask a Question related to PHP Bugs, Design and Development.
-
tony2001@php.net #1
#37773 [Ver->Asn]: iconv_substr() gives "Unknown error" when string length = 1"
ID: 37773
Updated by: [email]tony2001@php.net[/email]
Reported By: dave at dgx dot cz
-Status: Verified
+Status: Assigned
Bug Type: ICONV related
PHP Version: 5.1.4
Assigned To: moriyoshi
Previous Comments:
------------------------------------------------------------------------
[2006-07-06 02:41:23] [email]moriyoshi@php.net[/email]
The switch clause is needed so that illegal multibyte occurrences would
be detected per specification. I'm going to look into this one.
------------------------------------------------------------------------
[2006-06-12 14:59:26] [email]nlopess@php.net[/email]
[url]http://mega.ist.utl.pt/~ncpl/php_bug_37773.txt[/url]
the patch removes a strange 'switch (errno)' that I don't really know
why it was there and adds a check for _php_iconv_appendl()
------------------------------------------------------------------------
[2006-06-12 10:40:16] [email]tony2001@php.net[/email]
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
------------------------------------------------------------------------
[2006-06-10 00:03:08] dave at dgx dot cz
Of course, title is: iconv_substr() gives "Unknown error" when string
length = 1"
Operating system: Windows XP.
It is not my error - bugs.php.net has bugs!
------------------------------------------------------------------------
[2006-06-10 00:01:14] dave at dgx dot cz
Description:
------------
(Similar to bug #34757).
When input string length = 1, iconv_substr() produces "Unknown error
(0)" and returns FALSE.
Reproduce code:
---------------
$s = 'x';
$s = iconv_substr($s, 0, 1, 'UTF-8');
var_dump($s);
Expected result:
----------------
string(1) "x"
Actual result:
--------------
bool(false)
and Notice: iconv_substr() [function.iconv-substr.html]: Unknown error
(0) in ...
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=37773&edit=1[/url]
tony2001@php.net Guest
-
Help! Can not save anything in Illustrator format - Error message "unknown error has occured"
I am using Illustrator CS on XP, I was trying to save my work, it was a template and about 10 layers. I got the error message "unknown error has... -
"The operation cannot complete due to an unknown error. [PDF!]"
Running Illustrator CS on Windows XP, we have multiple machines that have this problem. When anything is copied to the clipboard in illustrator and... -
#37773 [Asn->Csd]: iconv_substr() gives "Unknown error" when string length = 1"
ID: 37773 Updated by: iliaa@php.net Reported By: dave at dgx dot cz -Status: Assigned +Status: Closed Bug Type: ICONV... -
"Error Creating Control" and "Cast from String"
I'm creating a custom date control. In appearance, it's just a textbox and a button. It has three custom properties: CalDate, CalDateType and... -
convert visual basic "string" data type to DB2 "blob"
Does anyone know if a visual basic string data type can be converted to DB2 blob datatype? I have all data in XML files and I use Visual Basic to...



Reply With Quote

