Bug #15638 Updated: warning from zend_execute.c while running inconv()

From: Date: Wed, 20 Feb 2002 11:31:18 +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-651@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: The warnings have dispappeared. Now there's no output generated at all, but that's another problem. Previous Comments: ------------------------------------------------------------------------ [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 (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

« previous php.bugs (#651) next »