Bug #15638 Updated: warning from zend_execute.c while running inconv()
| From: | jan at horde dot org | Date: | Wed, 20 Feb 2002 13:32:48 +0000 |
| Subject: | Bug #15638 Updated: warning from zend_execute.c while running inconv() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-664@lists.php.net to get a copy of this message | ||
ID: 15638
Updated by: jan@horde.org
Reported By: jan@horde.org
-Status: Feedback
+Status: Open
Bug Type: ICONV related
Operating System: Linux
PHP Version: 4.0CVS-2002-02-19
New Comment:
No, it's still an iconv/php problem but I have to investigate further.
If you look at the test script you see that it should generate ANY
output. And there are no segfaults. Hm.
Previous Comments:
------------------------------------------------------------------------
[2002-02-20 08:26:10] sander@php.net
> Now there's no output generated at all,
> but that's another problem.
You mean it's a problem in your script and not in PHP? In that case,
please close this bug.
------------------------------------------------------------------------
[2002-02-20 06:31:17] jan@horde.org
The warnings have dispappeared. Now there's no output generated at all,
but that's another problem.
------------------------------------------------------------------------
[2002-02-20 02:24:28] derick@php.net
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
------------------------------------------------------------------------
[2002-02-19 20:34:46] jan@horde.org
I get this warning message while trying to run iconv():
Warning: String is not zero-terminated
(beforeafterZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZÌ*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