From: [EMAIL PROTECTED] Operating system: Linux 2.4.22 PHP version: 5CVS-2004-03-16 (dev) PHP Bug Type: cURL related Bug description: Using Objects with Constructors/Destructors - Filesystem Delete Issues
Description: ------------ When you create more than one Cookie Jar file using cURL, and using an object with a constructor and destructor to create/delete the temporary file, only one of the two cookie jar files is deleted, even though the destructor reports that deletion of both was successful. If you find any website that requires you to login, you should be able to reproduce this. Personally, I think there needs to be an option to use PHP writable streams for the COOKIEJAR/COOKIEFILE cURL Options, to allow more freedom to store the data. I would hope that would allow you to store the cookies in memory while the page executes, and have them cleared from memory once the request has completed successfully. Reproduce code: --------------- http://www.nightsys.net/cookiebugs/ This URL has all the source code required. Expected result: ---------------- Both Cookie Jars to be deleted. Actual result: -------------- Only one of the two cookie jars are deleted. If you tell it to just unset one of the two objects, and only make 2 of the 3 cURL requests, the jar is removed. It only seems to be an issue when two are unset one after the other. -- Edit bug report at http://bugs.php.net/?id=27616&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27616&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27616&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27616&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27616&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27616&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27616&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27616&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27616&r=support Expected behavior: http://bugs.php.net/fix.php?id=27616&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27616&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27616&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27616&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27616&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27616&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27616&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27616&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27616&r=float