Re: String is not zero-terminated

From: Date: Tue, 11 Apr 2006 00:11:52 +0000
Subject: Re: String is not zero-terminated
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-233712@lists.php.net to get a copy of this message
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, '<META HTTP-EQUIV="Refresh"') and file_put_contents("test.jpg", $jpeg_data) to trigger it. It's not my fault the goofy other web-server is giving me HTML when I ask for a JPEG... :-^ Is that even kosher?... I mean, even with HTTP response codes of 302 or whatever, it shouldn't be spitting out HTML for a JPEG request, should it??? Oh well. I can't change their website anyway, so it doesn't really matter what it should do. Have to live with what IS. Thanks! -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#233712) next »