#37061 [Asn->Csd]: Zend HashTable getting corrupted
| From: | tony2001@php.net | Date: | Thu, 13 Apr 2006 11:26:52 +0000 |
| Subject: | #37061 [Asn->Csd]: Zend HashTable getting corrupted | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95743@lists.php.net to get a copy of this message | ||
ID: 37061
Updated by: tony2001@php.net
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] tony2001@php.net
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] bjori@php.net
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