Re: String is not zero-terminated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 10, 2006 at 03:43:55PM -0500, Richard Lynch wrote:
> In order to attempt to figure out why my script segfaults PHP (5.0.4,
> 5.1.2, 5.1.3RC3) I've been compiling --with-debug
> 
> That then gives me warnings such as:
> 
> Run-time warning. String is not zero-terminated (���(source:
> /www/acousticdemo.com/php_cvs/php5.1-200604071630/Zend/zend_variables.h:45)
> in /www/acousticdemo.com/web/info.com/overture/overture.inc:128

I assume you have zend_debug turned on.  Basically php will be safe
with this warning, since it shouldn't be relying on the \0
terminator but the actual length of the string.  I belive this
warning is in place to help migrate from the dependency of \0.

One thing you might want to check is what is triggering this error,
if you are doing a strlen() call this error shouldn't be issued,
IMO.  If operation you are doing rely's on the terminating \0, it
most likely should get fixed in php.

One thing you could check is the archives of the php-devel list to
see if there is talk about this.

HTH,

curt.
-- 
cat .signature: No such file or directory

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux