Session. save_path bug in PHP4.0.0

Source: Internet
Author: User
Author: limodou: I have reported a bug in version 4.0.0, which is limited to windows. That is: in version 4.0.0, if session. save_path uses an absolute directory with a drive letter, the drive letter does not work. For example, if session. save_path is set to c: emp, the c: emp directory exists. But when the php program file is on another disk, such as the author: limodou

Here we will report a bug I found in version 4.0.0, which is limited to the windows version. That is: in version 4.0.0,
Session. save_path if an absolute directory is used, that is, if the drive letter is added, the drive letter does not work. For example, session. save_path is set
C: emp. the c: emp directory exists. However, when the php program file is on another disk, such as the F disk, c: does not work. Processing
Find the emp directory on drive F during session. If no emp directory exists on disk F, the following error is reported:

Warning: open (emp/sess_0beef27320944002381aa93c9ec0968d, O_RDWR) failed: m (2)
In f: esta. php3 on line 2

Warning: open (emp/sess_0beef27320944002381aa93c9ec0968d, O_RDWR) failed: m (2)
In Unknown on line 0

Warning: Failed to write session data. Please check that the current setting
Session. save_path is correct (c: emp) in Unknown on line 0

If you create a temp directory on drive F, the error disappears. I checked the source program and did not find it. Discover Me
Is the source code of version 4.0.1pl2. So I upgraded php to version 4.0.1pl2 and ran it again. The error is missing. It seems that version 4.0.1pl2 is correct.
This error is returned.

We recommend that you install version 4.0.1pl2.

When session. save_path is set at the same time, the directory separator can be '/' or.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.