From:             edman007x at mac dot com
Operating system: Linux (slackware-current)
PHP version:      5.0.4
PHP Bug Type:     cURL related
Bug description:  CURLOPT_COOKIEJAR dosen't work in php5

Description:
------------
in my php 5.0.3 and php 5.0.4 servers curl did not write 
to the cookieJar file even though it is writable and 
there are cookies that were received

phpinfo for working server is @ http://
edman007.optikhosting.com/phpinfo.php

phpinfo for php server that doesn't work is @ http://
server.antiwindows.gotdns.com/phpinfo.php

Reproduce code:
---------------
<?php
header('Content-type: text/plain');
$file = tempnam('/tmp', 'php_bug_test');//should be writable
//a check
echo is_writable($file)?'This File Is Writable':'This File Is not
Writable';
echo "\n";
//and again
echo system('ls -lah '.$file);
echo "\n";
$ch = curl_init('http://www.yahoo.com/');///this site will give me a
cookie
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, $file);
curl_exec($ch);
curl_close($ch);
echo file_get_contents($file);
unlink($file);
?>

Expected result:
----------------
(i got this from a php 4.3.11 server)

This File Is Writable
-rw-------    1 nobody   nobody          0 Jun 25 15:15 
/tmp/php_bug_testKzXWcK
-rw-------    1 nobody   nobody          0 Jun 25 15:15 
/tmp/php_bug_testKzXWcK
# Netscape HTTP Cookie File
# http://www.netscape.com/newsref/std/cookie_spec.html
# This file was generated by libcurl! Edit at your own 
risk.

.www.yahoo.com  TRUE    /       FALSE   1149188400      FPB
        311up3uh111brer0


Actual result:
--------------
(i got this from my php 5.0.4 server)

This File Is Writable
-rw-------  1 nobody nobody 0 2005-06-25 16:15 /tmp/
php_bug_testYspF2w
-rw-------  1 nobody nobody 0 2005-06-25 16:15 /tmp/
php_bug_testYspF2w


-- 
Edit bug report at http://bugs.php.net/?id=33475&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33475&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33475&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33475&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33475&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33475&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33475&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33475&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33475&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33475&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33475&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33475&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33475&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33475&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33475&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33475&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33475&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33475&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33475&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33475&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33475&r=mysqlcfg

Reply via email to