Re: String is not zero-terminated

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

 



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

-- 
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