ID: 15638
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Feedback
Bug Type: ICONV related
Operating System: Linux
PHP Version: 4.0CVS-2002-02-19
New Comment:
I committed a fix for this to CVS, but was not be able to test it.
Would you be so kind to take the honors?
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-02-19 20:34:46] [EMAIL PROTECTED]
I get this warning message while trying to run iconv():
Warning: String is not zero-terminated
(before�afterZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ�̏*p)
(source: ./zend_execute.c:449) in
/usr/local/httpd/htdocs/headhorde/iconv.php on line 9
PHP is compiled against the latest inconv library.
This test script reproduces the messages:
<pre>
<?
error_reporting(E_ALL);
$src = 'ISO-8859-1';
$dst = 'ISO-8859-2';
$j = 0;
for($i=1;$i<=255;$i++) {
$tst = sprintf('before%cafter',$i);
$rc=iconv($src,$dst,$tst);
if (strlen($rc) == 0) {
print "$i fail";
$j++;
}
print "\n";
}
print "total failed: $j";
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15638&edit=1