ID:               37061
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ceo at l-i-e dot com
-Status:           Assigned
+Status:           Closed
 Bug Type:         cURL related
 Operating System: FreeBSD 5.3-RELEASE
 PHP Version:      5.1.2
 Assigned To:      tony2001
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2006-04-13 09:44:08] [EMAIL PROTECTED]

Assigned to myself - I have the patch.

------------------------------------------------------------------------

[2006-04-13 00:12:11] ceo at l-i-e dot com

Jeez, I'm fumbling today.
http://acousticdemo.com/info.com/overture/binarytransfer.phps

------------------------------------------------------------------------

[2006-04-13 00:05:57] [EMAIL PROTECTED]

404 not found...

------------------------------------------------------------------------

[2006-04-12 23:47:48] ceo at l-i-e dot com

Errr. To be 100% clear:
The $html strings should not be non-zero-terminated.
$jpeg makes perfect sense as non-zero-terminated, to me.

------------------------------------------------------------------------

[2006-04-12 23:38:56] ceo at l-i-e dot com

Okay.

HERE is a short (35 lines) script which will yield:
Warning: String is not zero-terminated

I don't think the strings involved should have any problem being
zero-terminated -- They are just HTML plain-text.

This MAY not solve this bug, but it's an easy avenue to explore, and
MAY solve the root cause of this bug, if my suspicions are correct.

http://acousticdemo.com/binarytransfer.phps

NOTE:
You'll have to run it from CLI (or CGI) and --enable-debug to get the
messages.

Note that the strings ONLY get "not zero-terminated" if you do the
CURLOPT_BINARYTRANFER part of the script.

Comment out that middle section, and warnings go away.

Surely this should not behave like this, right?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/37061

-- 
Edit this bug report at http://bugs.php.net/?id=37061&edit=1

Reply via email to