]> granicus.if.org Git - php/commit
fix bug wrt to CURLOPT_POSTFIELDS where if you passed it code like:
authorSterling Hughes <sterling@php.net>
Thu, 1 Jul 2004 06:50:46 +0000 (06:50 +0000)
committerSterling Hughes <sterling@php.net>
Thu, 1 Jul 2004 06:50:46 +0000 (06:50 +0000)
commite8f984d77a14c0e5dfd854f7c7865037b83cf03d
tree1cd18e0c7559e3fc7b3237ff73bd180e3a320a6e
parent76766f2d31d5e47703bb887d79fe1025cf8928e1
fix bug wrt to CURLOPT_POSTFIELDS where if you passed it code like:

$fields = array('foo' => 'bar');
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
curl_exec($ch);
as opposed to :

curl_setopt($ch, CURLOPT_POSTFIELDS, array('foo' => 'bar'));

you'll get a segv or no results, depending on the mood and cycle of the
moon.
ext/curl/interface.c