2008年10月31日星期五

Re: [fw-formats] Unitialized string offset

gherson wrote:
>
> What should my error_reporting() be set to when using ZSL? E_ERROR?
>
Yes. Avoid "Uninitialized string offset: 389 on line 116 in file
C:\xampplite\php\zf\Zend\Search\Lucene\Index\DictionaryLoader.php"-type
(search-stopping) errors in Zend Framework 1.6 by either
1. Adding
$pos = min(strlen($data)-1, $pos); // new
above all instances of
$nbyte = ord($data[$pos++]);
in Zend\Search\Lucene\Index\DictionaryLoader.php (Zend: do this please)

or

2. Quash E_NOTICE errors:
error_reporting(E_ALL ^ E_NOTICE);

fyi,
George

--
View this message in context: http://www.nabble.com/Unitialized-string-offset-tp19414579p20273990.html
Sent from the Zend MFS mailing list archive at Nabble.com.

没有评论: