Re: [PHP] String is not zero-terminated

2006-04-10 Thread Richard Lynch
On Mon, April 10, 2006 6:14 pm, Curt Zirzow wrote:
> 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.

I'm just doing stristr($jpeg_data, 'http://l-i-e.com/artists.htm

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



Re: [PHP] String is not zero-terminated

2006-04-10 Thread Curt Zirzow
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



RE: [PHP] String is not zero-terminated

2006-04-10 Thread Richard Lynch
On Mon, April 10, 2006 4:40 pm, Kristen G. Thorson wrote:
> -Original Message-
> From: Richard Lynch [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 10, 2006 4:44 PM
> To: php-general@lists.php.net
> Subject: [PHP] String is not zero-terminated
>
> 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
> 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/ocr.inc:59
>
> 
>
>
>
>
> Did you see this?
>
> http://mail-archives.apache.org/mod_mbox/perl-docs-dev/200309.mbox/[EMAIL 
> PROTECTED]

Yes.

I should have said from the get-go I was running as CLI, which, unless
I'm really being naive, means mod_perl cannot be involved.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



RE: [PHP] String is not zero-terminated

2006-04-10 Thread Kristen G. Thorson
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 10, 2006 4:44 PM
To: php-general@lists.php.net
Subject: [PHP] String is not zero-terminated

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
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/ocr.inc:59






Did you see this?

http://mail-archives.apache.org/mod_mbox/perl-docs-dev/200309.mbox/[EMAIL 
PROTECTED]

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