Session. save_path bug in php4.0.0

Source: Internet
Author: User

Introduction: This is a detailed page of session. save_path bug (reprinted) in php4.0.0. It introduces PHP, related knowledge, skills, experience, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 322828 'rolling = 'no'>

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. But when PHPProgramWhen the file is on another disk, such as disk F, 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.

More articles on "session. save_path bug (reproduced) in php4.0.0"

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/322828.html pageno: 16.

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.