|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-13 10:26 UTC] tony2001@php.net
[2006-10-13 14:45 UTC] troelskn at gmail dot com
[2006-10-13 14:57 UTC] tony2001@php.net
[2006-10-14 13:01 UTC] troelskn at gmail dot com
[2006-10-14 13:09 UTC] tony2001@php.net
[2006-10-15 09:46 UTC] troelskn at gmail dot com
[2006-10-15 10:04 UTC] tony2001@php.net
[2006-10-15 10:27 UTC] troelskn at gmail dot com
[2006-10-15 10:42 UTC] tony2001@php.net
[2006-10-23 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 22:00:01 2025 UTC |
Description: ------------ Opening a curl session to non-existing file over the file:// protocol corrupts php's session handler. Reproduce code: --------------- <?php session_start(); $ch = curl_init("file://C:/filedoesntexist.txt"); if ($ch != NULL) { $data = curl_exec($ch); curl_close($ch); } session_write_close(); exit; Expected result: ---------------- nothing Actual result: -------------- Warning: session_write_close() [function.session-write-close]: write failed: Bad file descriptor (9) in C:\apache\htdocs\curltest.php on line 8 Call Stack # Function Location 1 {main}() C:\apache\htdocs\curltest.php:0 2 session_write_close () C:\apache\htdocs\curltest.php:8 Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\Programmer\nusphere\phped\php5\sessions) in C:\apache\htdocs\curltest.php on line 8 Call Stack # Function Location 1 {main}() C:\apache\htdocs\curltest.php:0 2 session_write_close () C:\apache\htdocs\curltest.php:8