ID: 30262 Updated by: [EMAIL PROTECTED] Reported By: is01yj at student dot zsu dot edu dot cn -Status: Assigned +Status: Bogus Bug Type: Session related Operating System: Windows XP PHP Version: Irrelevant Assigned To: edink New Comment:
You have to make sure that your webserver can write to L:\Program Files\PHP434\sessiondata\ by setting correct file permissions for IUSR_MACHINENAME if you're running php under IIS. Previous Comments: ------------------------------------------------------------------------ [2004-09-28 15:40:11] [EMAIL PROTECTED] Installer fails to modify php.ini? Or perhaps not putting the modified ini file in the correct path? ------------------------------------------------------------------------ [2004-09-28 08:29:52] is01yj at student dot zsu dot edu dot cn Description: ------------ Usually, I install software into the folder "systemdisk/Program Files/software". So I install PHP (including 4.3.4, 4.3.9, 5.0.1) into "L:\Program Files\PHP434\" and set session save path (in the installation wizard) as "L:\Program Files\PHP434\sessiondata\". Thus, I get the following Warning when I start session by calling session_start(). However, if I change the session.save_path to "L:\temp", no warning will be reported and session files can be saved correctly. Reproduce code: --------------- <?php session_start(); ?> Expected result: ---------------- the code above should not generate any error or output, since it's placed before any http output and session support is enabled. Actual result: -------------- Warning: session_start(): open(L:\Program Files\PHP434\sessiondata\sess_bb1a6ba6b2111a38d6c2d88f65a5ff83, O_RDWR) failed: No such file or directory (2) in E:\Web\XinghaiConcertHall\Build\admin\verify.php on line 2 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at E:\Web\XinghaiConcertHall\Build\admin\verify.php:2) in E:\Web\XinghaiConcertHall\Build\admin\verify.php on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at E:\Web\XinghaiConcertHall\Build\admin\verify.php:2) in E:\Web\XinghaiConcertHall\Build\admin\verify.php on line 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30262&edit=1